Validation

io.k8s.api.admissionregistration.v1alpha1.Validation
See theValidation companion object
final case class Validation(expression: String, message: Option[String], messageExpression: Option[String], reason: Option[String])

Validation specifies the CEL expression which is used to apply the validation.

Attributes

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

Members list

Value members

Concrete methods

def mapExpression(f: String => String): Validation

transforms expression to result of function

transforms expression to result of function

Attributes

Source
Validation.scala
def mapMessage(f: String => String): Validation

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

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

Attributes

Source
Validation.scala
def mapMessageExpression(f: String => String): Validation

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

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

Attributes

Source
Validation.scala
def mapReason(f: String => String): Validation

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

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

Attributes

Source
Validation.scala
def withExpression(value: String): Validation

Returns a new data with expression set to new value

Returns a new data with expression set to new value

Attributes

Source
Validation.scala
def withMessage(value: String): Validation

Returns a new data with message set to new value

Returns a new data with message set to new value

Attributes

Source
Validation.scala
def withMessageExpression(value: String): Validation

Returns a new data with messageExpression set to new value

Returns a new data with messageExpression set to new value

Attributes

Source
Validation.scala
def withReason(value: String): Validation

Returns a new data with reason set to new value

Returns a new data with reason set to new value

Attributes

Source
Validation.scala

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product