Google Cloud Container V1 Client - Class NodeAffinity (1.30.3)

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
Name Description
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
Type Description
string

setKey

Key for NodeAffinity.

Parameter
Name Description
var string
Returns
Type Description
$this

getOperator

Operator for NodeAffinity.

Returns
Type Description
int

setOperator

Operator for NodeAffinity.

Parameter
Name Description
var int
Returns
Type Description
$this

getValues

Values for NodeAffinity.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setValues

Values for NodeAffinity.

Parameter
Name Description
var string[]
Returns
Type Description
$this