Google Cloud Backup Dr V1beta Client - Class KeyValuePair (0.15.1)

Reference documentation and code samples for the Google Cloud Backup Dr V1beta Client class KeyValuePair.

KeyValuePair defines a key-value pair for matching resource labels.

Generated from protobuf message google.cloud.backupdr.v1beta.KeyValuePair

Namespace

Google \ Cloud \ BackupDR \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ key string

Required. The key of the label to match. This must be in the format {label_key}. The key must match the regex Format:[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}.

↳ values string[]

Required. The values of the label to match. There will be explicit “OR” between values of array. Each value must be in the format {label_value}. The value must match the regex Format: [\\p{Ll}\\p{Lo}\\p{N}_-]{1,63}.

getKey

Required. The key of the label to match.

This must be in the format {label_key}. The key must match the regex Format:[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}.

Returns
Type Description
string

setKey

Required. The key of the label to match.

This must be in the format {label_key}. The key must match the regex Format:[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}.

Parameter
Name Description
var string
Returns
Type Description
$this

getValues

Required. The values of the label to match.

There will be explicit “OR” between values of array. Each value must be in the format {label_value}. The value must match the regex Format: [\\p{Ll}\\p{Lo}\\p{N}_-]{1,63}.

Returns
Type Description
Google\Protobuf\RepeatedField<string>

setValues

Required. The values of the label to match.

There will be explicit “OR” between values of array. Each value must be in the format {label_value}. The value must match the regex Format: [\\p{Ll}\\p{Lo}\\p{N}_-]{1,63}.

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