1
0
mirror of https://github.com/rancher/types.git synced 2025-04-27 18:25:05 +00:00

Set Field 'Me' to nocreate and noupdate

This commit is contained in:
GGGitBoy 2020-03-25 16:49:09 +08:00 committed by Denise
parent 784a390255
commit 7a787b3549

View File

@ -47,7 +47,7 @@ type User struct {
Password string `json:"password,omitempty" norman:"writeOnly,noupdate"`
MustChangePassword bool `json:"mustChangePassword,omitempty"`
PrincipalIDs []string `json:"principalIds,omitempty" norman:"type=array[reference[principal]]"`
Me bool `json:"me,omitempty"`
Me bool `json:"me,omitempty" norman:"nocreate,noupdate"`
Enabled *bool `json:"enabled,omitempty" norman:"default=true"`
Spec UserSpec `json:"spec,omitempty"`
Status UserStatus `json:"status"`