Reference documentation and code samples for the Compute V1 Client class SchedulingNodeAffinity.
Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled.
Generated from protobuf message google.cloud.compute.v1.SchedulingNodeAffinity
Namespace
Google \ Cloud \ Compute \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ key
string
Corresponds to the label key of Node resource.
↳ operator
string
Defines the operation of node selection. Valid operators are IN for affinity and NOT_IN for anti-affinity. Check the Operator enum for the list of possible values.
↳ values
array
Corresponds to the label values of Node resource.
getKey
Corresponds to the label key of Node resource.
string
hasKey
clearKey
setKey
Corresponds to the label key of Node resource.
var
string
$this
getOperator
Defines the operation of node selection. Valid operators are IN for affinity and NOT_IN for anti-affinity.
Check the Operator enum for the list of possible values.
string
hasOperator
clearOperator
setOperator
Defines the operation of node selection. Valid operators are IN for affinity and NOT_IN for anti-affinity.
Check the Operator enum for the list of possible values.
var
string
$this
getValues
Corresponds to the label values of Node resource.
setValues
Corresponds to the label values of Node resource.
var
string[]
$this