final case class ResourcePolicyRule(verbs: Seq[String], apiGroups: Seq[String], resources: Seq[String], clusterScope: Option[Boolean] = None, namespaces: Option[Seq[String]] = None) 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
- Alphabetic
- By Inheritance
- ResourcePolicyRule
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- 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
Appends new values to apiGroups
- def addNamespaces(newValues: String*): ResourcePolicyRule
Appends new values to namespaces
- def addResources(newValues: String*): ResourcePolicyRule
Appends new values to resources
- def addVerbs(newValues: String*): ResourcePolicyRule
Appends new values to verbs
- 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
- def mapApiGroups(f: (Seq[String]) => Seq[String]): ResourcePolicyRule
transforms apiGroups to result of function
- def mapClusterScope(f: (Boolean) => Boolean): ResourcePolicyRule
if clusterScope has a value, transforms to the result of function
- def mapNamespaces(f: (Seq[String]) => Seq[String]): ResourcePolicyRule
if namespaces has a value, transforms to the result of function
- def mapResources(f: (Seq[String]) => Seq[String]): ResourcePolicyRule
transforms resources to result of function
- def mapVerbs(f: (Seq[String]) => Seq[String]): ResourcePolicyRule
transforms verbs to result of function
- 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
Returns a new data with apiGroups set to new value
- def withClusterScope(value: Boolean): ResourcePolicyRule
Returns a new data with clusterScope set to new value
- def withNamespaces(value: Seq[String]): ResourcePolicyRule
Returns a new data with namespaces set to new value
- def withResources(value: Seq[String]): ResourcePolicyRule
Returns a new data with resources set to new value
- def withVerbs(value: Seq[String]): ResourcePolicyRule
Returns a new data with verbs set to new value