diff --git a/packages/clients/src/api/mongodb/v1alpha1/marshalling.gen.ts b/packages/clients/src/api/mongodb/v1alpha1/marshalling.gen.ts index 209d01605..d0e978158 100644 --- a/packages/clients/src/api/mongodb/v1alpha1/marshalling.gen.ts +++ b/packages/clients/src/api/mongodb/v1alpha1/marshalling.gen.ts @@ -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, @@ -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, diff --git a/packages/clients/src/api/mongodb/v1alpha1/types.gen.ts b/packages/clients/src/api/mongodb/v1alpha1/types.gen.ts index 7bcb5285e..75a00baa2 100644 --- a/packages/clients/src/api/mongodb/v1alpha1/types.gen.ts +++ b/packages/clients/src/api/mongodb/v1alpha1/types.gen.ts @@ -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. */