mirror of
https://github.com/rancher/types.git
synced 2025-08-27 08:18:24 +00:00
commit
2d4ec3d633
@ -74,8 +74,9 @@ type GlobalRoleBinding struct {
|
||||
metav1.TypeMeta `json:",inline"`
|
||||
metav1.ObjectMeta `json:"metadata,omitempty"`
|
||||
|
||||
UserName string `json:"userName,omitempty" norman:"required,type=reference[user]"`
|
||||
GlobalRoleName string `json:"globalRoleName,omitempty" norman:"required,noupdate,type=reference[globalRole]"`
|
||||
UserName string `json:"userName,omitempty" norman:"noupdate,type=reference[user]"`
|
||||
GroupPrincipalName string `json:"groupPrincipalName,omitempty" norman:"noupdate,type=reference[principal]"`
|
||||
GlobalRoleName string `json:"globalRoleName,omitempty" norman:"required,noupdate,type=reference[globalRole]"`
|
||||
}
|
||||
|
||||
type RoleTemplate struct {
|
||||
|
@ -5,31 +5,33 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
GlobalRoleBindingType = "globalRoleBinding"
|
||||
GlobalRoleBindingFieldAnnotations = "annotations"
|
||||
GlobalRoleBindingFieldCreated = "created"
|
||||
GlobalRoleBindingFieldCreatorID = "creatorId"
|
||||
GlobalRoleBindingFieldGlobalRoleID = "globalRoleId"
|
||||
GlobalRoleBindingFieldLabels = "labels"
|
||||
GlobalRoleBindingFieldName = "name"
|
||||
GlobalRoleBindingFieldOwnerReferences = "ownerReferences"
|
||||
GlobalRoleBindingFieldRemoved = "removed"
|
||||
GlobalRoleBindingFieldUUID = "uuid"
|
||||
GlobalRoleBindingFieldUserID = "userId"
|
||||
GlobalRoleBindingType = "globalRoleBinding"
|
||||
GlobalRoleBindingFieldAnnotations = "annotations"
|
||||
GlobalRoleBindingFieldCreated = "created"
|
||||
GlobalRoleBindingFieldCreatorID = "creatorId"
|
||||
GlobalRoleBindingFieldGlobalRoleID = "globalRoleId"
|
||||
GlobalRoleBindingFieldGroupPrincipalID = "groupPrincipalId"
|
||||
GlobalRoleBindingFieldLabels = "labels"
|
||||
GlobalRoleBindingFieldName = "name"
|
||||
GlobalRoleBindingFieldOwnerReferences = "ownerReferences"
|
||||
GlobalRoleBindingFieldRemoved = "removed"
|
||||
GlobalRoleBindingFieldUUID = "uuid"
|
||||
GlobalRoleBindingFieldUserID = "userId"
|
||||
)
|
||||
|
||||
type GlobalRoleBinding struct {
|
||||
types.Resource
|
||||
Annotations map[string]string `json:"annotations,omitempty" yaml:"annotations,omitempty"`
|
||||
Created string `json:"created,omitempty" yaml:"created,omitempty"`
|
||||
CreatorID string `json:"creatorId,omitempty" yaml:"creatorId,omitempty"`
|
||||
GlobalRoleID string `json:"globalRoleId,omitempty" yaml:"globalRoleId,omitempty"`
|
||||
Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
|
||||
Name string `json:"name,omitempty" yaml:"name,omitempty"`
|
||||
OwnerReferences []OwnerReference `json:"ownerReferences,omitempty" yaml:"ownerReferences,omitempty"`
|
||||
Removed string `json:"removed,omitempty" yaml:"removed,omitempty"`
|
||||
UUID string `json:"uuid,omitempty" yaml:"uuid,omitempty"`
|
||||
UserID string `json:"userId,omitempty" yaml:"userId,omitempty"`
|
||||
Annotations map[string]string `json:"annotations,omitempty" yaml:"annotations,omitempty"`
|
||||
Created string `json:"created,omitempty" yaml:"created,omitempty"`
|
||||
CreatorID string `json:"creatorId,omitempty" yaml:"creatorId,omitempty"`
|
||||
GlobalRoleID string `json:"globalRoleId,omitempty" yaml:"globalRoleId,omitempty"`
|
||||
GroupPrincipalID string `json:"groupPrincipalId,omitempty" yaml:"groupPrincipalId,omitempty"`
|
||||
Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
|
||||
Name string `json:"name,omitempty" yaml:"name,omitempty"`
|
||||
OwnerReferences []OwnerReference `json:"ownerReferences,omitempty" yaml:"ownerReferences,omitempty"`
|
||||
Removed string `json:"removed,omitempty" yaml:"removed,omitempty"`
|
||||
UUID string `json:"uuid,omitempty" yaml:"uuid,omitempty"`
|
||||
UserID string `json:"userId,omitempty" yaml:"userId,omitempty"`
|
||||
}
|
||||
|
||||
type GlobalRoleBindingCollection struct {
|
||||
|
Loading…
Reference in New Issue
Block a user