Google Cloud Container V1 Client - Class NodeTaint (1.10.3)

Reference documentation and code samples for the Google Cloud Container V1 Client class NodeTaint.

Kubernetes taint is composed of three fields: key, value, and effect. Effect can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.

See here for more information, including usage and the valid values.

Generated from protobuf message google.container.v1.NodeTaint

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ key string

Key for taint.

↳ value string

Value for taint.

↳ effect int

Effect for taint.

getKey

Key for taint.

Returns
TypeDescription
string

setKey

Key for taint.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getValue

Value for taint.

Returns
TypeDescription
string

setValue

Value for taint.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getEffect

Effect for taint.

Returns
TypeDescription
int

setEffect

Effect for taint.

Parameter
NameDescription
var int
Returns
TypeDescription
$this