Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// This file was automatically generated. DO NOT EDIT.
// If you have any remark or suggestion do not hesitate to open an issue.
import randomName from '@scaleway/random-name'
import {
isJSONObject,
resolveOneOf,
Expand Down Expand Up @@ -392,7 +393,7 @@ export const marshalCreateInstanceRequest = (
request.endpoints !== undefined
? request.endpoints.map(elt => marshalEndpointSpec(elt, defaults))
: undefined,
name: request.name,
name: request.name || randomName('mgdb'),
node_number: request.nodeNumber,
node_type: request.nodeType,
password: request.password,
Expand Down
2 changes: 1 addition & 1 deletion packages/clients/src/api/mongodb/v1alpha1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ export type CreateInstanceRequest = {
/** The Project ID on which the Database Instance will be created. */
projectId?: string
/** Name of the Database Instance. */
name: string
name?: string
/** Version of the MongoDB™ engine. */
version: string
/** Tags to apply to the Database Instance. */
Expand Down