From 72161ef758f6334dbb22c9724aa33b9d49f1cbde Mon Sep 17 00:00:00 2001 From: Scaleway Bot Date: Mon, 4 Nov 2024 08:36:53 +0100 Subject: [PATCH] feat(mongodb): fix typo the CreateUser url (#1550) Co-authored-by: Laure-di <62625835+Laure-di@users.noreply.github.com> --- packages/clients/src/api/mongodb/v1alpha1/api.gen.ts | 2 +- packages/clients/src/api/mongodb/v1alpha1/marshalling.gen.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/clients/src/api/mongodb/v1alpha1/api.gen.ts b/packages/clients/src/api/mongodb/v1alpha1/api.gen.ts index c9c832fe1..686eaed7c 100644 --- a/packages/clients/src/api/mongodb/v1alpha1/api.gen.ts +++ b/packages/clients/src/api/mongodb/v1alpha1/api.gen.ts @@ -510,7 +510,7 @@ export class API extends ParentAPI { ), headers: jsonContentHeaders, method: 'POST', - path: `/mongodb/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/users/${validatePathParam('name', request.name)}`, + path: `/mongodb/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/users`, }, unmarshalUser, ) diff --git a/packages/clients/src/api/mongodb/v1alpha1/marshalling.gen.ts b/packages/clients/src/api/mongodb/v1alpha1/marshalling.gen.ts index 4c33d1ba3..dc622a591 100644 --- a/packages/clients/src/api/mongodb/v1alpha1/marshalling.gen.ts +++ b/packages/clients/src/api/mongodb/v1alpha1/marshalling.gen.ts @@ -420,6 +420,7 @@ export const marshalCreateUserRequest = ( request: CreateUserRequest, defaults: DefaultValues, ): Record => ({ + name: request.name, password: request.password, })