Class SubjectAccessReview

  • All Implemented Interfaces:
    io.fabric8.kubernetes.api.builder.Editable<SubjectAccessReviewBuilder>, io.fabric8.kubernetes.api.model.HasMetadata, io.fabric8.kubernetes.api.model.KubernetesResource, Serializable

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class SubjectAccessReview
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<SubjectAccessReviewBuilder>, io.fabric8.kubernetes.api.model.HasMetadata
    SubjectAccessReview is an object for requesting information about whether a user or group can perform an action


    Compatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).

    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from interface io.fabric8.kubernetes.api.model.HasMetadata

        DNS_LABEL_END, DNS_LABEL_REGEXP, DNS_LABEL_START, FINALIZER_NAME_MATCHER, REQUIRES_NON_NULL_METADATA, REQUIRES_NON_NULL_NAME, REQUIRES_NON_NULL_NAMESPACE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      SubjectAccessReviewBuilder edit()  
      Map<String,​Object> getAdditionalProperties()  
      String getApiVersion()
      APIVersion defines the versioned schema of this representation of an object.
      Object getContent()
      SubjectAccessReview is an object for requesting information about whether a user or group can perform an action
      List<String> getGroups()
      GroupsSlice is optional.
      Boolean getIsNonResourceURL()
      isNonResourceURL is true if this is a request for a non-resource URL (outside of the resource hierarchy)
      String getKind()
      Kind is a string value representing the REST resource this object represents.
      io.fabric8.kubernetes.api.model.ObjectMeta getMetadata()
      SubjectAccessReview is an object for requesting information about whether a user or group can perform an action
      String getNamespace()
      namespace is the namespace of the action being requested.
      String getPath()
      path is the path of a non resource URL
      String getResource()
      resource is one of the existing resource types
      String getResourceAPIGroup()
      Group is the API group of the resource Serialized as resourceAPIGroup to avoid confusion with the 'groups' field when inlined
      String getResourceAPIVersion()
      Version is the API version of the resource Serialized as resourceAPIVersion to avoid confusion with TypeMeta.apiVersion and ObjectMeta.resourceVersion when inlined
      String getResourceName()
      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.
      String getUser()
      user is optional.
      String getVerb()
      verb is one of: get, list, watch, create, update, delete
      void setAdditionalProperties​(Map<String,​Object> additionalProperties)  
      void setAdditionalProperty​(String name, Object value)  
      void setApiVersion​(String apiVersion)
      APIVersion defines the versioned schema of this representation of an object.
      void setContent​(Object content)
      SubjectAccessReview is an object for requesting information about whether a user or group can perform an action
      void setGroups​(List<String> groups)
      GroupsSlice is optional.
      void setIsNonResourceURL​(Boolean isNonResourceURL)
      isNonResourceURL is true if this is a request for a non-resource URL (outside of the resource hierarchy)
      void setKind​(String kind)
      Kind is a string value representing the REST resource this object represents.
      void setMetadata​(io.fabric8.kubernetes.api.model.ObjectMeta metadata)
      SubjectAccessReview is an object for requesting information about whether a user or group can perform an action
      void setNamespace​(String namespace)
      namespace is the namespace of the action being requested.
      void setPath​(String path)
      path is the path of a non resource URL
      void setResource​(String resource)
      resource is one of the existing resource types
      void setResourceAPIGroup​(String resourceAPIGroup)
      Group is the API group of the resource Serialized as resourceAPIGroup to avoid confusion with the 'groups' field when inlined
      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
      void setResourceName​(String resourceName)
      resourceName is the name of the resource being requested for a "get" or deleted for a "delete"
      void setScopes​(List<String> scopes)
      scopes to use for the evaluation.
      void setUser​(String user)
      user is optional.
      void setVerb​(String verb)
      verb is one of: get, list, watch, create, update, delete
      SubjectAccessReviewBuilder toBuilder()  
      • 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

      • SubjectAccessReview

        public SubjectAccessReview()
        No args constructor for use in serialization
    • 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:
        getApiVersion in interface io.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:
        setApiVersion in interface io.fabric8.kubernetes.api.model.HasMetadata
      • getContent

        public Object getContent()
        SubjectAccessReview is an object for requesting information about whether a user or group can perform an action


        Compatibility 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)
        SubjectAccessReview is an object for requesting information about whether a user or group can perform an action


        Compatibility 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()
        GroupsSlice is optional. Groups is the list of groups to which the User belongs.
      • setGroups

        public void setGroups​(List<String> groups)
        GroupsSlice 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:
        getKind in interface io.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()
        SubjectAccessReview is an object for requesting information about whether a user or group can perform an action


        Compatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).

        Specified by:
        getMetadata in interface io.fabric8.kubernetes.api.model.HasMetadata
      • setMetadata

        public void setMetadata​(io.fabric8.kubernetes.api.model.ObjectMeta metadata)
        SubjectAccessReview is an object for requesting information about whether a user or group can perform an action


        Compatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).

        Specified by:
        setMetadata in interface io.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
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)