Google Cloud Vm Migration V1 Client - Class SchedulingNodeAffinity (0.5.2)

Reference documentation and code samples for the Google Cloud Vm Migration V1 Client class SchedulingNodeAffinity.

Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled. Based on https://cloud.google.com/compute/docs/reference/rest/v1/instances/setScheduling

Generated from protobuf message google.cloud.vmmigration.v1.SchedulingNodeAffinity

Namespace

Google \ Cloud \ VMMigration \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ key string

The label key of Node resource to reference.

↳ operator int

The operator to use for the node resources specified in the values parameter.

↳ values array

Corresponds to the label values of Node resource.

getKey

The label key of Node resource to reference.

Returns
TypeDescription
string

setKey

The label key of Node resource to reference.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getOperator

The operator to use for the node resources specified in the values parameter.

Returns
TypeDescription
int

setOperator

The operator to use for the node resources specified in the values parameter.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getValues

Corresponds to the label values of Node resource.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setValues

Corresponds to the label values of Node resource.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this