Role

final case class Role(metadata: Option[ObjectMeta], rules: Option[Seq[PolicyRule]]) extends KObject

Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding.

Companion:
object
Source:
Role.scala
trait KObject
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def addRules(newValues: PolicyRule*): Role

Appends new values to rules

Appends new values to rules

Source:
Role.scala
override def foldTo[T : Builder]: T
Definition Classes
Source:
Role.scala

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

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

Source:
Role.scala

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

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

Source:
Role.scala

Returns a new data with metadata set to new value

Returns a new data with metadata set to new value

Source:
Role.scala

Returns a new data with rules set to new value

Returns a new data with rules set to new value

Source:
Role.scala

Inherited methods

final def group: String
Inherited from:
KObject
Source:
ResourceKind.scala
Inherited from:
Product

Inherited fields

final lazy val apiVersion: String
Inherited from:
KObject
Source:
ResourceKind.scala
final lazy val kind: String
Inherited from:
KObject
Source:
ResourceKind.scala
final lazy val version: String
Inherited from:
KObject
Source:
ResourceKind.scala