Class V1SubjectRulesReviewStatus
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1SubjectRulesReviewStatus
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1SubjectRulesReviewStatus
extends Object
SubjectRulesReviewStatus contains the result of a rules check. This check can be incomplete depending on the set of authorizers the server is configured with and any errors experienced during evaluation. Because authorization rules are additive, if a rule appears in a list it's safe to assume the subject has that permission, even if that list is incomplete.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionV1SubjectRulesReviewStatus
(Boolean incomplete, List<@Valid V1NonResourceRule> nonResourceRules, List<@Valid V1ResourceRule> resourceRules) -
Method Summary
Modifier and TypeMethodDescriptionaddnonResourceRulesItem
(V1NonResourceRule nonResourceRulesItem) Add an item to the nonResourceRules property in a chainable fashion.addresourceRulesItem
(V1ResourceRule resourceRulesItem) Add an item to the resourceRules property in a chainable fashion.boolean
evaluationError
(String evaluationError) Set evaluationError in a chainable fashion.EvaluationError can appear in combination with Rules.Incomplete is true when the rules returned by this call are incomplete.List<@Valid V1NonResourceRule>
NonResourceRules is the list of actions the subject is allowed to perform on non-resources.List<@Valid V1ResourceRule>
ResourceRules is the list of actions the subject is allowed to perform on resources.int
hashCode()
incomplete
(Boolean incomplete) Set incomplete in a chainable fashion.nonResourceRules
(List<@Valid V1NonResourceRule> nonResourceRules) Set nonResourceRules in a chainable fashion.resourceRules
(List<@Valid V1ResourceRule> resourceRules) Set resourceRules in a chainable fashion.void
setEvaluationError
(String evaluationError) Set the evaluationError property valuevoid
setIncomplete
(Boolean incomplete) Set the incomplete property valuevoid
setNonResourceRules
(List<@Valid V1NonResourceRule> nonResourceRules) Set the nonResourceRules property valuevoid
setResourceRules
(List<@Valid V1ResourceRule> resourceRules) Set the resourceRules property valuetoString()
-
Field Details
-
JSON_PROPERTY_EVALUATION_ERROR
- See Also:
-
JSON_PROPERTY_INCOMPLETE
- See Also:
-
JSON_PROPERTY_NON_RESOURCE_RULES
- See Also:
-
JSON_PROPERTY_RESOURCE_RULES
- See Also:
-
-
Constructor Details
-
V1SubjectRulesReviewStatus
public V1SubjectRulesReviewStatus(Boolean incomplete, List<@Valid V1NonResourceRule> nonResourceRules, List<@Valid V1ResourceRule> resourceRules)
-
-
Method Details
-
getEvaluationError
EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete.- Returns:
- the evaluationError property value
-
setEvaluationError
Set the evaluationError property value -
evaluationError
Set evaluationError in a chainable fashion.- Returns:
- The same instance of V1SubjectRulesReviewStatus for chaining.
-
getIncomplete
Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation.- Returns:
- the incomplete property value
-
setIncomplete
Set the incomplete property value -
incomplete
Set incomplete in a chainable fashion.- Returns:
- The same instance of V1SubjectRulesReviewStatus for chaining.
-
getNonResourceRules
NonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.- Returns:
- the nonResourceRules property value
-
setNonResourceRules
Set the nonResourceRules property value -
nonResourceRules
Set nonResourceRules in a chainable fashion.- Returns:
- The same instance of V1SubjectRulesReviewStatus for chaining.
-
addnonResourceRulesItem
Add an item to the nonResourceRules property in a chainable fashion.- Returns:
- The same instance of V1SubjectRulesReviewStatus for chaining.
-
getResourceRules
ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.- Returns:
- the resourceRules property value
-
setResourceRules
Set the resourceRules property value -
resourceRules
Set resourceRules in a chainable fashion.- Returns:
- The same instance of V1SubjectRulesReviewStatus for chaining.
-
addresourceRulesItem
Add an item to the resourceRules property in a chainable fashion.- Returns:
- The same instance of V1SubjectRulesReviewStatus for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-