Class: Google::Apis::RunV1alpha1::TriggerFilter

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ TriggerFilter

Returns a new instance of TriggerFilter



4312
4313
4314
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4312

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

Instance Attribute Details

#attributesHash<String,String>

Cloud Run fully managed: not supported Cloud Run on GKE: supported Attributes filters events by exact match on event context attributes. Each key in the map is compared with the equivalent key in the event context. An event passes the filter if all values are equal to the specified values. Nested context attributes are not supported as keys. Only string values are supported. +optional Corresponds to the JSON property attributes

Returns:

  • (Hash<String,String>)


4304
4305
4306
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4304

def attributes
  @attributes
end

#source_and_typeGoogle::Apis::RunV1alpha1::TriggerFilterSourceAndType

TriggerFilterSourceAndType filters events based on exact matches on the cloud event's type and source attributes. Only exact matches will pass the filter. Corresponds to the JSON property sourceAndType



4310
4311
4312
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4310

def source_and_type
  @source_and_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4317
4318
4319
4320
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4317

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