Class: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1ValueMatcher

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/recommender_v1/classes.rb,
generated/google/apis/recommender_v1/representations.rb,
generated/google/apis/recommender_v1/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) ⇒ GoogleCloudRecommenderV1ValueMatcher

Returns a new instance of GoogleCloudRecommenderV1ValueMatcher.



645
646
647
# File 'generated/google/apis/recommender_v1/classes.rb', line 645

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)


643
644
645
# File 'generated/google/apis/recommender_v1/classes.rb', line 643

def matches_pattern
  @matches_pattern
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



650
651
652
# File 'generated/google/apis/recommender_v1/classes.rb', line 650

def update!(**args)
  @matches_pattern = args[:matches_pattern] if args.key?(:matches_pattern)
end