Google Cloud Vm Migration V1 Client - Class SchedulingNodeAffinity (0.3.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

Methods

__construct

Constructor.

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

setKey

The label key of Node resource to reference.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getOperator

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

Returns
Type
Description
int

setOperator

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

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getValues

Corresponds to the label values of Node resource.

Returns
Type
Description

setValues

Corresponds to the label values of Node resource.

Parameter
Name
Description
var
string[]
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: