Google Cloud Eventarc V1 Client - Class CloudRun (1.3.3)

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
Name Description
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
Type Description
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
Name Description
var string
Returns
Type Description
$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
Type Description
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
Name Description
var string
Returns
Type Description
$this

getRegion

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

Returns
Type Description
string

setRegion

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

Parameter
Name Description
var string
Returns
Type Description
$this