Class: Google::Apis::CloudfunctionsV2alpha::EventFilter

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EventFilter

Returns a new instance of EventFilter.



338
339
340
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 338

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#attributeString

Required. The name of a CloudEvents attribute. Corresponds to the JSON property attribute

Returns:

  • (String)


323
324
325
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 323

def attribute
  @attribute
end

#operatorString

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

Returns:

  • (String)


331
332
333
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 331

def operator
  @operator
end

#valueString

Required. The value for the attribute. Corresponds to the JSON property value

Returns:

  • (String)


336
337
338
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 336

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



343
344
345
346
347
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 343

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