final case class ResourcePolicyRule(clusterScope: Option[Boolean] = None, verbs: Seq[String], apiGroups: Seq[String], namespaces: Option[Seq[String]] = None, resources: Seq[String]) extends Product with Serializable
ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., Namespace==""
) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace.
- Source
- ResourcePolicyRule.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ResourcePolicyRule
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addApiGroups(newValues: String*): ResourcePolicyRule
- def addNamespaces(newValues: String*): ResourcePolicyRule
- def addResources(newValues: String*): ResourcePolicyRule
- def addVerbs(newValues: String*): ResourcePolicyRule
- val apiGroups: Seq[String]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val clusterScope: Option[Boolean]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val namespaces: Option[Seq[String]]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val resources: Seq[String]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val verbs: Seq[String]
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withApiGroups(value: Seq[String]): ResourcePolicyRule
- def withClusterScope(value: Boolean): ResourcePolicyRule
- def withNamespaces(value: Seq[String]): ResourcePolicyRule
- def withResources(value: Seq[String]): ResourcePolicyRule
- def withVerbs(value: Seq[String]): ResourcePolicyRule