Package io.fabric8.openshift.api.model
Class SubjectAccessReviewResponse
- java.lang.Object
-
- io.fabric8.openshift.api.model.SubjectAccessReviewResponse
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<SubjectAccessReviewResponseBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,io.fabric8.kubernetes.api.model.Namespaced,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class SubjectAccessReviewResponse extends Object implements io.fabric8.kubernetes.api.builder.Editable<SubjectAccessReviewResponseBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource, io.fabric8.kubernetes.api.model.Namespaced
SubjectAccessReviewResponse describes whether or not a user or group can perform an actionCompatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SubjectAccessReviewResponse()No args constructor for use in serializationSubjectAccessReviewResponse(Boolean allowed, String apiVersion, String evaluationError, String kind, String namespace, String reason)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SubjectAccessReviewResponseBuilderedit()Map<String,Object>getAdditionalProperties()BooleangetAllowed()allowed is required.StringgetApiVersion()APIVersion defines the versioned schema of this representation of an object.StringgetEvaluationError()evaluationError is an indication that some error occurred during the authorization check.StringgetKind()Kind is a string value representing the REST resource this object represents.StringgetNamespace()namespace is the namespace used for the access reviewStringgetReason()reason is optional.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAllowed(Boolean allowed)allowed is required.voidsetApiVersion(String apiVersion)APIVersion defines the versioned schema of this representation of an object.voidsetEvaluationError(String evaluationError)evaluationError is an indication that some error occurred during the authorization check.voidsetKind(String kind)Kind is a string value representing the REST resource this object represents.voidsetNamespace(String namespace)namespace is the namespace used for the access reviewvoidsetReason(String reason)reason is optional.SubjectAccessReviewResponseBuildertoBuilder()
-
-
-
Method Detail
-
getAllowed
public Boolean getAllowed()
allowed is required. True if the action would be allowed, false otherwise.
-
setAllowed
public void setAllowed(Boolean allowed)
allowed is required. True if the action would be allowed, false otherwise.
-
getApiVersion
public String getApiVersion()
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
-
setApiVersion
public void setApiVersion(String apiVersion)
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
-
getEvaluationError
public String 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. This is most common when a bound role is missing, but enough roles are still present and bound to reason about the request.
-
setEvaluationError
public void setEvaluationError(String 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. This is most common when a bound role is missing, but enough roles are still present and bound to reason about the request.
-
getKind
public String getKind()
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
-
setKind
public void setKind(String kind)
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
-
getNamespace
public String getNamespace()
namespace is the namespace used for the access review
-
setNamespace
public void setNamespace(String namespace)
namespace is the namespace used for the access review
-
getReason
public String getReason()
reason is optional. It indicates why a request was allowed or denied.
-
setReason
public void setReason(String reason)
reason is optional. It indicates why a request was allowed or denied.
-
edit
public SubjectAccessReviewResponseBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<SubjectAccessReviewResponseBuilder>
-
toBuilder
public SubjectAccessReviewResponseBuilder toBuilder()
-
-