Class V1SubjectAccessReviewStatus
java.lang.Object
io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatus
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-12T21:15:49.397498Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1SubjectAccessReviewStatus
extends Object
SubjectAccessReviewStatus
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
evaluationError
(String evaluationError) static V1SubjectAccessReviewStatus
Create an instance of V1SubjectAccessReviewStatus given an JSON stringAllowed is required.Denied is optional.EvaluationError is an indication that some error occurred during the authorization check.Reason is optional.int
hashCode()
void
setAllowed
(Boolean allowed) void
void
setEvaluationError
(String evaluationError) void
toJson()
Convert an instance of V1SubjectAccessReviewStatus 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_ALLOWED
- See Also:
-
SERIALIZED_NAME_DENIED
- See Also:
-
SERIALIZED_NAME_EVALUATION_ERROR
- See Also:
-
SERIALIZED_NAME_REASON
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1SubjectAccessReviewStatus
public V1SubjectAccessReviewStatus()
-
-
Method Details
-
allowed
-
getAllowed
Allowed is required. True if the action would be allowed, false otherwise.- Returns:
- allowed
-
setAllowed
-
denied
-
getDenied
Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true.- Returns:
- denied
-
setDenied
-
evaluationError
-
getEvaluationError
EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.- Returns:
- evaluationError
-
setEvaluationError
-
reason
-
getReason
Reason is optional. It indicates why a request was allowed or denied.- Returns:
- reason
-
setReason
-
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 V1SubjectAccessReviewStatus
-
fromJson
Create an instance of V1SubjectAccessReviewStatus given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1SubjectAccessReviewStatus
- Throws:
IOException
- if the JSON string is invalid with respect to V1SubjectAccessReviewStatus
-
toJson
Convert an instance of V1SubjectAccessReviewStatus to an JSON string- Returns:
- JSON string
-