Reference documentation and code samples for the Eventarc V1 API class Google::Cloud::Eventarc::V1::CloudRun.
Represents a Cloud Run destination.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#path
defpath()->::String
Returns
(::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".
#path=
defpath=(value)->::String
Parameter
value (::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".
Returns
(::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".
#region
defregion()->::String
Returns
(::String) — Required. The region the Cloud Run service is deployed in.
#region=
defregion=(value)->::String
Parameter
value (::String) — Required. The region the Cloud Run service is deployed in.
Returns
(::String) — Required. The region the Cloud Run service is deployed in.
#service
defservice()->::String
Returns
(::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.
#service=
defservice=(value)->::String
Parameter
value (::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.
Returns
(::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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Eventarc V1 API - Class Google::Cloud::Eventarc::V1::CloudRun (v2.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.0 (latest)](/ruby/docs/reference/google-cloud-eventarc-v1/latest/Google-Cloud-Eventarc-V1-CloudRun)\n- [2.0.1](/ruby/docs/reference/google-cloud-eventarc-v1/2.0.1/Google-Cloud-Eventarc-V1-CloudRun)\n- [1.3.0](/ruby/docs/reference/google-cloud-eventarc-v1/1.3.0/Google-Cloud-Eventarc-V1-CloudRun)\n- [1.2.0](/ruby/docs/reference/google-cloud-eventarc-v1/1.2.0/Google-Cloud-Eventarc-V1-CloudRun)\n- [1.1.0](/ruby/docs/reference/google-cloud-eventarc-v1/1.1.0/Google-Cloud-Eventarc-V1-CloudRun)\n- [1.0.1](/ruby/docs/reference/google-cloud-eventarc-v1/1.0.1/Google-Cloud-Eventarc-V1-CloudRun)\n- [0.10.0](/ruby/docs/reference/google-cloud-eventarc-v1/0.10.0/Google-Cloud-Eventarc-V1-CloudRun)\n- [0.9.2](/ruby/docs/reference/google-cloud-eventarc-v1/0.9.2/Google-Cloud-Eventarc-V1-CloudRun)\n- [0.8.0](/ruby/docs/reference/google-cloud-eventarc-v1/0.8.0/Google-Cloud-Eventarc-V1-CloudRun)\n- [0.7.0](/ruby/docs/reference/google-cloud-eventarc-v1/0.7.0/Google-Cloud-Eventarc-V1-CloudRun)\n- [0.6.0](/ruby/docs/reference/google-cloud-eventarc-v1/0.6.0/Google-Cloud-Eventarc-V1-CloudRun)\n- [0.5.0](/ruby/docs/reference/google-cloud-eventarc-v1/0.5.0/Google-Cloud-Eventarc-V1-CloudRun)\n- [0.4.0](/ruby/docs/reference/google-cloud-eventarc-v1/0.4.0/Google-Cloud-Eventarc-V1-CloudRun)\n- [0.3.0](/ruby/docs/reference/google-cloud-eventarc-v1/0.3.0/Google-Cloud-Eventarc-V1-CloudRun)\n- [0.2.1](/ruby/docs/reference/google-cloud-eventarc-v1/0.2.1/Google-Cloud-Eventarc-V1-CloudRun)\n- [0.1.4](/ruby/docs/reference/google-cloud-eventarc-v1/0.1.4/Google-Cloud-Eventarc-V1-CloudRun) \nReference documentation and code samples for the Eventarc V1 API class Google::Cloud::Eventarc::V1::CloudRun.\n\nRepresents a Cloud Run destination. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #path\n\n def path() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Optional. The relative path on the Cloud Run service the events should be sent to.\n\n The value must conform to the definition of a URI path segment (section 3.3\n of RFC2396). Examples: \"/route\", \"route\", \"route/subroute\".\n\n### #path=\n\n def path=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Optional. The relative path on the Cloud Run service the events should be sent to.\n\n\n The value must conform to the definition of a URI path segment (section 3.3\nof RFC2396). Examples: \"/route\", \"route\", \"route/subroute\". \n**Returns**\n\n- (::String) --- Optional. The relative path on the Cloud Run service the events should be sent to.\n\n The value must conform to the definition of a URI path segment (section 3.3\n of RFC2396). Examples: \"/route\", \"route\", \"route/subroute\".\n\n### #region\n\n def region() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The region the Cloud Run service is deployed in.\n\n### #region=\n\n def region=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The region the Cloud Run service is deployed in. \n**Returns**\n\n- (::String) --- Required. The region the Cloud Run service is deployed in.\n\n### #service\n\n def service() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The name of the Cloud Run service being addressed. See https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services.\n\n Only services located in the same project as the trigger object\n can be addressed.\n\n### #service=\n\n def service=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The name of the Cloud Run service being addressed. See https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services.\n\n\n Only services located in the same project as the trigger object\ncan be addressed. \n**Returns**\n\n- (::String) --- Required. The name of the Cloud Run service being addressed. See https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services.\n\n Only services located in the same project as the trigger object\n can be addressed."]]