Package io.fabric8.openshift.api.model
Class LocalSubjectAccessReview
- java.lang.Object
-
- io.fabric8.openshift.api.model.LocalSubjectAccessReview
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<LocalSubjectAccessReviewBuilder>,io.fabric8.kubernetes.api.model.HasMetadata,io.fabric8.kubernetes.api.model.KubernetesResource,io.fabric8.kubernetes.api.model.Namespaced,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class LocalSubjectAccessReview extends Object implements io.fabric8.kubernetes.api.builder.Editable<LocalSubjectAccessReviewBuilder>, io.fabric8.kubernetes.api.model.HasMetadata, io.fabric8.kubernetes.api.model.Namespaced
LocalSubjectAccessReview is an object for requesting information about whether a user or group can perform an action in a particular namespaceCompatibility 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 LocalSubjectAccessReview()No args constructor for use in serializationLocalSubjectAccessReview(String apiVersion, Object content, List<String> groups, Boolean isNonResourceURL, String kind, io.fabric8.kubernetes.api.model.ObjectMeta metadata, String namespace, String path, String resource, String resourceAPIGroup, String resourceAPIVersion, String resourceName, List<String> scopes, String user, String verb)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalSubjectAccessReviewBuilderedit()Map<String,Object>getAdditionalProperties()StringgetApiVersion()APIVersion defines the versioned schema of this representation of an object.ObjectgetContent()LocalSubjectAccessReview is an object for requesting information about whether a user or group can perform an action in a particular namespaceList<String>getGroups()groups is optional.BooleangetIsNonResourceURL()isNonResourceURL is true if this is a request for a non-resource URL (outside of the resource hierarchy)StringgetKind()Kind is a string value representing the REST resource this object represents.io.fabric8.kubernetes.api.model.ObjectMetagetMetadata()LocalSubjectAccessReview is an object for requesting information about whether a user or group can perform an action in a particular namespaceStringgetNamespace()namespace is the namespace of the action being requested.StringgetPath()path is the path of a non resource URLStringgetResource()resource is one of the existing resource typesStringgetResourceAPIGroup()Group is the API group of the resource Serialized as resourceAPIGroup to avoid confusion with the 'groups' field when inlinedStringgetResourceAPIVersion()Version is the API version of the resource Serialized as resourceAPIVersion to avoid confusion with TypeMeta.apiVersion and ObjectMeta.resourceVersion when inlinedStringgetResourceName()resourceName is the name of the resource being requested for a "get" or deleted for a "delete"List<String>getScopes()scopes to use for the evaluation.StringgetUser()user is optional.StringgetVerb()verb is one of: get, list, watch, create, update, deletevoidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetApiVersion(String apiVersion)APIVersion defines the versioned schema of this representation of an object.voidsetContent(Object content)LocalSubjectAccessReview is an object for requesting information about whether a user or group can perform an action in a particular namespacevoidsetGroups(List<String> groups)groups is optional.voidsetIsNonResourceURL(Boolean isNonResourceURL)isNonResourceURL is true if this is a request for a non-resource URL (outside of the resource hierarchy)voidsetKind(String kind)Kind is a string value representing the REST resource this object represents.voidsetMetadata(io.fabric8.kubernetes.api.model.ObjectMeta metadata)LocalSubjectAccessReview is an object for requesting information about whether a user or group can perform an action in a particular namespacevoidsetNamespace(String namespace)namespace is the namespace of the action being requested.voidsetPath(String path)path is the path of a non resource URLvoidsetResource(String resource)resource is one of the existing resource typesvoidsetResourceAPIGroup(String resourceAPIGroup)Group is the API group of the resource Serialized as resourceAPIGroup to avoid confusion with the 'groups' field when inlinedvoidsetResourceAPIVersion(String resourceAPIVersion)Version is the API version of the resource Serialized as resourceAPIVersion to avoid confusion with TypeMeta.apiVersion and ObjectMeta.resourceVersion when inlinedvoidsetResourceName(String resourceName)resourceName is the name of the resource being requested for a "get" or deleted for a "delete"voidsetScopes(List<String> scopes)scopes to use for the evaluation.voidsetUser(String user)user is optional.voidsetVerb(String verb)verb is one of: get, list, watch, create, update, deleteLocalSubjectAccessReviewBuildertoBuilder()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.fabric8.kubernetes.api.model.HasMetadata
addFinalizer, addOwnerReference, addOwnerReference, getFinalizers, getFullResourceName, getOwnerReferenceFor, getOwnerReferenceFor, getPlural, getSingular, hasFinalizer, hasOwnerReferenceFor, hasOwnerReferenceFor, initNameAndNamespaceFrom, isFinalizerValid, isMarkedForDeletion, optionalMetadata, removeFinalizer, removeOwnerReference, removeOwnerReference
-
-
-
-
Constructor Detail
-
LocalSubjectAccessReview
public LocalSubjectAccessReview()
No args constructor for use in serialization
-
LocalSubjectAccessReview
public LocalSubjectAccessReview(String apiVersion, Object content, List<String> groups, Boolean isNonResourceURL, String kind, io.fabric8.kubernetes.api.model.ObjectMeta metadata, String namespace, String path, String resource, String resourceAPIGroup, String resourceAPIVersion, String resourceName, List<String> scopes, String user, String verb)
-
-
Method Detail
-
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- Specified by:
getApiVersionin interfaceio.fabric8.kubernetes.api.model.HasMetadata
-
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- Specified by:
setApiVersionin interfaceio.fabric8.kubernetes.api.model.HasMetadata
-
getContent
public Object getContent()
LocalSubjectAccessReview is an object for requesting information about whether a user or group can perform an action in a particular namespaceCompatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).
-
setContent
public void setContent(Object content)
LocalSubjectAccessReview is an object for requesting information about whether a user or group can perform an action in a particular namespaceCompatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).
-
getGroups
public List<String> getGroups()
groups is optional. Groups is the list of groups to which the User belongs.
-
setGroups
public void setGroups(List<String> groups)
groups is optional. Groups is the list of groups to which the User belongs.
-
getIsNonResourceURL
public Boolean getIsNonResourceURL()
isNonResourceURL is true if this is a request for a non-resource URL (outside of the resource hierarchy)
-
setIsNonResourceURL
public void setIsNonResourceURL(Boolean isNonResourceURL)
isNonResourceURL is true if this is a request for a non-resource URL (outside of the resource hierarchy)
-
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- Specified by:
getKindin interfaceio.fabric8.kubernetes.api.model.HasMetadata
-
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
-
getMetadata
public io.fabric8.kubernetes.api.model.ObjectMeta getMetadata()
LocalSubjectAccessReview is an object for requesting information about whether a user or group can perform an action in a particular namespaceCompatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).
- Specified by:
getMetadatain interfaceio.fabric8.kubernetes.api.model.HasMetadata
-
setMetadata
public void setMetadata(io.fabric8.kubernetes.api.model.ObjectMeta metadata)
LocalSubjectAccessReview is an object for requesting information about whether a user or group can perform an action in a particular namespaceCompatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).
- Specified by:
setMetadatain interfaceio.fabric8.kubernetes.api.model.HasMetadata
-
getNamespace
public String getNamespace()
namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces
-
setNamespace
public void setNamespace(String namespace)
namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces
-
getPath
public String getPath()
path is the path of a non resource URL
-
setPath
public void setPath(String path)
path is the path of a non resource URL
-
getResource
public String getResource()
resource is one of the existing resource types
-
setResource
public void setResource(String resource)
resource is one of the existing resource types
-
getResourceAPIGroup
public String getResourceAPIGroup()
Group is the API group of the resource Serialized as resourceAPIGroup to avoid confusion with the 'groups' field when inlined
-
setResourceAPIGroup
public void setResourceAPIGroup(String resourceAPIGroup)
Group is the API group of the resource Serialized as resourceAPIGroup to avoid confusion with the 'groups' field when inlined
-
getResourceAPIVersion
public String getResourceAPIVersion()
Version is the API version of the resource Serialized as resourceAPIVersion to avoid confusion with TypeMeta.apiVersion and ObjectMeta.resourceVersion when inlined
-
setResourceAPIVersion
public void setResourceAPIVersion(String resourceAPIVersion)
Version is the API version of the resource Serialized as resourceAPIVersion to avoid confusion with TypeMeta.apiVersion and ObjectMeta.resourceVersion when inlined
-
getResourceName
public String getResourceName()
resourceName is the name of the resource being requested for a "get" or deleted for a "delete"
-
setResourceName
public void setResourceName(String resourceName)
resourceName is the name of the resource being requested for a "get" or deleted for a "delete"
-
getScopes
public List<String> getScopes()
scopes to use for the evaluation. Empty means "use the unscoped (full) permissions of the user/groups". Nil for a self-SAR, means "use the scopes on this request". Nil for a regular SAR, means the same as empty.
-
setScopes
public void setScopes(List<String> scopes)
scopes to use for the evaluation. Empty means "use the unscoped (full) permissions of the user/groups". Nil for a self-SAR, means "use the scopes on this request". Nil for a regular SAR, means the same as empty.
-
getUser
public String getUser()
user is optional. If both User and Groups are empty, the current authenticated user is used.
-
setUser
public void setUser(String user)
user is optional. If both User and Groups are empty, the current authenticated user is used.
-
getVerb
public String getVerb()
verb is one of: get, list, watch, create, update, delete
-
setVerb
public void setVerb(String verb)
verb is one of: get, list, watch, create, update, delete
-
edit
public LocalSubjectAccessReviewBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<LocalSubjectAccessReviewBuilder>
-
toBuilder
public LocalSubjectAccessReviewBuilder toBuilder()
-
-