mirror of
https://github.com/rancher/types.git
synced 2025-08-25 07:18:25 +00:00
Set perms on password
This commit is contained in:
parent
c5904b3828
commit
638d526a3a
@ -25,7 +25,7 @@ type User struct {
|
||||
|
||||
DisplayName string `json:"displayName,omitempty"`
|
||||
UserName string `json:"userName,omitempty"`
|
||||
Password string `json:"password,omitempty"`
|
||||
Password string `json:"password,omitempty" norman:"writeOnly,noupdate"`
|
||||
MustChangePassword bool `json:"mustChangePassword,omitempty"`
|
||||
PrincipalIDs []string `json:"principalIds,omitempty" norman:"type=array[reference[Principal]]"`
|
||||
}
|
||||
|
@ -46,14 +46,18 @@ func NamespaceTypes(version *types.APIVersion, schemas *types.Schemas) *types.Sc
|
||||
).
|
||||
AddMapperForType(version, v1.Namespace{},
|
||||
&m.LabelField{Field: "projectId"},
|
||||
&m.AnnotationField{Field: "externalId"},
|
||||
&m.AnnotationField{Field: "templates", Object: true},
|
||||
&m.AnnotationField{Field: "prune"},
|
||||
&m.AnnotationField{Field: "answers", Object: true},
|
||||
).
|
||||
MustImport(version, v1.Namespace{}, struct {
|
||||
ProjectID string `norman:"type=reference[/v3/schemas/project]"`
|
||||
Templates map[string]string
|
||||
Answers map[string]interface{}
|
||||
Prune bool
|
||||
ExternalID string
|
||||
Tags []string
|
||||
ProjectID string `norman:"type=reference[/v3/schemas/project]"`
|
||||
Templates map[string]string `json:"templates"`
|
||||
Answers map[string]interface{} `json:"answers"`
|
||||
Prune bool `json:"prune"`
|
||||
ExternalID string `json:"externalId"`
|
||||
Tags []string `json:"tags"`
|
||||
}{})
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user