Class SubjectAccessReviewSpec
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.authorization.v1.SubjectAccessReviewSpec
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<SubjectAccessReviewSpecBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class SubjectAccessReviewSpec extends Object implements io.fabric8.kubernetes.api.builder.Editable<SubjectAccessReviewSpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SubjectAccessReviewSpec()No args constructor for use in serializationSubjectAccessReviewSpec(Map<String,List<String>> extra, List<String> groups, NonResourceAttributes nonResourceAttributes, ResourceAttributes resourceAttributes, String uid, String user)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SubjectAccessReviewSpecBuilderedit()Map<String,Object>getAdditionalProperties()Map<String,List<String>>getExtra()Extra corresponds to the user.Info.GetExtra() method from the authenticator.List<String>getGroups()Groups is the groups you're testing for.NonResourceAttributesgetNonResourceAttributes()SubjectAccessReviewSpec is a description of the access request.ResourceAttributesgetResourceAttributes()SubjectAccessReviewSpec is a description of the access request.StringgetUid()UID information about the requesting user.StringgetUser()User is the user you're testing for.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetExtra(Map<String,List<String>> extra)Extra corresponds to the user.Info.GetExtra() method from the authenticator.voidsetGroups(List<String> groups)Groups is the groups you're testing for.voidsetNonResourceAttributes(NonResourceAttributes nonResourceAttributes)SubjectAccessReviewSpec is a description of the access request.voidsetResourceAttributes(ResourceAttributes resourceAttributes)SubjectAccessReviewSpec is a description of the access request.voidsetUid(String uid)UID information about the requesting user.voidsetUser(String user)User is the user you're testing for.SubjectAccessReviewSpecBuildertoBuilder()
-
-
-
Constructor Detail
-
SubjectAccessReviewSpec
public SubjectAccessReviewSpec()
No args constructor for use in serialization
-
SubjectAccessReviewSpec
public SubjectAccessReviewSpec(Map<String,List<String>> extra, List<String> groups, NonResourceAttributes nonResourceAttributes, ResourceAttributes resourceAttributes, String uid, String user)
-
-
Method Detail
-
getExtra
public Map<String,List<String>> getExtra()
Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.
-
setExtra
public void setExtra(Map<String,List<String>> extra)
Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.
-
getNonResourceAttributes
public NonResourceAttributes getNonResourceAttributes()
SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set
-
setNonResourceAttributes
public void setNonResourceAttributes(NonResourceAttributes nonResourceAttributes)
SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set
-
getResourceAttributes
public ResourceAttributes getResourceAttributes()
SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set
-
setResourceAttributes
public void setResourceAttributes(ResourceAttributes resourceAttributes)
SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set
-
getUid
public String getUid()
UID information about the requesting user.
-
setUid
public void setUid(String uid)
UID information about the requesting user.
-
getUser
public String getUser()
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
-
setUser
public void setUser(String user)
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
-
edit
public SubjectAccessReviewSpecBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<SubjectAccessReviewSpecBuilder>
-
toBuilder
public SubjectAccessReviewSpecBuilder toBuilder()
-
-