ScaleSpec

io.k8s.api.autoscaling.v1.ScaleSpec
See theScaleSpec companion object
final case class ScaleSpec(replicas: Option[Int])

ScaleSpec describes the attributes of a scale subresource.

Attributes

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

Members list

Value members

Concrete methods

def mapReplicas(f: Int => Int): ScaleSpec

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

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

Attributes

Source
ScaleSpec.scala
def withReplicas(value: Int): ScaleSpec

Returns a new data with replicas set to new value

Returns a new data with replicas set to new value

Attributes

Source
ScaleSpec.scala

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product