mirror of
https://github.com/rancher/types.git
synced 2025-08-15 11:12:57 +00:00
Adding me field to user type
This commit is contained in:
parent
ed80832abc
commit
e18b4a9cae
@ -28,6 +28,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"`
|
||||
}
|
||||
|
||||
type Group struct {
|
||||
|
@ -11,6 +11,7 @@ const (
|
||||
UserFieldFinalizers = "finalizers"
|
||||
UserFieldId = "id"
|
||||
UserFieldLabels = "labels"
|
||||
UserFieldMe = "me"
|
||||
UserFieldMustChangePassword = "mustChangePassword"
|
||||
UserFieldName = "name"
|
||||
UserFieldOwnerReferences = "ownerReferences"
|
||||
@ -29,6 +30,7 @@ type User struct {
|
||||
Finalizers []string `json:"finalizers,omitempty"`
|
||||
Id string `json:"id,omitempty"`
|
||||
Labels map[string]string `json:"labels,omitempty"`
|
||||
Me *bool `json:"me,omitempty"`
|
||||
MustChangePassword *bool `json:"mustChangePassword,omitempty"`
|
||||
Name string `json:"name,omitempty"`
|
||||
OwnerReferences []OwnerReference `json:"ownerReferences,omitempty"`
|
||||
|
Loading…
Reference in New Issue
Block a user