1
0
mirror of https://github.com/rancher/types.git synced 2025-09-16 23:08:25 +00:00

Changes to token to add "token" writeOnly field

This commit is contained in:
Prachi Damle
2018-01-18 19:05:04 -08:00
committed by Darren Shepherd
parent 2c2b758d35
commit 094ae74c93
2 changed files with 3 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ type Token struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Token string `json:"token" norman:"writeOnly,noupdate"`
UserPrincipal Principal `json:"userPrincipal" norman:"type=reference[Principal]"`
GroupPrincipals []Principal `json:"groupPrincipals" norman:"type=array[reference[Principal]]"`
ProviderInfo map[string]string `json:"providerInfo,omitempty"`