case class Role(metadata: Optional[ObjectMeta] = Optional.Absent, rules: Optional[Vector[PolicyRule]] = Optional.Absent) extends Product with Serializable
Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding.
- rules
Rules holds all the PolicyRules for this Role
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Role
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
-
new
Role(metadata: Optional[ObjectMeta] = Optional.Absent, rules: Optional[Vector[PolicyRule]] = Optional.Absent)
- rules
Rules holds all the PolicyRules for this Role
Value Members
-
def
getMetadata: IO[K8sFailure, ObjectMeta]
Gets metadata.
Gets metadata.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
-
def
getRules: IO[K8sFailure, Vector[PolicyRule]]
Rules holds all the PolicyRules for this Role
Rules holds all the PolicyRules for this Role
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
- val metadata: Optional[ObjectMeta]
- val rules: Optional[Vector[PolicyRule]]