mirror of
https://github.com/rancher/types.git
synced 2025-07-17 15:01:02 +00:00
Changes to token to add "token" writeOnly field
This commit is contained in:
parent
2c2b758d35
commit
094ae74c93
@ -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"`
|
||||
|
@ -20,6 +20,7 @@ const (
|
||||
TokenFieldProviderInfo = "providerInfo"
|
||||
TokenFieldRemoved = "removed"
|
||||
TokenFieldTTLMillis = "ttl"
|
||||
TokenFieldToken = "token"
|
||||
TokenFieldUserID = "userId"
|
||||
TokenFieldUserPrincipal = "userPrincipal"
|
||||
TokenFieldUuid = "uuid"
|
||||
@ -41,6 +42,7 @@ type Token struct {
|
||||
ProviderInfo map[string]string `json:"providerInfo,omitempty"`
|
||||
Removed string `json:"removed,omitempty"`
|
||||
TTLMillis *int64 `json:"ttl,omitempty"`
|
||||
Token string `json:"token,omitempty"`
|
||||
UserID string `json:"userId,omitempty"`
|
||||
UserPrincipal string `json:"userPrincipal,omitempty"`
|
||||
Uuid string `json:"uuid,omitempty"`
|
||||
|
Loading…
Reference in New Issue
Block a user