/
v1_subject_access_review_spec.go
32 lines (24 loc) · 1.34 KB
/
v1_subject_access_review_spec.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
* Kubernetes
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* API version: v1.10.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package client
// SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set
type V1SubjectAccessReviewSpec struct {
// Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.
Extra map[string][]string `json:"extra,omitempty"`
// Groups is the groups you're testing for.
Groups []string `json:"groups,omitempty"`
// NonResourceAttributes describes information for a non-resource access request
NonResourceAttributes *V1NonResourceAttributes `json:"nonResourceAttributes,omitempty"`
// ResourceAuthorizationAttributes describes information for a resource access request
ResourceAttributes *V1ResourceAttributes `json:"resourceAttributes,omitempty"`
// UID information about the requesting user.
Uid string `json:"uid,omitempty"`
// User is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups
User string `json:"user,omitempty"`
}