Class: Google::Apis::EventarcV1::Destination

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Destination

Returns a new instance of Destination.



378
379
380
# File 'lib/google/apis/eventarc_v1/classes.rb', line 378

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#cloud_functionString

The Cloud Function resource name. Only Cloud Functions V2 is supported. Format: projects/project/locations/location/functions/function`This is a read- only field. Creating Cloud Functions 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 propertycloudFunction`

Returns:

  • (String)


354
355
356
# File 'lib/google/apis/eventarc_v1/classes.rb', line 354

def cloud_function
  @cloud_function
end

#cloud_runGoogle::Apis::EventarcV1::CloudRun

Represents a Cloud Run destination. Corresponds to the JSON property cloudRun



359
360
361
# File 'lib/google/apis/eventarc_v1/classes.rb', line 359

def cloud_run
  @cloud_run
end

#gkeGoogle::Apis::EventarcV1::Gke

Represents a GKE destination. Corresponds to the JSON property gke



364
365
366
# File 'lib/google/apis/eventarc_v1/classes.rb', line 364

def gke
  @gke
end

#http_endpointGoogle::Apis::EventarcV1::HttpEndpoint

Represents a HTTP endpoint destination. Corresponds to the JSON property httpEndpoint



369
370
371
# File 'lib/google/apis/eventarc_v1/classes.rb', line 369

def http_endpoint
  @http_endpoint
end

#workflowString

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`

Returns:

  • (String)


376
377
378
# File 'lib/google/apis/eventarc_v1/classes.rb', line 376

def workflow
  @workflow
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



383
384
385
386
387
388
389
# File 'lib/google/apis/eventarc_v1/classes.rb', line 383

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)
  @workflow = args[:workflow] if args.key?(:workflow)
end