Class: Google::Apis::EventarcV1beta1::MatchingCriteria

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/eventarc_v1beta1/classes.rb,
lib/google/apis/eventarc_v1beta1/representations.rb,
lib/google/apis/eventarc_v1beta1/representations.rb

Overview

Matches events based on exact matches on the CloudEvents attributes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MatchingCriteria

Returns a new instance of MatchingCriteria.



449
450
451
# File 'lib/google/apis/eventarc_v1beta1/classes.rb', line 449

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

Instance Attribute Details

#attributeString

Required. The name of a CloudEvents attribute. Currently, only a subset of attributes can be specified. All triggers MUST provide a matching criteria for the 'type' attribute. Corresponds to the JSON property attribute

Returns:

  • (String)


442
443
444
# File 'lib/google/apis/eventarc_v1beta1/classes.rb', line 442

def attribute
  @attribute
end

#valueString

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

Returns:

  • (String)


447
448
449
# File 'lib/google/apis/eventarc_v1beta1/classes.rb', line 447

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



454
455
456
457
# File 'lib/google/apis/eventarc_v1beta1/classes.rb', line 454

def update!(**args)
  @attribute = args[:attribute] if args.key?(:attribute)
  @value = args[:value] if args.key?(:value)
end