Class: Google::Apis::EventarcV1::CloudRun
- Inherits:
-
Object
- Object
- Google::Apis::EventarcV1::CloudRun
- 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 Cloud Run destination.
Instance Attribute Summary collapse
-
#path ⇒ String
Optional.
-
#region ⇒ String
Required.
-
#service ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CloudRun
constructor
A new instance of CloudRun.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CloudRun
Returns a new instance of CloudRun.
357 358 359 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 357 def initialize(**args) update!(**args) end |
Instance Attribute Details
#path ⇒ String
Optional. The relative path on the Cloud Run service the events should be sent
to. The value must conform to the definition of a URI path segment (section 3.
3 of RFC2396). Examples: "/route", "route", "route/subroute".
Corresponds to the JSON property path
343 344 345 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 343 def path @path end |
#region ⇒ String
Required. The region the Cloud Run service is deployed in.
Corresponds to the JSON property region
348 349 350 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 348 def region @region end |
#service ⇒ String
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 as the trigger object can be addressed.
Corresponds to the JSON property service
355 356 357 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 355 def service @service end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
362 363 364 365 366 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 362 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 |