Class V1SubjectAccessReviewSpec
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1SubjectAccessReviewSpec
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1SubjectAccessReviewSpec
extends Object
SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddgroupsItem
(String groupsItem) Add an item to the groups property in a chainable fashion.boolean
Set extra in a chainable fashion.getExtra()
Extra corresponds to the user.Info.GetExtra() method from the authenticator.Groups is the groups you're testing for.getUid()
UID information about the requesting user.getUser()
User is the user you're testing for.Set groups in a chainable fashion.int
hashCode()
nonResourceAttributes
(V1NonResourceAttributes nonResourceAttributes) Set nonResourceAttributes in a chainable fashion.putextraItem
(String key, List<String> extraItem) Set the value for the key for the extra map property in a chainable fashion.resourceAttributes
(V1ResourceAttributes resourceAttributes) Set resourceAttributes in a chainable fashion.void
Set the extra property valuevoid
Set the groups property valuevoid
setNonResourceAttributes
(V1NonResourceAttributes nonResourceAttributes) Set the nonResourceAttributes property valuevoid
setResourceAttributes
(V1ResourceAttributes resourceAttributes) Set the resourceAttributes property valuevoid
Set the uid property valuevoid
Set the user property valuetoString()
Set uid in a chainable fashion.Set user in a chainable fashion.
-
Field Details
-
JSON_PROPERTY_EXTRA
- See Also:
-
JSON_PROPERTY_GROUPS
- See Also:
-
JSON_PROPERTY_NON_RESOURCE_ATTRIBUTES
- See Also:
-
JSON_PROPERTY_RESOURCE_ATTRIBUTES
- See Also:
-
JSON_PROPERTY_UID
- See Also:
-
JSON_PROPERTY_USER
- See Also:
-
-
Constructor Details
-
V1SubjectAccessReviewSpec
public V1SubjectAccessReviewSpec()
-
-
Method Details
-
getExtra
Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.- Returns:
- the extra property value
-
setExtra
Set the extra property value- Parameters:
extra
- property value to set
-
extra
Set extra in a chainable fashion.- Returns:
- The same instance of V1SubjectAccessReviewSpec for chaining.
-
putextraItem
Set the value for the key for the extra map property in a chainable fashion.- Returns:
- The same instance of V1SubjectAccessReviewSpec for chaining.
-
getGroups
Groups is the groups you're testing for.- Returns:
- the groups property value
-
setGroups
Set the groups property value- Parameters:
groups
- property value to set
-
groups
Set groups in a chainable fashion.- Returns:
- The same instance of V1SubjectAccessReviewSpec for chaining.
-
addgroupsItem
Add an item to the groups property in a chainable fashion.- Returns:
- The same instance of V1SubjectAccessReviewSpec for chaining.
-
getNonResourceAttributes
- Returns:
- the nonResourceAttributes property value
-
setNonResourceAttributes
Set the nonResourceAttributes property value- Parameters:
nonResourceAttributes
- property value to set
-
nonResourceAttributes
public V1SubjectAccessReviewSpec nonResourceAttributes(V1NonResourceAttributes nonResourceAttributes) Set nonResourceAttributes in a chainable fashion.- Returns:
- The same instance of V1SubjectAccessReviewSpec for chaining.
-
getResourceAttributes
- Returns:
- the resourceAttributes property value
-
setResourceAttributes
Set the resourceAttributes property value- Parameters:
resourceAttributes
- property value to set
-
resourceAttributes
Set resourceAttributes in a chainable fashion.- Returns:
- The same instance of V1SubjectAccessReviewSpec for chaining.
-
getUid
UID information about the requesting user.- Returns:
- the uid property value
-
setUid
Set the uid property value- Parameters:
uid
- property value to set
-
uid
Set uid in a chainable fashion.- Returns:
- The same instance of V1SubjectAccessReviewSpec for chaining.
-
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- Returns:
- the user property value
-
setUser
Set the user property value- Parameters:
user
- property value to set
-
user
Set user in a chainable fashion.- Returns:
- The same instance of V1SubjectAccessReviewSpec for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-