1
0
mirror of https://github.com/rancher/types.git synced 2025-09-01 05:09:10 +00:00

Set perms on password

This commit is contained in:
Darren Shepherd
2017-12-18 16:55:03 -07:00
parent c5904b3828
commit 638d526a3a
2 changed files with 11 additions and 7 deletions

View File

@@ -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"`
}{})
}