Google Cloud Container V1 Client - Class NodeAffinity (1.24.0)

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

Specifies the NodeAffinity key, values, and affinity operator according to shared sole tenant node group affinities.

Generated from protobuf message google.container.v1.SoleTenantConfig.NodeAffinity

Namespace

Google \ Cloud \ Container \ V1 \ SoleTenantConfig

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ key string

Key for NodeAffinity.

↳ operator int

Operator for NodeAffinity.

↳ values array

Values for NodeAffinity.

getKey

Key for NodeAffinity.

Returns
TypeDescription
string

setKey

Key for NodeAffinity.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getOperator

Operator for NodeAffinity.

Returns
TypeDescription
int

setOperator

Operator for NodeAffinity.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getValues

Values for NodeAffinity.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setValues

Values for NodeAffinity.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this