Class: Google::Apis::EventarcV1beta1::CloudRunService
- Inherits:
-
Object
- Object
- Google::Apis::EventarcV1beta1::CloudRunService
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/eventarc_v1beta1/classes.rb,
generated/google/apis/eventarc_v1beta1/representations.rb,
generated/google/apis/eventarc_v1beta1/representations.rb
Overview
Represents a Cloud Run service destination.
Instance Attribute Summary collapse
-
#path ⇒ String
Optional.
-
#region ⇒ String
Required.
-
#service ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CloudRunService
constructor
A new instance of CloudRunService.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CloudRunService
Returns a new instance of CloudRunService.
203 204 205 |
# File 'generated/google/apis/eventarc_v1beta1/classes.rb', line 203 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 URI path segment (section 3.3
of RFC2396). Examples: "/route", "route", "route/subroute".
Corresponds to the JSON property path
189 190 191 |
# File 'generated/google/apis/eventarc_v1beta1/classes.rb', line 189 def path @path end |
#region ⇒ String
Required. The region the Cloud Run service is deployed in.
Corresponds to the JSON property region
194 195 196 |
# File 'generated/google/apis/eventarc_v1beta1/classes.rb', line 194 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 of the trigger object can be addressed.
Corresponds to the JSON property service
201 202 203 |
# File 'generated/google/apis/eventarc_v1beta1/classes.rb', line 201 def service @service end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
208 209 210 211 212 |
# File 'generated/google/apis/eventarc_v1beta1/classes.rb', line 208 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 |