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



4631
4632
4633
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4631

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>)


4623
4624
4625
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4623

def attributes
  @attributes
end

#source_and_typeGoogle::Apis::RunV1alpha1::TriggerFilterSourceAndType

TriggerFilterSourceAndType is DEPRECATED. Filters are now contained in the map of attributes in TriggerFilter proto. Corresponds to the JSON property sourceAndType



4629
4630
4631
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4629

def source_and_type
  @source_and_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4636
4637
4638
4639
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4636

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