Skip to content

Commit 454f101

Browse files
authored
docs(mongodb): add documentation (#1531)
1 parent adf5d98 commit 454f101

File tree

2 files changed

+41
-42
lines changed

2 files changed

+41
-42
lines changed

packages/clients/src/api/mongodb/v1alpha1/api.gen.ts

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ const jsonContentHeaders = {
6262
}
6363

6464
/**
65-
* Managed Database for MongoDB.
65+
* Managed Database for MongoDB®.
6666
*
67-
* This API allows you to manage your Managed Databases for MongoDB.
67+
* This API allows you to manage your Managed Databases for MongoDB®.
6868
*/
6969
export class API extends ParentAPI {
7070
/** Lists the available regions of the API. */
@@ -118,7 +118,7 @@ export class API extends ParentAPI {
118118
)
119119

120120
/**
121-
* List available MongoDB versions.
121+
* List available MongoDB® versions.
122122
*
123123
* @param request - The request {@link ListVersionsRequest}
124124
* @returns A Promise of ListVersionsResponse
@@ -157,14 +157,13 @@ export class API extends ParentAPI {
157157
)
158158

159159
/**
160-
* List MongoDB™ Database Instances. List all MongoDB™ Database Instances in
161-
* the specified region, for a given Scaleway Project. By default, the
162-
* MongoDB™ Database Instances returned in the list are ordered by creation
163-
* date in ascending order, though this can be modified via the order_by
164-
* field. You can define additional parameters for your query, such as `tags`
165-
* and `name`. For the `name` parameter, the value you include will be checked
166-
* against the whole name string to see if it includes the string you put in
167-
* the parameter.
160+
* List MongoDB® Database Instances. List all MongoDB® Database Instances in
161+
* the specified region. By default, the MongoDB® Database Instances returned
162+
* in the list are ordered by creation date in ascending order, though this
163+
* can be modified via the order_by field. You can define additional
164+
* parameters for your query, such as `tags` and `name`. For the `name`
165+
* parameter, the value you include will be checked against the whole name
166+
* string to see if it includes the string you put in the parameter.
168167
*
169168
* @param request - The request {@link ListInstancesRequest}
170169
* @returns A Promise of ListInstancesResponse
@@ -173,8 +172,8 @@ export class API extends ParentAPI {
173172
enrichForPagination('instances', this.pageOfListInstances, request)
174173

175174
/**
176-
* Get a MongoDB Database Instance. Retrieve information about a given
177-
* MongoDB Database Instance, specified by the `region` and `instance_id`
175+
* Get a MongoDB® Database Instance. Retrieve information about a given
176+
* MongoDB® Database Instance, specified by the `region` and `instance_id`
178177
* parameters. Its full details, including name, status, IP address and port,
179178
* are returned in the response object.
180179
*
@@ -211,7 +210,7 @@ export class API extends ParentAPI {
211210
)
212211

213212
/**
214-
* Create a MongoDB Database Instance. Create a new MongoDB Database
213+
* Create a MongoDB® Database Instance. Create a new MongoDB® Database
215214
* Instance.
216215
*
217216
* @param request - The request {@link CreateInstanceRequest}
@@ -231,7 +230,7 @@ export class API extends ParentAPI {
231230
)
232231

233232
/**
234-
* Update a MongoDB Database Instance. Update the parameters of a MongoDB
233+
* Update a MongoDB® Database Instance. Update the parameters of a MongoDB®
235234
* Database Instance.
236235
*
237236
* @param request - The request {@link UpdateInstanceRequest}
@@ -251,9 +250,9 @@ export class API extends ParentAPI {
251250
)
252251

253252
/**
254-
* Delete a MongoDB Database Instance. Delete a given MongoDB Database
253+
* Delete a MongoDB® Database Instance. Delete a given MongoDB® Database
255254
* Instance, specified by the `region` and `instance_id` parameters. Deleting
256-
* a MongoDB Database Instance is permanent, and cannot be undone. Note that
255+
* a MongoDB® Database Instance is permanent, and cannot be undone. Note that
257256
* upon deletion all your data will be lost.
258257
*
259258
* @param request - The request {@link DeleteInstanceRequest}

packages/clients/src/api/mongodb/v1alpha1/types.gen.ts

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ export type VolumeType = 'unknown_type' | 'sbs_5k' | 'sbs_15k'
5252

5353
/** Private Network details. */
5454
export interface EndpointPrivateNetworkDetails {
55-
/** UUID of the private network. */
55+
/** UUID of the Private Network. */
5656
privateNetworkId: string
5757
}
5858

5959
export interface EndpointPublicDetails {}
6060

6161
export interface EndpointSpecPrivateNetworkDetails {
62-
/** UUID of the private network. */
62+
/** UUID of the Private Network. */
6363
privateNetworkId: string
6464
}
6565

@@ -105,11 +105,11 @@ export interface Volume {
105105
export interface NodeTypeVolumeType {
106106
/** Volume Type. */
107107
type: VolumeType
108-
/** The description of the Volume. */
108+
/** The description of the volume. */
109109
description: string
110-
/** Mimimum size required for the Volume. */
110+
/** Mimimum size required for the volume. */
111111
minSize: number
112-
/** Maximum size required for the Volume. */
112+
/** Maximum size required for the volume. */
113113
maxSize: number
114114
/** Minimum increment level for a Block Storage volume size. */
115115
chunkSize: number
@@ -167,7 +167,7 @@ export interface Instance {
167167
projectId: string
168168
/** Status of the Database Instance. */
169169
status: InstanceStatus
170-
/** MongoDB engine version of the Database Instance. */
170+
/** MongoDB® engine version of the Database Instance. */
171171
version: string
172172
/** List of tags applied to the Database Instance. */
173173
tags: string[]
@@ -188,23 +188,23 @@ export interface Instance {
188188
}
189189

190190
export interface NodeType {
191-
/** Node Type name identifier. */
191+
/** Node type name identifier. */
192192
name: string
193-
/** Current stock status for the Node Type. */
193+
/** Current stock status for the node type. */
194194
stockStatus: NodeTypeStock
195195
/** Current specs of the offer. */
196196
description: string
197197
/** Number of virtual CPUs. */
198198
vcpus: number
199199
/** Quantity of RAM. */
200200
memory: number
201-
/** Available storage options for the Node Type. */
201+
/** Available storage options for the node type. */
202202
availableVolumeTypes: NodeTypeVolumeType[]
203-
/** The Node Type is currently disabled. */
203+
/** The node type is currently disabled. */
204204
disabled: boolean
205-
/** The Node Type is currently in beta. */
205+
/** The node type is currently in beta. */
206206
beta: boolean
207-
/** Instance range associated with the NodeType offer. */
207+
/** Instance range associated with the node type offer. */
208208
instanceRange: string
209209
}
210210

@@ -229,9 +229,9 @@ export interface Snapshot {
229229
instanceName: string
230230
/** Source node type. */
231231
nodeType: string
232-
/** Type of volume where data is stored sbs_5k or sbs_15k. */
232+
/** Type of volume where data is stored - sbs_5k or sbs_15k. */
233233
volumeType?: SnapshotVolumeType
234-
/** Region of this snapshot. */
234+
/** Region of the snapshot. */
235235
region: Region
236236
}
237237

@@ -245,7 +245,7 @@ export interface User {
245245
}
246246

247247
export interface Version {
248-
/** MongoDB engine version. */
248+
/** MongoDB® engine version. */
249249
version: string
250250
/** Date of End of Life. */
251251
endOfLifeAt?: Date
@@ -268,7 +268,7 @@ export type CreateInstanceRequest = {
268268
projectId?: string
269269
/** Name of the Database Instance. */
270270
name?: string
271-
/** Version of the MongoDB engine. */
271+
/** Version of the MongoDB® engine. */
272272
version: string
273273
/** Tags to apply to the Database Instance. */
274274
tags?: string[]
@@ -362,9 +362,9 @@ export type ListInstancesRequest = {
362362
name?: string
363363
/** Criteria to use when ordering Database Instance listings. */
364364
orderBy?: ListInstancesRequestOrderBy
365-
/** Organization ID the Database Instance belongs to. */
365+
/** Organization ID of the Database Instance. */
366366
organizationId?: string
367-
/** Project ID to list the Database Instance of. */
367+
/** Project ID. */
368368
projectId?: string
369369
page?: number
370370
pageSize?: number
@@ -373,7 +373,7 @@ export type ListInstancesRequest = {
373373
export interface ListInstancesResponse {
374374
/** List of all Database Instances available in an Organization or Project. */
375375
instances: Instance[]
376-
/** Total count of Database Instances available in a Organization or Project. */
376+
/** Total count of Database Instances available in an Organization or Project. */
377377
totalCount: number
378378
}
379379

@@ -404,7 +404,7 @@ export type ListSnapshotsRequest = {
404404
region?: Region
405405
/** Instance ID the snapshots belongs to. */
406406
instanceId?: string
407-
/** Lists Database snapshots that match a name pattern. */
407+
/** Lists database snapshots that match a name pattern. */
408408
name?: string
409409
/** Criteria to use when ordering snapshot listings. */
410410
orderBy?: ListSnapshotsRequestOrderBy
@@ -417,9 +417,9 @@ export type ListSnapshotsRequest = {
417417
}
418418

419419
export interface ListSnapshotsResponse {
420-
/** List of all Database Snapshots available in an Organization or Project. */
420+
/** List of all database snapshots available in an Organization or Project. */
421421
snapshots: Snapshot[]
422-
/** Total count of Database Snapshots available in a Organization or Project. */
422+
/** Total count of database snapshots available in a Organization or Project. */
423423
totalCount: number
424424
}
425425

@@ -458,9 +458,9 @@ export type ListVersionsRequest = {
458458
}
459459

460460
export interface ListVersionsResponse {
461-
/** Available MongoDB engine version. */
461+
/** Available MongoDB® engine version. */
462462
versions: Version[]
463-
/** Total count of MongoDB engine version available. */
463+
/** Total count of MongoDB® engine version available. */
464464
totalCount: number
465465
}
466466

@@ -533,7 +533,7 @@ export type UpgradeInstanceRequest = {
533533
/** UUID of the Database Instance you want to upgrade. */
534534
instanceId: string
535535
/**
536-
* Increase your block storage volume size.
536+
* Increase your Block Storage volume size.
537537
*
538538
* One-of ('upgradeTarget'): at most one of 'volumeSize' could be set.
539539
*/

0 commit comments

Comments
 (0)