Reference documentation and code samples for the Backup and DR Service V1BETA API class Google::Cloud::BackupDR::V1beta::KeyValuePair.
KeyValuePair defines a key-value pair for matching resource labels.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#key
def key() -> ::String
Returns
-
(::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}.
#key=
def key=(value) -> ::String
Parameter
-
value (::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}.
Returns
-
(::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
def values() -> ::Array<::String>
Returns
-
(::Array<::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}.
#values=
def values=(value) -> ::Array<::String>
Parameter
-
value (::Array<::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}.
Returns
-
(::Array<::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}.