Class: Google::Apis::RunV1alpha1::TriggerSpec
- Inherits:
-
Object
- Object
- Google::Apis::RunV1alpha1::TriggerSpec
- 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
Overview
The desired state of the Trigger.
Instance Attribute Summary collapse
-
#broker ⇒ String
Broker is the broker that this trigger receives events from.
-
#filter ⇒ Google::Apis::RunV1alpha1::TriggerFilter
Optional.
-
#subscriber ⇒ Google::Apis::RunV1alpha1::Destination
Sink is the addressable that will receive events.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TriggerSpec
constructor
A new instance of TriggerSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TriggerSpec
Returns a new instance of TriggerSpec.
4678 4679 4680 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4678 def initialize(**args) update!(**args) end |
Instance Attribute Details
#broker ⇒ String
Broker is the broker that this trigger receives events from. If not specified,
will default to 'default'. Not currently supported by Cloud Run.
Corresponds to the JSON property broker
4663 4664 4665 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4663 def broker @broker end |
#filter ⇒ Google::Apis::RunV1alpha1::TriggerFilter
Optional. Filter is the filter to apply against all events from the Broker.
Only events that pass this filter will be sent to the Subscriber. Note that
filter is optional in knative and is only required in fully managed due to
different broker implementation.
Corresponds to the JSON property filter
4671 4672 4673 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4671 def filter @filter end |
#subscriber ⇒ Google::Apis::RunV1alpha1::Destination
Sink is the addressable that will receive events.
Corresponds to the JSON property subscriber
4676 4677 4678 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4676 def subscriber @subscriber end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4683 4684 4685 4686 4687 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4683 def update!(**args) @broker = args[:broker] if args.key?(:broker) @filter = args[:filter] if args.key?(:filter) @subscriber = args[:subscriber] if args.key?(:subscriber) end |