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.
data
array
Optional. Data for populating the Message object.
↳ cloud_run
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. Cloud Functions V1 and V2 are supported. Format: projects/{project}/locations/{location}/functions/{function}
This is a read-only field. Creating Cloud Functions V1/V2 triggers is only supported via the Cloud Functions product. An error will be returned if the user sets this value.
↳ gke
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}
↳ http_endpoint
↳ network_config
NetworkConfig
Optional. Network config is used to configure how Eventarc resolves and connect to a destination. This should only be used with HttpEndpoint destination type.
getCloudRun
Cloud Run fully-managed resource that receives the events. The resource should be in the same project as the trigger.
hasCloudRun
setCloudRun
Cloud Run fully-managed resource that receives the events. The resource should be in the same project as the trigger.
$this
getCloudFunction
The Cloud Function resource name. Cloud Functions V1 and V2 are supported.
Format: projects/{project}/locations/{location}/functions/{function}
This is a read-only field. Creating Cloud Functions V1/V2 triggers is
only supported via the Cloud Functions product. An error will be returned
if the user sets this value.
string
hasCloudFunction
setCloudFunction
The Cloud Function resource name. Cloud Functions V1 and V2 are supported.
Format: projects/{project}/locations/{location}/functions/{function}
This is a read-only field. Creating Cloud Functions V1/V2 triggers is
only supported via the Cloud Functions product. An error will be returned
if the user sets this value.
var
string
$this
getGke
A GKE service capable of receiving events. The service should be running in the same project as the trigger.
hasGke
setGke
A GKE service capable of receiving events. The service should be running in the same project as the trigger.
$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}
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}
var
string
$this
getHttpEndpoint
An HTTP endpoint destination described by an URI.
hasHttpEndpoint
setHttpEndpoint
An HTTP endpoint destination described by an URI.
$this
getNetworkConfig
Optional. Network config is used to configure how Eventarc resolves and connect to a destination.
This should only be used with HttpEndpoint destination type.
hasNetworkConfig
clearNetworkConfig
setNetworkConfig
Optional. Network config is used to configure how Eventarc resolves and connect to a destination.
This should only be used with HttpEndpoint destination type.
$this
getDescriptor
string