Class: Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1ValueMatcher
- Inherits:
-
Object
- Object
- Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1ValueMatcher
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/recommender_v1beta1/classes.rb,
lib/google/apis/recommender_v1beta1/representations.rb,
lib/google/apis/recommender_v1beta1/representations.rb
Overview
Contains various matching options for values for a GCP resource field.
Instance Attribute Summary collapse
-
#matches_pattern ⇒ String
To be used for full regex matching.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRecommenderV1beta1ValueMatcher
constructor
A new instance of GoogleCloudRecommenderV1beta1ValueMatcher.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRecommenderV1beta1ValueMatcher
Returns a new instance of GoogleCloudRecommenderV1beta1ValueMatcher.
1138 1139 1140 |
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 1138 def initialize(**args) update!(**args) end |
Instance Attribute Details
#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
Corresponds to the JSON property matchesPattern
1136 1137 1138 |
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 1136 def matches_pattern @matches_pattern end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1143 1144 1145 |
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 1143 def update!(**args) @matches_pattern = args[:matches_pattern] if args.key?(:matches_pattern) end |