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.
1152 1153 1154 |
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 1152 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
1150 1151 1152 |
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 1150 def matches_pattern @matches_pattern end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1157 1158 1159 |
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 1157 def update!(**args) @matches_pattern = args[:matches_pattern] if args.key?(:matches_pattern) end |