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
Filter is the filter to apply against all events from the Broker.
-
#importers ⇒ Array<Google::Apis::RunV1alpha1::TriggerImporterSpec>
Specification of the importers that will provide events to the trigger.
-
#subscriber ⇒ Google::Apis::RunV1alpha1::SubscriberSpec
Subscriber is the addressable that receives events from the Broker that pass the Filter.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TriggerSpec
constructor
A new instance of TriggerSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ TriggerSpec
Returns a new instance of TriggerSpec
4726 4727 4728 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4726 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
4703 4704 4705 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4703 def broker @broker end |
#filter ⇒ Google::Apis::RunV1alpha1::TriggerFilter
Filter is the filter to apply against all events from the Broker. Only
events that pass this filter will be sent to the Subscriber.
Corresponds to the JSON property filter
4709 4710 4711 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4709 def filter @filter end |
#importers ⇒ Array<Google::Apis::RunV1alpha1::TriggerImporterSpec>
Specification of the importers that will provide events to the trigger.
Note, for Cloud Run, the importers will only be used if a filter is not
specified.
Corresponds to the JSON property importers
4716 4717 4718 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4716 def importers @importers end |
#subscriber ⇒ Google::Apis::RunV1alpha1::SubscriberSpec
Subscriber is the addressable that receives events from the Broker that
pass the Filter. It is required.
E.g. https://us-central1-myproject.cloudfunctions.net/myfunction or
/namespaces/my-project/services/my-service.
Corresponds to the JSON property subscriber
4724 4725 4726 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4724 def subscriber @subscriber end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4731 4732 4733 4734 4735 4736 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4731 def update!(**args) @broker = args[:broker] if args.key?(:broker) @filter = args[:filter] if args.key?(:filter) @importers = args[:importers] if args.key?(:importers) @subscriber = args[:subscriber] if args.key?(:subscriber) end |