ResourcePolicyRule

io.k8s.api.flowcontrol.v1.ResourcePolicyRule
See theResourcePolicyRule companion object
final case class ResourcePolicyRule(verbs: Seq[String], apiGroups: Seq[String], resources: Seq[String], clusterScope: Option[Boolean], namespaces: Option[Seq[String]])

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.

Attributes

Companion
object
Source
ResourcePolicyRule.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def addApiGroups(newValues: String*): ResourcePolicyRule

Appends new values to apiGroups

Appends new values to apiGroups

Attributes

Source
ResourcePolicyRule.scala
def addNamespaces(newValues: String*): ResourcePolicyRule

Appends new values to namespaces

Appends new values to namespaces

Attributes

Source
ResourcePolicyRule.scala
def addResources(newValues: String*): ResourcePolicyRule

Appends new values to resources

Appends new values to resources

Attributes

Source
ResourcePolicyRule.scala
def addVerbs(newValues: String*): ResourcePolicyRule

Appends new values to verbs

Appends new values to verbs

Attributes

Source
ResourcePolicyRule.scala
def mapApiGroups(f: (Seq[String]) => Seq[String]): ResourcePolicyRule

transforms apiGroups to result of function

transforms apiGroups to result of function

Attributes

Source
ResourcePolicyRule.scala
def mapClusterScope(f: Boolean => Boolean): ResourcePolicyRule

if clusterScope has a value, transforms to the result of function

if clusterScope has a value, transforms to the result of function

Attributes

Source
ResourcePolicyRule.scala
def mapNamespaces(f: (Seq[String]) => Seq[String]): ResourcePolicyRule

if namespaces has a value, transforms to the result of function

if namespaces has a value, transforms to the result of function

Attributes

Source
ResourcePolicyRule.scala
def mapResources(f: (Seq[String]) => Seq[String]): ResourcePolicyRule

transforms resources to result of function

transforms resources to result of function

Attributes

Source
ResourcePolicyRule.scala
def mapVerbs(f: (Seq[String]) => Seq[String]): ResourcePolicyRule

transforms verbs to result of function

transforms verbs to result of function

Attributes

Source
ResourcePolicyRule.scala
def withApiGroups(value: Seq[String]): ResourcePolicyRule

Returns a new data with apiGroups set to new value

Returns a new data with apiGroups set to new value

Attributes

Source
ResourcePolicyRule.scala
def withClusterScope(value: Boolean): ResourcePolicyRule

Returns a new data with clusterScope set to new value

Returns a new data with clusterScope set to new value

Attributes

Source
ResourcePolicyRule.scala
def withNamespaces(value: Seq[String]): ResourcePolicyRule

Returns a new data with namespaces set to new value

Returns a new data with namespaces set to new value

Attributes

Source
ResourcePolicyRule.scala
def withResources(value: Seq[String]): ResourcePolicyRule

Returns a new data with resources set to new value

Returns a new data with resources set to new value

Attributes

Source
ResourcePolicyRule.scala
def withVerbs(value: Seq[String]): ResourcePolicyRule

Returns a new data with verbs set to new value

Returns a new data with verbs set to new value

Attributes

Source
ResourcePolicyRule.scala

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product