Class: Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1ValueMatcher

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_patternString

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

Returns:

  • (String)


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