Class: Google::Apis::EventarcV1beta1::MatchingCriteria
- Inherits:
-
Object
- Object
- Google::Apis::EventarcV1beta1::MatchingCriteria
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/eventarc_v1beta1/classes.rb,
generated/google/apis/eventarc_v1beta1/representations.rb,
generated/google/apis/eventarc_v1beta1/representations.rb
Overview
Matches events based on exact matches on the CloudEvents attributes.
Instance Attribute Summary collapse
-
#attribute ⇒ String
Required.
-
#value ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MatchingCriteria
constructor
A new instance of MatchingCriteria.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MatchingCriteria
Returns a new instance of MatchingCriteria.
450 451 452 |
# File 'generated/google/apis/eventarc_v1beta1/classes.rb', line 450 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attribute ⇒ String
Required. The name of a CloudEvents attribute. Currently, only a subset of
attributes can be specified. All triggers MUST provide a matching criteria for
the 'type' attribute.
Corresponds to the JSON property attribute
443 444 445 |
# File 'generated/google/apis/eventarc_v1beta1/classes.rb', line 443 def attribute @attribute end |
#value ⇒ String
Required. The value for the attribute.
Corresponds to the JSON property value
448 449 450 |
# File 'generated/google/apis/eventarc_v1beta1/classes.rb', line 448 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
455 456 457 458 |
# File 'generated/google/apis/eventarc_v1beta1/classes.rb', line 455 def update!(**args) @attribute = args[:attribute] if args.key?(:attribute) @value = args[:value] if args.key?(:value) end |