final case class PolicyRule(verbs: Seq[String], apiGroups: Option[Seq[String]] = None, resources: Option[Seq[String]] = None, resourceNames: Option[Seq[String]] = None, nonResourceURLs: Option[Seq[String]] = None) extends Product with Serializable
PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.
- Source
- PolicyRule.scala
- Alphabetic
- By Inheritance
- PolicyRule
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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*): PolicyRule
Appends new values to apiGroups
-
def
addNonResourceURLs(newValues: String*): PolicyRule
Appends new values to nonResourceURLs
-
def
addResourceNames(newValues: String*): PolicyRule
Appends new values to resourceNames
-
def
addResources(newValues: String*): PolicyRule
Appends new values to resources
-
def
addVerbs(newValues: String*): PolicyRule
Appends new values to verbs
- val apiGroups: Option[Seq[String]]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
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[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
mapApiGroups(f: (Seq[String]) ⇒ Seq[String]): PolicyRule
if apiGroups has a value, transforms to the result of function
-
def
mapNonResourceURLs(f: (Seq[String]) ⇒ Seq[String]): PolicyRule
if nonResourceURLs has a value, transforms to the result of function
-
def
mapResourceNames(f: (Seq[String]) ⇒ Seq[String]): PolicyRule
if resourceNames has a value, transforms to the result of function
-
def
mapResources(f: (Seq[String]) ⇒ Seq[String]): PolicyRule
if resources has a value, transforms to the result of function
-
def
mapVerbs(f: (Seq[String]) ⇒ Seq[String]): PolicyRule
transforms verbs to result of function
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val nonResourceURLs: Option[Seq[String]]
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val resourceNames: Option[Seq[String]]
- val resources: Option[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( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
withApiGroups(value: Seq[String]): PolicyRule
Returns a new data with apiGroups set to new value
-
def
withNonResourceURLs(value: Seq[String]): PolicyRule
Returns a new data with nonResourceURLs set to new value
-
def
withResourceNames(value: Seq[String]): PolicyRule
Returns a new data with resourceNames set to new value
-
def
withResources(value: Seq[String]): PolicyRule
Returns a new data with resources set to new value
-
def
withVerbs(value: Seq[String]): PolicyRule
Returns a new data with verbs set to new value