class Google::Apis::EventarcV1::EventFilter

Filters events based on exact matches on the CloudEvents attributes.

Attributes

attribute[RW]

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` @return [String]

value[RW]

Required. The value for the attribute. Corresponds to the JSON property `value` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/eventarc_v1/classes.rb, line 254
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/eventarc_v1/classes.rb, line 259
def update!(**args)
  @attribute = args[:attribute] if args.key?(:attribute)
  @value = args[:value] if args.key?(:value)
end