Class V1SubjectRulesReviewStatus
java.lang.Object
io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatus
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-10-04T19:37:38.574271Z[Etc/UTC]",
comments="Generator version: 7.6.0")
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddNonResourceRulesItem
(V1NonResourceRule nonResourceRulesItem) addResourceRulesItem
(V1ResourceRule resourceRulesItem) boolean
evaluationError
(String evaluationError) static V1SubjectRulesReviewStatus
Create an instance of V1SubjectRulesReviewStatus given an JSON stringEvaluationError can appear in combination with Rules.Incomplete is true when the rules returned by this call are incomplete.NonResourceRules is the list of actions the subject is allowed to perform on non-resources.ResourceRules is the list of actions the subject is allowed to perform on resources.int
hashCode()
incomplete
(Boolean incomplete) nonResourceRules
(List<V1NonResourceRule> nonResourceRules) resourceRules
(List<V1ResourceRule> resourceRules) void
setEvaluationError
(String evaluationError) void
setIncomplete
(Boolean incomplete) void
setNonResourceRules
(List<V1NonResourceRule> nonResourceRules) void
setResourceRules
(List<V1ResourceRule> resourceRules) toJson()
Convert an instance of V1SubjectRulesReviewStatus to an JSON stringtoString()
static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_EVALUATION_ERROR
- See Also:
-
SERIALIZED_NAME_INCOMPLETE
- See Also:
-
SERIALIZED_NAME_NON_RESOURCE_RULES
- See Also:
-
SERIALIZED_NAME_RESOURCE_RULES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1SubjectRulesReviewStatus
public V1SubjectRulesReviewStatus()
-
-
Method Details
-
evaluationError
-
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
-
incomplete
-
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
-
nonResourceRules
-
addNonResourceRulesItem
-
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
-
resourceRules
-
addResourceRulesItem
-
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
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement
- JSON Element- Throws:
IOException
- if the JSON Element is invalid with respect to V1SubjectRulesReviewStatus
-
fromJson
Create an instance of V1SubjectRulesReviewStatus given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1SubjectRulesReviewStatus
- Throws:
IOException
- if the JSON string is invalid with respect to V1SubjectRulesReviewStatus
-
toJson
Convert an instance of V1SubjectRulesReviewStatus to an JSON string- Returns:
- JSON string
-