Google Cloud Eventarc V1 Client - Class CloudRun (1.2.2)

Reference documentation and code samples for the Google Cloud Eventarc V1 Client class CloudRun.

Represents a Cloud Run destination.

Generated from protobuf message google.cloud.eventarc.v1.CloudRun

Namespace

Google \ Cloud \ Eventarc \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ 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.

↳ 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".

↳ region string

Required. The region the Cloud Run service is deployed in.

getService

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
TypeDescription
string

setService

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.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPath

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
TypeDescription
string

setPath

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".

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getRegion

Required. The region the Cloud Run service is deployed in.

Returns
TypeDescription
string

setRegion

Required. The region the Cloud Run service is deployed in.

Parameter
NameDescription
var string
Returns
TypeDescription
$this