Class: Google::Apis::EventarcV1beta1::CloudRunService

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/eventarc_v1beta1/classes.rb,
lib/google/apis/eventarc_v1beta1/representations.rb,
lib/google/apis/eventarc_v1beta1/representations.rb

Overview

Represents a Cloud Run service destination.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudRunService

Returns a new instance of CloudRunService.



206
207
208
# File 'lib/google/apis/eventarc_v1beta1/classes.rb', line 206

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

Instance Attribute Details

#pathString

Optional. The relative path on the Cloud Run service the events should be sent to. The value must conform to the definition of URI path segment (section 3.3 of RFC2396). Examples: "/route", "route", "route/subroute". Corresponds to the JSON property path

Returns:

  • (String)


192
193
194
# File 'lib/google/apis/eventarc_v1beta1/classes.rb', line 192

def path
  @path
end

#regionString

Required. The region the Cloud Run service is deployed in. Corresponds to the JSON property region

Returns:

  • (String)


197
198
199
# File 'lib/google/apis/eventarc_v1beta1/classes.rb', line 197

def region
  @region
end

#serviceString

Required. The name of the Cloud run service being addressed (see https://cloud. google.com/run/docs/reference/rest/v1/namespaces.services). Only services located in the same project of the trigger object can be addressed. Corresponds to the JSON property service

Returns:

  • (String)


204
205
206
# File 'lib/google/apis/eventarc_v1beta1/classes.rb', line 204

def service
  @service
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



211
212
213
214
215
# File 'lib/google/apis/eventarc_v1beta1/classes.rb', line 211

def update!(**args)
  @path = args[:path] if args.key?(:path)
  @region = args[:region] if args.key?(:region)
  @service = args[:service] if args.key?(:service)
end