Google Cloud Eventarc V1 Client - Class Destination (1.1.1)

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

Represents a target of an invocation over HTTP.

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

Namespace

Google \ Cloud \ Eventarc \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ cloud_run Google\Cloud\Eventarc\V1\CloudRun

Cloud Run fully-managed resource that receives the events. The resource should be in the same project as the trigger.

↳ cloud_function string

The Cloud Function resource name. Only Cloud Functions V2 is supported. Format: projects/{project}/locations/{location}/functions/{function}

↳ gke Google\Cloud\Eventarc\V1\GKE

A GKE service capable of receiving events. The service should be running in the same project as the trigger.

↳ workflow string

The resource name of the Workflow whose Executions are triggered by the events. The Workflow resource should be deployed in the same project as the trigger. Format: projects/{project}/locations/{location}/workflows/{workflow}

getCloudRun

Cloud Run fully-managed resource that receives the events. The resource should be in the same project as the trigger.

Returns
TypeDescription
Google\Cloud\Eventarc\V1\CloudRun|null

hasCloudRun

setCloudRun

Cloud Run fully-managed resource that receives the events. The resource should be in the same project as the trigger.

Parameter
NameDescription
var Google\Cloud\Eventarc\V1\CloudRun
Returns
TypeDescription
$this

getCloudFunction

The Cloud Function resource name. Only Cloud Functions V2 is supported.

Format: projects/{project}/locations/{location}/functions/{function}

Returns
TypeDescription
string

hasCloudFunction

setCloudFunction

The Cloud Function resource name. Only Cloud Functions V2 is supported.

Format: projects/{project}/locations/{location}/functions/{function}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getGke

A GKE service capable of receiving events. The service should be running in the same project as the trigger.

Returns
TypeDescription
Google\Cloud\Eventarc\V1\GKE|null

hasGke

setGke

A GKE service capable of receiving events. The service should be running in the same project as the trigger.

Parameter
NameDescription
var Google\Cloud\Eventarc\V1\GKE
Returns
TypeDescription
$this

getWorkflow

The resource name of the Workflow whose Executions are triggered by the events. The Workflow resource should be deployed in the same project as the trigger.

Format: projects/{project}/locations/{location}/workflows/{workflow}

Returns
TypeDescription
string

hasWorkflow

setWorkflow

The resource name of the Workflow whose Executions are triggered by the events. The Workflow resource should be deployed in the same project as the trigger.

Format: projects/{project}/locations/{location}/workflows/{workflow}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDescriptor

Returns
TypeDescription
string