Class: Google::Apis::CloudfunctionsV2::EventFilter
- Inherits:
-
Object
- Object
- Google::Apis::CloudfunctionsV2::EventFilter
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudfunctions_v2/classes.rb,
lib/google/apis/cloudfunctions_v2/representations.rb,
lib/google/apis/cloudfunctions_v2/representations.rb
Overview
Filters events based on exact matches on the CloudEvents attributes.
Instance Attribute Summary collapse
-
#attribute ⇒ String
Required.
-
#operator ⇒ String
Optional.
-
#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.
422 423 424 |
# File 'lib/google/apis/cloudfunctions_v2/classes.rb', line 422 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attribute ⇒ String
Required. The name of a CloudEvents attribute.
Corresponds to the JSON property attribute
407 408 409 |
# File 'lib/google/apis/cloudfunctions_v2/classes.rb', line 407 def attribute @attribute end |
#operator ⇒ String
Optional. The operator used for matching the events with the value of the
filter. If not specified, only events that have an exact key-value pair
specified in the filter are matched. The only allowed value is match-path-
pattern
.
Corresponds to the JSON property operator
415 416 417 |
# File 'lib/google/apis/cloudfunctions_v2/classes.rb', line 415 def operator @operator end |
#value ⇒ String
Required. The value for the attribute.
Corresponds to the JSON property value
420 421 422 |
# File 'lib/google/apis/cloudfunctions_v2/classes.rb', line 420 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
427 428 429 430 431 |
# File 'lib/google/apis/cloudfunctions_v2/classes.rb', line 427 def update!(**args) @attribute = args[:attribute] if args.key?(:attribute) @operator = args[:operator] if args.key?(:operator) @value = args[:value] if args.key?(:value) end |