ResourceQuotaSpec

io.k8s.api.core.v1.ResourceQuotaSpec
See theResourceQuotaSpec companion object
final case class ResourceQuotaSpec(hard: Option[Map[String, Quantity]], scopeSelector: Option[ScopeSelector], scopes: Option[Seq[String]])

ResourceQuotaSpec defines the desired hard limits to enforce for Quota.

Attributes

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

Members list

Value members

Concrete methods

def addHard(newValues: (String, Quantity)*): ResourceQuotaSpec

Adds new values to hard

Adds new values to hard

Attributes

Source
ResourceQuotaSpec.scala
def addScopes(newValues: String*): ResourceQuotaSpec

Appends new values to scopes

Appends new values to scopes

Attributes

Source
ResourceQuotaSpec.scala
def mapHard(f: (Map[String, Quantity]) => Map[String, Quantity]): ResourceQuotaSpec

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

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

Attributes

Source
ResourceQuotaSpec.scala

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

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

Attributes

Source
ResourceQuotaSpec.scala
def mapScopes(f: (Seq[String]) => Seq[String]): ResourceQuotaSpec

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

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

Attributes

Source
ResourceQuotaSpec.scala
def withHard(value: Map[String, Quantity]): ResourceQuotaSpec

Returns a new data with hard set to new value

Returns a new data with hard set to new value

Attributes

Source
ResourceQuotaSpec.scala

Returns a new data with scopeSelector set to new value

Returns a new data with scopeSelector set to new value

Attributes

Source
ResourceQuotaSpec.scala
def withScopes(value: Seq[String]): ResourceQuotaSpec

Returns a new data with scopes set to new value

Returns a new data with scopes set to new value

Attributes

Source
ResourceQuotaSpec.scala

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product