diff --git a/services/mongodbflex/model_create_user_payload.go b/services/mongodbflex/model_create_user_payload.go index 72ddbb3ee..e0b8468cb 100644 --- a/services/mongodbflex/model_create_user_payload.go +++ b/services/mongodbflex/model_create_user_payload.go @@ -83,7 +83,7 @@ type CreateUserPayloadGetUsernameRetType = string type CreateUserPayload struct { // REQUIRED Database CreateUserPayloadGetDatabaseAttributeType `json:"database" required:"true"` - // The roles defined for a user. The *roles* attribute can contain the following values: 'read', 'readWrite', 'readAnyDatabase', 'readWriteAnyDatabase', 'stackitAdmin'. **The 'readAnyDatabase', 'readWriteAnyDatabase' and 'stackitAdmin' roles will always be created in the admin database.** + // The roles defined for a user. Currently only one role in the list is supported, therefore only the first role from this list is used. The *roles* attribute can contain the following values: 'read', 'readWrite', 'readAnyDatabase', 'readWriteAnyDatabase', 'stackitAdmin'. **The 'readAnyDatabase', 'readWriteAnyDatabase' and 'stackitAdmin' roles will always be created in the admin database.** // REQUIRED Roles CreateUserPayloadGetRolesAttributeType `json:"roles" required:"true"` Username CreateUserPayloadGetUsernameAttributeType `json:"username,omitempty"` diff --git a/services/mongodbflex/model_partial_update_user_payload.go b/services/mongodbflex/model_partial_update_user_payload.go index b608d9c2a..99eaa9765 100644 --- a/services/mongodbflex/model_partial_update_user_payload.go +++ b/services/mongodbflex/model_partial_update_user_payload.go @@ -61,7 +61,7 @@ func setPartialUpdateUserPayloadGetRolesAttributeType(arg *PartialUpdateUserPayl // PartialUpdateUserPayload struct for PartialUpdateUserPayload type PartialUpdateUserPayload struct { Database PartialUpdateUserPayloadGetDatabaseAttributeType `json:"database,omitempty"` - // The roles defined for a user. The *roles* attribute can contain the following values: 'read', 'readWrite', 'readAnyDatabase', 'readWriteAnyDatabase', 'stackitAdmin'. **The 'readAnyDatabase', 'readWriteAnyDatabase' and 'stackitAdmin' roles will always be created in the admin database.** + // The roles defined for a user. Currently only one role in the list is supported, therefore only the first role from this list is used. The *roles* attribute can contain the following values: 'read', 'readWrite', 'readAnyDatabase', 'readWriteAnyDatabase', 'stackitAdmin'. **The 'readAnyDatabase', 'readWriteAnyDatabase' and 'stackitAdmin' roles will always be created in the admin database.** Roles PartialUpdateUserPayloadGetRolesAttributeType `json:"roles,omitempty"` } diff --git a/services/mongodbflex/model_update_user_payload.go b/services/mongodbflex/model_update_user_payload.go index 0ae1d61c5..822bafb5e 100644 --- a/services/mongodbflex/model_update_user_payload.go +++ b/services/mongodbflex/model_update_user_payload.go @@ -62,7 +62,7 @@ func setUpdateUserPayloadGetRolesAttributeType(arg *UpdateUserPayloadGetRolesAtt type UpdateUserPayload struct { // REQUIRED Database UpdateUserPayloadGetDatabaseAttributeType `json:"database" required:"true"` - // The roles defined for a user. The *roles* attribute can contain the following values: 'read', 'readWrite', 'readAnyDatabase', 'readWriteAnyDatabase', 'stackitAdmin'. **The 'readAnyDatabase', 'readWriteAnyDatabase' and 'stackitAdmin' roles will always be created in the admin database.** + // The roles defined for a user. Currently only one role in the list is supported, therefore only the first role from this list is used. The *roles* attribute can contain the following values: 'read', 'readWrite', 'readAnyDatabase', 'readWriteAnyDatabase', 'stackitAdmin'. **The 'readAnyDatabase', 'readWriteAnyDatabase' and 'stackitAdmin' roles will always be created in the admin database.** // REQUIRED Roles UpdateUserPayloadGetRolesAttributeType `json:"roles" required:"true"` } diff --git a/services/mongodbflex/model_user.go b/services/mongodbflex/model_user.go index 0d7327c92..c11f8d991 100644 --- a/services/mongodbflex/model_user.go +++ b/services/mongodbflex/model_user.go @@ -190,7 +190,7 @@ type User struct { Id UserGetIdAttributeType `json:"id,omitempty"` Password UserGetPasswordAttributeType `json:"password,omitempty"` Port UserGetPortAttributeType `json:"port,omitempty"` - // The roles defined for a user. The *roles* attribute can contain the following values: 'read', 'readWrite', 'readAnyDatabase', 'readWriteAnyDatabase', 'stackitAdmin'. **The 'readAnyDatabase', 'readWriteAnyDatabase' and 'stackitAdmin' roles will always be created in the admin database.** + // The roles defined for a user. Currently only one role in the list is supported, therefore only the first role from this list is used. The *roles* attribute can contain the following values: 'read', 'readWrite', 'readAnyDatabase', 'readWriteAnyDatabase', 'stackitAdmin'. **The 'readAnyDatabase', 'readWriteAnyDatabase' and 'stackitAdmin' roles will always be created in the admin database.** Roles UserGetRolesAttributeType `json:"roles,omitempty"` Uri UserGetUriAttributeType `json:"uri,omitempty"` Username UserGetUsernameAttributeType `json:"username,omitempty"`