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 \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
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: |
↳ 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: |
getCloudRun
Cloud Run fully-managed resource that receives the events. The resource should be in the same project as the trigger.
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
var |
Google\Cloud\Eventarc\V1\CloudRun
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCloudFunction
The Cloud Function resource name. Only Cloud Functions V2 is supported.
Format: projects/{project}/locations/{location}/functions/{function}
| Returns | |
|---|---|
| Type | Description |
string |
|
hasCloudFunction
setCloudFunction
The Cloud Function resource name. Only Cloud Functions V2 is supported.
Format: projects/{project}/locations/{location}/functions/{function}
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getGke
A GKE service capable of receiving events. The service should be running in the same project as the trigger.
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
var |
Google\Cloud\Eventarc\V1\GKE
|
| Returns | |
|---|---|
| Type | Description |
$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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDescriptor
| Returns | |
|---|---|
| Type | Description |
string |
|