Package net.stickycode.kuuty.model.v18
Class IoK8sApiAuthorizationV1SubjectRulesReviewStatus
- java.lang.Object
-
- net.stickycode.kuuty.model.v18.IoK8sApiAuthorizationV1SubjectRulesReviewStatus
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2020-11-26T11:01:11.402583+13:00[Pacific/Auckland]") public class IoK8sApiAuthorizationV1SubjectRulesReviewStatus 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
Fields Modifier and Type Field Description static StringJSON_PROPERTY_EVALUATION_ERRORstatic StringJSON_PROPERTY_INCOMPLETEstatic StringJSON_PROPERTY_NON_RESOURCE_RULESstatic StringJSON_PROPERTY_RESOURCE_RULES
-
Constructor Summary
Constructors Constructor Description IoK8sApiAuthorizationV1SubjectRulesReviewStatus()
-
Method Summary
-
-
-
Field Detail
-
JSON_PROPERTY_EVALUATION_ERROR
public static final String JSON_PROPERTY_EVALUATION_ERROR
- See Also:
- Constant Field Values
-
JSON_PROPERTY_INCOMPLETE
public static final String JSON_PROPERTY_INCOMPLETE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NON_RESOURCE_RULES
public static final String JSON_PROPERTY_NON_RESOURCE_RULES
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RESOURCE_RULES
public static final String JSON_PROPERTY_RESOURCE_RULES
- See Also:
- Constant Field Values
-
-
Method Detail
-
evaluationError
public IoK8sApiAuthorizationV1SubjectRulesReviewStatus evaluationError(String evaluationError)
-
getEvaluationError
@Nullable public String 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:
- evaluationError
-
setEvaluationError
public void setEvaluationError(String evaluationError)
-
incomplete
public IoK8sApiAuthorizationV1SubjectRulesReviewStatus incomplete(Boolean incomplete)
-
getIncomplete
public Boolean 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:
- incomplete
-
setIncomplete
public void setIncomplete(Boolean incomplete)
-
nonResourceRules
public IoK8sApiAuthorizationV1SubjectRulesReviewStatus nonResourceRules(List<IoK8sApiAuthorizationV1NonResourceRule> nonResourceRules)
-
addNonResourceRulesItem
public IoK8sApiAuthorizationV1SubjectRulesReviewStatus addNonResourceRulesItem(IoK8sApiAuthorizationV1NonResourceRule nonResourceRulesItem)
-
getNonResourceRules
public List<IoK8sApiAuthorizationV1NonResourceRule> 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:
- nonResourceRules
-
setNonResourceRules
public void setNonResourceRules(List<IoK8sApiAuthorizationV1NonResourceRule> nonResourceRules)
-
resourceRules
public IoK8sApiAuthorizationV1SubjectRulesReviewStatus resourceRules(List<IoK8sApiAuthorizationV1ResourceRule> resourceRules)
-
addResourceRulesItem
public IoK8sApiAuthorizationV1SubjectRulesReviewStatus addResourceRulesItem(IoK8sApiAuthorizationV1ResourceRule resourceRulesItem)
-
getResourceRules
public List<IoK8sApiAuthorizationV1ResourceRule> 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:
- resourceRules
-
setResourceRules
public void setResourceRules(List<IoK8sApiAuthorizationV1ResourceRule> resourceRules)
-
-