com.coralogix.zio.k8s.model.authorization.v1
SubjectAccessReviewStatus
Companion object SubjectAccessReviewStatus
case class SubjectAccessReviewStatus(allowed: Boolean, denied: Optional[Boolean] = Optional.Absent, evaluationError: Optional[String] = Optional.Absent, reason: Optional[String] = Optional.Absent) extends Product with Serializable
SubjectAccessReviewStatus
- allowed
Allowed is required. True if the action would be allowed, false otherwise.
- denied
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.
- evaluationError
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.
- reason
Reason is optional. It indicates why a request was allowed or denied.
- Alphabetic
- By Inheritance
- SubjectAccessReviewStatus
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
SubjectAccessReviewStatus(allowed: Boolean, denied: Optional[Boolean] = Optional.Absent, evaluationError: Optional[String] = Optional.Absent, reason: Optional[String] = Optional.Absent)
- allowed
Allowed is required. True if the action would be allowed, false otherwise.
- denied
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.
- evaluationError
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.
- reason
Reason is optional. It indicates why a request was allowed or denied.
Value Members
- val allowed: Boolean
- val denied: Optional[Boolean]
- val evaluationError: Optional[String]
-
def
getAllowed: IO[K8sFailure, Boolean]
Allowed is required.
Allowed is required. True if the action would be allowed, false otherwise.
This effect always succeeds, it is safe to use the field allowed directly.
-
def
getDenied: IO[K8sFailure, Boolean]
Denied is optional.
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.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
-
def
getEvaluationError: IO[K8sFailure, String]
EvaluationError is an indication that some error occurred during the authorization check.
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.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
-
def
getReason: IO[K8sFailure, String]
Reason is optional.
Reason is optional. It indicates why a request was allowed or denied.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
- val reason: Optional[String]