Skip to content

Commit ed797cb

Browse files
docs(file): review File Storage API descriptions and documentation MTA-6002 (#981)
Co-authored-by: Laure-di <62625835+Laure-di@users.noreply.github.com>
1 parent c63793b commit ed797cb

File tree

4 files changed

+16
-24
lines changed

4 files changed

+16
-24
lines changed

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

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,13 @@ async def list_file_systems(
127127
) -> ListFileSystemsResponse:
128128
"""
129129
List all filesystems.
130-
Retrieve all filesystems in the specified region. Results are ordered by creation date in ascending order by default.
131-
Use the order_by parameter to modify the sorting behavior.
130+
Retrieve all filesystems in the specified region. By default, the filesystems listed are ordered by creation date in ascending order. This can be modified using the `order_by` field.
132131
:param region: Region to target. If none is passed will use default region from the config.
133132
:param order_by: Criteria to use when ordering the list.
134133
:param project_id: Filter by project ID.
135134
:param page: Page number (starting at 1).
136135
:param page_size: Number of entries per page (default: 20, max: 100).
137-
:param name: Filter the return filesystems by their names.
136+
:param name: Filter the returned filesystems by their names.
138137
:param tags: Filter by tags. Only filesystems with one or more matching tags will be returned.
139138
:return: :class:`ListFileSystemsResponse <ListFileSystemsResponse>`
140139
@@ -177,14 +176,13 @@ async def list_file_systems_all(
177176
) -> List[FileSystem]:
178177
"""
179178
List all filesystems.
180-
Retrieve all filesystems in the specified region. Results are ordered by creation date in ascending order by default.
181-
Use the order_by parameter to modify the sorting behavior.
179+
Retrieve all filesystems in the specified region. By default, the filesystems listed are ordered by creation date in ascending order. This can be modified using the `order_by` field.
182180
:param region: Region to target. If none is passed will use default region from the config.
183181
:param order_by: Criteria to use when ordering the list.
184182
:param project_id: Filter by project ID.
185183
:param page: Page number (starting at 1).
186184
:param page_size: Number of entries per page (default: 20, max: 100).
187-
:param name: Filter the return filesystems by their names.
185+
:param name: Filter the returned filesystems by their names.
188186
:param tags: Filter by tags. Only filesystems with one or more matching tags will be returned.
189187
:return: :class:`List[FileSystem] <List[FileSystem]>`
190188
@@ -223,8 +221,7 @@ async def list_attachments(
223221
"""
224222
List filesystems attachments.
225223
List all existing attachments in a specified region.
226-
By default, the attachments listed are ordered by creation date in ascending order.
227-
This can be modified using the `order_by` field.
224+
By default, the attachments listed are ordered by creation date in ascending order. This can be modified using the `order_by` field.
228225
:param region: Region to target. If none is passed will use default region from the config.
229226
:param filesystem_id: UUID of the File Storage volume.
230227
:param resource_id: Filter by resource ID.
@@ -274,8 +271,7 @@ async def list_attachments_all(
274271
"""
275272
List filesystems attachments.
276273
List all existing attachments in a specified region.
277-
By default, the attachments listed are ordered by creation date in ascending order.
278-
This can be modified using the `order_by` field.
274+
By default, the attachments listed are ordered by creation date in ascending order. This can be modified using the `order_by` field.
279275
:param region: Region to target. If none is passed will use default region from the config.
280276
:param filesystem_id: UUID of the File Storage volume.
281277
:param resource_id: Filter by resource ID.
@@ -317,7 +313,7 @@ async def create_file_system(
317313
) -> FileSystem:
318314
"""
319315
Create a new filesystem.
320-
To create a new filesystem, you need to provide a name, a size, and a project ID.
316+
To create a new filesystem, you must specify a name, a size, and a project ID.
321317
:param name: Name of the filesystem.
322318
:param size: Must be compliant with the minimum (100 GB) and maximum (10 TB) allowed size.
323319
:param region: Region to target. If none is passed will use default region from the config.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ class ListFileSystemsRequest:
297297

298298
name: Optional[str]
299299
"""
300-
Filter the return filesystems by their names.
300+
Filter the returned filesystems by their names.
301301
"""
302302

303303
tags: Optional[List[str]]

scaleway/scaleway/file/v1alpha1/api.py

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,13 @@ def list_file_systems(
125125
) -> ListFileSystemsResponse:
126126
"""
127127
List all filesystems.
128-
Retrieve all filesystems in the specified region. Results are ordered by creation date in ascending order by default.
129-
Use the order_by parameter to modify the sorting behavior.
128+
Retrieve all filesystems in the specified region. By default, the filesystems listed are ordered by creation date in ascending order. This can be modified using the `order_by` field.
130129
:param region: Region to target. If none is passed will use default region from the config.
131130
:param order_by: Criteria to use when ordering the list.
132131
:param project_id: Filter by project ID.
133132
:param page: Page number (starting at 1).
134133
:param page_size: Number of entries per page (default: 20, max: 100).
135-
:param name: Filter the return filesystems by their names.
134+
:param name: Filter the returned filesystems by their names.
136135
:param tags: Filter by tags. Only filesystems with one or more matching tags will be returned.
137136
:return: :class:`ListFileSystemsResponse <ListFileSystemsResponse>`
138137
@@ -175,14 +174,13 @@ def list_file_systems_all(
175174
) -> List[FileSystem]:
176175
"""
177176
List all filesystems.
178-
Retrieve all filesystems in the specified region. Results are ordered by creation date in ascending order by default.
179-
Use the order_by parameter to modify the sorting behavior.
177+
Retrieve all filesystems in the specified region. By default, the filesystems listed are ordered by creation date in ascending order. This can be modified using the `order_by` field.
180178
:param region: Region to target. If none is passed will use default region from the config.
181179
:param order_by: Criteria to use when ordering the list.
182180
:param project_id: Filter by project ID.
183181
:param page: Page number (starting at 1).
184182
:param page_size: Number of entries per page (default: 20, max: 100).
185-
:param name: Filter the return filesystems by their names.
183+
:param name: Filter the returned filesystems by their names.
186184
:param tags: Filter by tags. Only filesystems with one or more matching tags will be returned.
187185
:return: :class:`List[FileSystem] <List[FileSystem]>`
188186
@@ -221,8 +219,7 @@ def list_attachments(
221219
"""
222220
List filesystems attachments.
223221
List all existing attachments in a specified region.
224-
By default, the attachments listed are ordered by creation date in ascending order.
225-
This can be modified using the `order_by` field.
222+
By default, the attachments listed are ordered by creation date in ascending order. This can be modified using the `order_by` field.
226223
:param region: Region to target. If none is passed will use default region from the config.
227224
:param filesystem_id: UUID of the File Storage volume.
228225
:param resource_id: Filter by resource ID.
@@ -272,8 +269,7 @@ def list_attachments_all(
272269
"""
273270
List filesystems attachments.
274271
List all existing attachments in a specified region.
275-
By default, the attachments listed are ordered by creation date in ascending order.
276-
This can be modified using the `order_by` field.
272+
By default, the attachments listed are ordered by creation date in ascending order. This can be modified using the `order_by` field.
277273
:param region: Region to target. If none is passed will use default region from the config.
278274
:param filesystem_id: UUID of the File Storage volume.
279275
:param resource_id: Filter by resource ID.
@@ -315,7 +311,7 @@ def create_file_system(
315311
) -> FileSystem:
316312
"""
317313
Create a new filesystem.
318-
To create a new filesystem, you need to provide a name, a size, and a project ID.
314+
To create a new filesystem, you must specify a name, a size, and a project ID.
319315
:param name: Name of the filesystem.
320316
:param size: Must be compliant with the minimum (100 GB) and maximum (10 TB) allowed size.
321317
:param region: Region to target. If none is passed will use default region from the config.

scaleway/scaleway/file/v1alpha1/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ class ListFileSystemsRequest:
297297

298298
name: Optional[str]
299299
"""
300-
Filter the return filesystems by their names.
300+
Filter the returned filesystems by their names.
301301
"""
302302

303303
tags: Optional[List[str]]

0 commit comments

Comments
 (0)