Skip to content

Commit ea45b3b

Browse files
authored
docs(mongodb): add documentation (scaleway#715)
1 parent a173142 commit ea45b3b

File tree

4 files changed

+100
-100
lines changed

4 files changed

+100
-100
lines changed

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

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767

6868
class MongodbV1Alpha1API(API):
6969
"""
70-
This API allows you to manage your Managed Databases for MongoDB.
70+
This API allows you to manage your Managed Databases for MongoDB®.
7171
"""
7272

7373
async def list_node_types(
@@ -152,7 +152,7 @@ async def list_versions(
152152
page_size: Optional[int] = None,
153153
) -> ListVersionsResponse:
154154
"""
155-
List available MongoDB versions.
155+
List available MongoDB® versions.
156156
:param region: Region to target. If none is passed will use default region from the config.
157157
:param version:
158158
:param page:
@@ -191,7 +191,7 @@ async def list_versions_all(
191191
page_size: Optional[int] = None,
192192
) -> List[Version]:
193193
"""
194-
List available MongoDB versions.
194+
List available MongoDB® versions.
195195
:param region: Region to target. If none is passed will use default region from the config.
196196
:param version:
197197
:param page:
@@ -229,14 +229,14 @@ async def list_instances(
229229
page_size: Optional[int] = None,
230230
) -> ListInstancesResponse:
231231
"""
232-
List MongoDB Database Instances.
233-
List all MongoDB Database Instances in the specified region, for a given Scaleway Project. By default, the MongoDB Database Instances returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. You can define additional parameters for your query, such as `tags` and `name`. For the `name` parameter, the value you include will be checked against the whole name string to see if it includes the string you put in the parameter.
232+
List MongoDB® Database Instances.
233+
List all MongoDB® Database Instances in the specified region. By default, the MongoDB® Database Instances returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. You can define additional parameters for your query, such as `tags` and `name`. For the `name` parameter, the value you include will be checked against the whole name string to see if it includes the string you put in the parameter.
234234
:param region: Region to target. If none is passed will use default region from the config.
235235
:param tags: List Database Instances that have a given tag.
236236
:param name: Lists Database Instances that match a name pattern.
237237
:param order_by: Criteria to use when ordering Database Instance listings.
238-
:param organization_id: Organization ID the Database Instance belongs to.
239-
:param project_id: Project ID to list the Database Instance of.
238+
:param organization_id: Organization ID of the Database Instance.
239+
:param project_id: Project ID.
240240
:param page:
241241
:param page_size:
242242
:return: :class:`ListInstancesResponse <ListInstancesResponse>`
@@ -282,14 +282,14 @@ async def list_instances_all(
282282
page_size: Optional[int] = None,
283283
) -> List[Instance]:
284284
"""
285-
List MongoDB Database Instances.
286-
List all MongoDB Database Instances in the specified region, for a given Scaleway Project. By default, the MongoDB Database Instances returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. You can define additional parameters for your query, such as `tags` and `name`. For the `name` parameter, the value you include will be checked against the whole name string to see if it includes the string you put in the parameter.
285+
List MongoDB® Database Instances.
286+
List all MongoDB® Database Instances in the specified region. By default, the MongoDB® Database Instances returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. You can define additional parameters for your query, such as `tags` and `name`. For the `name` parameter, the value you include will be checked against the whole name string to see if it includes the string you put in the parameter.
287287
:param region: Region to target. If none is passed will use default region from the config.
288288
:param tags: List Database Instances that have a given tag.
289289
:param name: Lists Database Instances that match a name pattern.
290290
:param order_by: Criteria to use when ordering Database Instance listings.
291-
:param organization_id: Organization ID the Database Instance belongs to.
292-
:param project_id: Project ID to list the Database Instance of.
291+
:param organization_id: Organization ID of the Database Instance.
292+
:param project_id: Project ID.
293293
:param page:
294294
:param page_size:
295295
:return: :class:`List[Instance] <List[Instance]>`
@@ -323,8 +323,8 @@ async def get_instance(
323323
region: Optional[Region] = None,
324324
) -> Instance:
325325
"""
326-
Get a MongoDB Database Instance.
327-
Retrieve information about a given MongoDB Database Instance, specified by the `region` and `instance_id` parameters. Its full details, including name, status, IP address and port, are returned in the response object.
326+
Get a MongoDB® Database Instance.
327+
Retrieve information about a given MongoDB® Database Instance, specified by the `region` and `instance_id` parameters. Its full details, including name, status, IP address and port, are returned in the response object.
328328
:param instance_id: UUID of the Database Instance.
329329
:param region: Region to target. If none is passed will use default region from the config.
330330
:return: :class:`Instance <Instance>`
@@ -360,8 +360,8 @@ async def wait_for_instance(
360360
] = None,
361361
) -> Instance:
362362
"""
363-
Get a MongoDB Database Instance.
364-
Retrieve information about a given MongoDB Database Instance, specified by the `region` and `instance_id` parameters. Its full details, including name, status, IP address and port, are returned in the response object.
363+
Get a MongoDB® Database Instance.
364+
Retrieve information about a given MongoDB® Database Instance, specified by the `region` and `instance_id` parameters. Its full details, including name, status, IP address and port, are returned in the response object.
365365
:param instance_id: UUID of the Database Instance.
366366
:param region: Region to target. If none is passed will use default region from the config.
367367
:return: :class:`Instance <Instance>`
@@ -405,9 +405,9 @@ async def create_instance(
405405
endpoints: Optional[List[EndpointSpec]] = None,
406406
) -> Instance:
407407
"""
408-
Create a MongoDB Database Instance.
409-
Create a new MongoDB Database Instance.
410-
:param version: Version of the MongoDB engine.
408+
Create a MongoDB® Database Instance.
409+
Create a new MongoDB® Database Instance.
410+
:param version: Version of the MongoDB® engine.
411411
:param node_number: Number of node to use for the Database Instance.
412412
:param node_type: Type of node to use for the Database Instance.
413413
:param user_name: Username created when the Database Instance is created.
@@ -469,8 +469,8 @@ async def update_instance(
469469
tags: Optional[List[str]] = None,
470470
) -> Instance:
471471
"""
472-
Update a MongoDB Database Instance.
473-
Update the parameters of a MongoDB Database Instance.
472+
Update a MongoDB® Database Instance.
473+
Update the parameters of a MongoDB® Database Instance.
474474
:param instance_id: UUID of the Database Instance to update.
475475
:param region: Region to target. If none is passed will use default region from the config.
476476
:param name: Name of the Database Instance.
@@ -514,8 +514,8 @@ async def delete_instance(
514514
region: Optional[Region] = None,
515515
) -> Instance:
516516
"""
517-
Delete a MongoDB Database Instance.
518-
Delete a given MongoDB Database Instance, specified by the `region` and `instance_id` parameters. Deleting a MongoDB Database Instance is permanent, and cannot be undone. Note that upon deletion all your data will be lost.
517+
Delete a MongoDB® Database Instance.
518+
Delete a given MongoDB® Database Instance, specified by the `region` and `instance_id` parameters. Deleting a MongoDB® Database Instance is permanent, and cannot be undone. Note that upon deletion all your data will be lost.
519519
:param instance_id: UUID of the Database Instance to delete.
520520
:param region: Region to target. If none is passed will use default region from the config.
521521
:return: :class:`Instance <Instance>`
@@ -553,7 +553,7 @@ async def upgrade_instance(
553553
Upgrade your current Database Instance specifications like volume size.
554554
:param instance_id: UUID of the Database Instance you want to upgrade.
555555
:param region: Region to target. If none is passed will use default region from the config.
556-
:param volume_size: Increase your block storage volume size.
556+
:param volume_size: Increase your Block Storage volume size.
557557
One-Of ('upgrade_target'): at most one of 'volume_size' could be set.
558558
:return: :class:`Instance <Instance>`
559559
@@ -862,7 +862,7 @@ async def list_snapshots(
862862
List snapshots. You can include the `instance_id` or `project_id` in your query to get the list of snapshots for specific Database Instances and/or Projects. By default, the details returned in the list are ordered by creation date in ascending order, though this can be modified via the `order_by` field.
863863
:param region: Region to target. If none is passed will use default region from the config.
864864
:param instance_id: Instance ID the snapshots belongs to.
865-
:param name: Lists Database snapshots that match a name pattern.
865+
:param name: Lists database snapshots that match a name pattern.
866866
:param order_by: Criteria to use when ordering snapshot listings.
867867
:param organization_id: Organization ID the snapshots belongs to.
868868
:param project_id: Project ID to list the snapshots of.
@@ -915,7 +915,7 @@ async def list_snapshots_all(
915915
List snapshots. You can include the `instance_id` or `project_id` in your query to get the list of snapshots for specific Database Instances and/or Projects. By default, the details returned in the list are ordered by creation date in ascending order, though this can be modified via the `order_by` field.
916916
:param region: Region to target. If none is passed will use default region from the config.
917917
:param instance_id: Instance ID the snapshots belongs to.
918-
:param name: Lists Database snapshots that match a name pattern.
918+
:param name: Lists database snapshots that match a name pattern.
919919
:param order_by: Criteria to use when ordering snapshot listings.
920920
:param organization_id: Organization ID the snapshots belongs to.
921921
:param project_id: Project ID to list the snapshots of.
@@ -953,7 +953,7 @@ async def delete_snapshot(
953953
) -> Snapshot:
954954
"""
955955
Delete a Database Instance snapshot.
956-
Delete a given snapshot of a Database Instance. You must specify, in the endpoint, the `snapshot_id` parameter of the snapshot you want to delete.
956+
Delete a given snapshot of a Database Instance. You must specify, in the endpoint, the `snapshot_id` parameter of the snapshot you want to delete.
957957
:param snapshot_id: UUID of the snapshot.
958958
:param region: Region to target. If none is passed will use default region from the config.
959959
:return: :class:`Snapshot <Snapshot>`

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

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class EndpointPrivateNetworkDetails:
112112

113113
private_network_id: str
114114
"""
115-
UUID of the private network.
115+
UUID of the Private Network.
116116
"""
117117

118118

@@ -125,7 +125,7 @@ class EndpointPublicDetails:
125125
class EndpointSpecPrivateNetworkDetails:
126126
private_network_id: str
127127
"""
128-
UUID of the private network.
128+
UUID of the Private Network.
129129
"""
130130

131131

@@ -196,17 +196,17 @@ class NodeTypeVolumeType:
196196

197197
description: str
198198
"""
199-
The description of the Volume.
199+
The description of the volume.
200200
"""
201201

202202
min_size: int
203203
"""
204-
Mimimum size required for the Volume.
204+
Mimimum size required for the volume.
205205
"""
206206

207207
max_size: int
208208
"""
209-
Maximum size required for the Volume.
209+
Maximum size required for the volume.
210210
"""
211211

212212
chunk_size: int
@@ -322,7 +322,7 @@ class Instance:
322322

323323
version: str
324324
"""
325-
MongoDB engine version of the Database Instance.
325+
MongoDB® engine version of the Database Instance.
326326
"""
327327

328328
tags: List[str]
@@ -370,12 +370,12 @@ class Instance:
370370
class NodeType:
371371
name: str
372372
"""
373-
Node Type name identifier.
373+
Node type name identifier.
374374
"""
375375

376376
stock_status: NodeTypeStock
377377
"""
378-
Current stock status for the Node Type.
378+
Current stock status for the node type.
379379
"""
380380

381381
description: str
@@ -395,22 +395,22 @@ class NodeType:
395395

396396
available_volume_types: List[NodeTypeVolumeType]
397397
"""
398-
Available storage options for the Node Type.
398+
Available storage options for the node type.
399399
"""
400400

401401
disabled: bool
402402
"""
403-
The Node Type is currently disabled.
403+
The node type is currently disabled.
404404
"""
405405

406406
beta: bool
407407
"""
408-
The Node Type is currently in beta.
408+
The node type is currently in beta.
409409
"""
410410

411411
instance_range: str
412412
"""
413-
Instance range associated with the NodeType offer.
413+
Instance range associated with the node type offer.
414414
"""
415415

416416

@@ -453,7 +453,7 @@ class Snapshot:
453453

454454
region: Region
455455
"""
456-
Region of this snapshot.
456+
Region of the snapshot.
457457
"""
458458

459459
expires_at: Optional[datetime]
@@ -473,7 +473,7 @@ class Snapshot:
473473

474474
volume_type: Optional[SnapshotVolumeType]
475475
"""
476-
Type of volume where data is stored sbs_5k or sbs_15k.
476+
Type of volume where data is stored - sbs_5k or sbs_15k.
477477
"""
478478

479479

@@ -489,7 +489,7 @@ class User:
489489
class Version:
490490
version: str
491491
"""
492-
MongoDB engine version.
492+
MongoDB® engine version.
493493
"""
494494

495495
available_settings: List[Setting]
@@ -515,7 +515,7 @@ class RestoreSnapshotRequestVolumeDetails:
515515
class CreateInstanceRequest:
516516
version: str
517517
"""
518-
Version of the MongoDB engine.
518+
Version of the MongoDB® engine.
519519
"""
520520

521521
node_number: int
@@ -681,12 +681,12 @@ class ListInstancesRequest:
681681

682682
organization_id: Optional[str]
683683
"""
684-
Organization ID the Database Instance belongs to.
684+
Organization ID of the Database Instance.
685685
"""
686686

687687
project_id: Optional[str]
688688
"""
689-
Project ID to list the Database Instance of.
689+
Project ID.
690690
"""
691691

692692
page: Optional[int]
@@ -703,7 +703,7 @@ class ListInstancesResponse:
703703

704704
total_count: int
705705
"""
706-
Total count of Database Instances available in a Organization or Project.
706+
Total count of Database Instances available in an Organization or Project.
707707
"""
708708

709709

@@ -751,7 +751,7 @@ class ListSnapshotsRequest:
751751

752752
name: Optional[str]
753753
"""
754-
Lists Database snapshots that match a name pattern.
754+
Lists database snapshots that match a name pattern.
755755
"""
756756

757757
order_by: Optional[ListSnapshotsRequestOrderBy]
@@ -778,12 +778,12 @@ class ListSnapshotsRequest:
778778
class ListSnapshotsResponse:
779779
snapshots: List[Snapshot]
780780
"""
781-
List of all Database Snapshots available in an Organization or Project.
781+
List of all database snapshots available in an Organization or Project.
782782
"""
783783

784784
total_count: int
785785
"""
786-
Total count of Database Snapshots available in a Organization or Project.
786+
Total count of database snapshots available in a Organization or Project.
787787
"""
788788

789789

@@ -845,12 +845,12 @@ class ListVersionsRequest:
845845
class ListVersionsResponse:
846846
versions: List[Version]
847847
"""
848-
Available MongoDB engine version.
848+
Available MongoDB® engine version.
849849
"""
850850

851851
total_count: int
852852
"""
853-
Total count of MongoDB engine version available.
853+
Total count of MongoDB® engine version available.
854854
"""
855855

856856

0 commit comments

Comments
 (0)