1
0
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:
Prachi Damle 2017-12-21 12:41:27 -08:00 committed by Darren Shepherd
parent ed80832abc
commit e18b4a9cae
2 changed files with 3 additions and 0 deletions

View File

@ -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 {

View File

@ -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"`