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.



222
223
224
# File 'lib/google/apis/eventarc_v1/classes.rb', line 222

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` Corresponds to the JSON propertycloudFunction`

Returns:

  • (String)


210
211
212
# File 'lib/google/apis/eventarc_v1/classes.rb', line 210

def cloud_function
  @cloud_function
end

#cloud_runGoogle::Apis::EventarcV1::CloudRun

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



215
216
217
# File 'lib/google/apis/eventarc_v1/classes.rb', line 215

def cloud_run
  @cloud_run
end

#gkeGoogle::Apis::EventarcV1::Gke

Represents a GKE destination. Corresponds to the JSON property gke



220
221
222
# File 'lib/google/apis/eventarc_v1/classes.rb', line 220

def gke
  @gke
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



227
228
229
230
231
# File 'lib/google/apis/eventarc_v1/classes.rb', line 227

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)
end