Recommender V1 Client - Class ValueMatcher (2.0.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
Name Description
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
Type Description
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
Name Description
var string
Returns
Type Description
$this

getMatchVariant

Returns
Type Description
string