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.
-
#http_endpoint ⇒ Google::Apis::EventarcV1::HttpEndpoint
Represents a HTTP endpoint destination.
-
#network_config ⇒ Google::Apis::EventarcV1::NetworkConfig
Represents a network config to be used for destination resolution and connectivity.
-
#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.
410 411 412 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 410 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cloud_function ⇒ String
The Cloud Function resource name. Cloud Functions V1 and V2 are supported.
Format: projects/
project/locations/
location/functions/
function`This is
a read-only field. Creating Cloud Functions V1/V2 triggers is only supported
via the Cloud Functions product. An error will be returned if the user sets
this value.
Corresponds to the JSON property
cloudFunction`
380 381 382 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 380 def cloud_function @cloud_function end |
#cloud_run ⇒ Google::Apis::EventarcV1::CloudRun
Represents a Cloud Run destination.
Corresponds to the JSON property cloudRun
385 386 387 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 385 def cloud_run @cloud_run end |
#gke ⇒ Google::Apis::EventarcV1::Gke
Represents a GKE destination.
Corresponds to the JSON property gke
390 391 392 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 390 def gke @gke end |
#http_endpoint ⇒ Google::Apis::EventarcV1::HttpEndpoint
Represents a HTTP endpoint destination.
Corresponds to the JSON property httpEndpoint
395 396 397 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 395 def http_endpoint @http_endpoint end |
#network_config ⇒ Google::Apis::EventarcV1::NetworkConfig
Represents a network config to be used for destination resolution and
connectivity.
Corresponds to the JSON property networkConfig
401 402 403 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 401 def network_config @network_config 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 property
workflow`
408 409 410 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 408 def workflow @workflow end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
415 416 417 418 419 420 421 422 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 415 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) @http_endpoint = args[:http_endpoint] if args.key?(:http_endpoint) @network_config = args[:network_config] if args.key?(:network_config) @workflow = args[:workflow] if args.key?(:workflow) end |