Class: Google::Apis::CloudfunctionsV2alpha::EventFilter
- Inherits:
-
Object
- Object
- Google::Apis::CloudfunctionsV2alpha::EventFilter
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudfunctions_v2alpha/classes.rb,
lib/google/apis/cloudfunctions_v2alpha/representations.rb,
lib/google/apis/cloudfunctions_v2alpha/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.
266 267 268 |
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 266 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attribute ⇒ String
Required. The name of a CloudEvents attribute.
Corresponds to the JSON property attribute
259 260 261 |
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 259 def attribute @attribute end |
#value ⇒ String
Required. The value for the attribute.
Corresponds to the JSON property value
264 265 266 |
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 264 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
271 272 273 274 |
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 271 def update!(**args) @attribute = args[:attribute] if args.key?(:attribute) @value = args[:value] if args.key?(:value) end |