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
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
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.
Generated from protobuf field optional string key = 106079;
Returns | |
---|---|
Type | Description |
string |
hasKey
clearKey
setKey
Corresponds to the label key of Node resource.
Generated from protobuf field optional string key = 106079;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$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.
Generated from protobuf field optional string operator = 36317348;
Returns | |
---|---|
Type | Description |
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.
Generated from protobuf field optional string operator = 36317348;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getValues
Corresponds to the label values of Node resource.
Generated from protobuf field repeated string values = 249928994;
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setValues
Corresponds to the label values of Node resource.
Generated from protobuf field repeated string values = 249928994;
Parameter | |
---|---|
Name | Description |
var |
string[]
|
Returns | |
---|---|
Type | Description |
$this |