Google Cloud Backup Dr V1 Client - Class NodeAffinity (0.4.0)

Reference documentation and code samples for the Google Cloud Backup Dr V1 Client class NodeAffinity.

Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled.

Generated from protobuf message google.cloud.backupdr.v1.Scheduling.NodeAffinity

Namespace

Google \ Cloud \ BackupDR \ V1 \ Scheduling

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ key string

Optional. Corresponds to the label key of Node resource.

↳ operator int

Optional. Defines the operation of node selection.

↳ values array

Optional. Corresponds to the label values of Node resource.

getKey

Optional. Corresponds to the label key of Node resource.

Returns
Type Description
string

hasKey

clearKey

setKey

Optional. Corresponds to the label key of Node resource.

Parameter
Name Description
var string
Returns
Type Description
$this

getOperator

Optional. Defines the operation of node selection.

Returns
Type Description
int

hasOperator

clearOperator

setOperator

Optional. Defines the operation of node selection.

Parameter
Name Description
var int
Returns
Type Description
$this

getValues

Optional. Corresponds to the label values of Node resource.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setValues

Optional. Corresponds to the label values of Node resource.

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