Class: Google::Apis::EventarcV1::EventFilter
- Inherits:
-
Object
- Object
- Google::Apis::EventarcV1::EventFilter
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/eventarc_v1/classes.rb,
lib/google/apis/eventarc_v1/representations.rb,
lib/google/apis/eventarc_v1/representations.rb
Overview
Filters 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) ⇒ EventFilter
constructor
A new instance of EventFilter.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EventFilter
Returns a new instance of EventFilter.
267 268 269 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 267 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attribute ⇒ String
Required. The name of a CloudEvents attribute. Currently, only a subset of
attributes are supported for filtering. All triggers MUST provide a filter for
the 'type' attribute.
Corresponds to the JSON property attribute
260 261 262 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 260 def attribute @attribute end |
#value ⇒ String
Required. The value for the attribute.
Corresponds to the JSON property value
265 266 267 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 265 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
272 273 274 275 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 272 def update!(**args) @attribute = args[:attribute] if args.key?(:attribute) @value = args[:value] if args.key?(:value) end |