Class: Google::Apis::EventarcV1::Destination
- Inherits:
-
Object
- Object
- Google::Apis::EventarcV1::Destination
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/eventarc_v1/classes.rb,
lib/google/apis/eventarc_v1/representations.rb,
lib/google/apis/eventarc_v1/representations.rb
Overview
Represents a target of an invocation over HTTP.
Instance Attribute Summary collapse
-
#cloud_function ⇒ String
The Cloud Function resource name.
-
#cloud_run ⇒ Google::Apis::EventarcV1::CloudRun
Represents a Cloud Run destination.
-
#gke ⇒ Google::Apis::EventarcV1::Gke
Represents a GKE destination.
-
#workflow ⇒ String
The resource name of the Workflow whose Executions are triggered by the events.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Destination
constructor
A new instance of Destination.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Destination
Returns a new instance of Destination.
366 367 368 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 366 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cloud_function ⇒ String
The Cloud Function resource name. Only Cloud Functions V2 is supported. Format:
projects/project/locations/location/functions/function`
Corresponds to the JSON propertycloudFunction`
347 348 349 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 347 def cloud_function @cloud_function end |
#cloud_run ⇒ Google::Apis::EventarcV1::CloudRun
Represents a Cloud Run destination.
Corresponds to the JSON property cloudRun
352 353 354 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 352 def cloud_run @cloud_run end |
#gke ⇒ Google::Apis::EventarcV1::Gke
Represents a GKE destination.
Corresponds to the JSON property gke
357 358 359 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 357 def gke @gke end |
#workflow ⇒ String
The resource name of the Workflow whose Executions are triggered by the events.
The Workflow resource should be deployed in the same project as the trigger.
Format: projects/project/locations/location/workflows/workflow`
Corresponds to the JSON propertyworkflow`
364 365 366 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 364 def workflow @workflow end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
371 372 373 374 375 376 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 371 def update!(**args) @cloud_function = args[:cloud_function] if args.key?(:cloud_function) @cloud_run = args[:cloud_run] if args.key?(:cloud_run) @gke = args[:gke] if args.key?(:gke) @workflow = args[:workflow] if args.key?(:workflow) end |