Recommender V1 Client - Class ValueMatcher (1.10.0)

Reference documentation and code samples for the Recommender V1 Client class ValueMatcher.

Contains various matching options for values for a GCP resource field.

Generated from protobuf message google.cloud.recommender.v1.ValueMatcher

Namespace

Google \ Cloud \ Recommender \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ matches_pattern string

To be used for full regex matching. The regular expression is using the Google RE2 syntax (https://github.com/google/re2/wiki/Syntax), so to be used with RE2::FullMatch

getMatchesPattern

To be used for full regex matching. The regular expression is using the Google RE2 syntax (https://github.com/google/re2/wiki/Syntax), so to be used with RE2::FullMatch

Returns
TypeDescription
string

hasMatchesPattern

setMatchesPattern

To be used for full regex matching. The regular expression is using the Google RE2 syntax (https://github.com/google/re2/wiki/Syntax), so to be used with RE2::FullMatch

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getMatchVariant

Returns
TypeDescription
string