Eventarc V1 API - Class Google::Cloud::Eventarc::V1::Destination (v1.3.0)

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

Represents a target of an invocation over HTTP.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#cloud_function

def cloud_function() -> ::String
Returns
  • (::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.

    Note: The following fields are mutually exclusive: cloud_function, cloud_run, gke, workflow, http_endpoint. If a field in that set is populated, all other fields in the set will automatically be cleared.

#cloud_function=

def cloud_function=(value) -> ::String
Parameter
  • value (::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.

    Note: The following fields are mutually exclusive: cloud_function, cloud_run, gke, workflow, http_endpoint. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::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.

    Note: The following fields are mutually exclusive: cloud_function, cloud_run, gke, workflow, http_endpoint. If a field in that set is populated, all other fields in the set will automatically be cleared.

#cloud_run

def cloud_run() -> ::Google::Cloud::Eventarc::V1::CloudRun
Returns
  • (::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.

    Note: The following fields are mutually exclusive: cloud_run, cloud_function, gke, workflow, http_endpoint. If a field in that set is populated, all other fields in the set will automatically be cleared.

#cloud_run=

def cloud_run=(value) -> ::Google::Cloud::Eventarc::V1::CloudRun
Parameter
  • value (::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.

    Note: The following fields are mutually exclusive: cloud_run, cloud_function, gke, workflow, http_endpoint. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::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.

    Note: The following fields are mutually exclusive: cloud_run, cloud_function, gke, workflow, http_endpoint. If a field in that set is populated, all other fields in the set will automatically be cleared.

#gke

def gke() -> ::Google::Cloud::Eventarc::V1::GKE
Returns
  • (::Google::Cloud::Eventarc::V1::GKE) — A GKE service capable of receiving events. The service should be running in the same project as the trigger.

    Note: The following fields are mutually exclusive: gke, cloud_run, cloud_function, workflow, http_endpoint. If a field in that set is populated, all other fields in the set will automatically be cleared.

#gke=

def gke=(value) -> ::Google::Cloud::Eventarc::V1::GKE
Parameter
  • value (::Google::Cloud::Eventarc::V1::GKE) — A GKE service capable of receiving events. The service should be running in the same project as the trigger.

    Note: The following fields are mutually exclusive: gke, cloud_run, cloud_function, workflow, http_endpoint. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::Eventarc::V1::GKE) — A GKE service capable of receiving events. The service should be running in the same project as the trigger.

    Note: The following fields are mutually exclusive: gke, cloud_run, cloud_function, workflow, http_endpoint. If a field in that set is populated, all other fields in the set will automatically be cleared.

#http_endpoint

def http_endpoint() -> ::Google::Cloud::Eventarc::V1::HttpEndpoint
Returns
  • (::Google::Cloud::Eventarc::V1::HttpEndpoint) — An HTTP endpoint destination described by an URI.

    Note: The following fields are mutually exclusive: http_endpoint, cloud_run, cloud_function, gke, workflow. If a field in that set is populated, all other fields in the set will automatically be cleared.

#http_endpoint=

def http_endpoint=(value) -> ::Google::Cloud::Eventarc::V1::HttpEndpoint
Parameter
  • value (::Google::Cloud::Eventarc::V1::HttpEndpoint) — An HTTP endpoint destination described by an URI.

    Note: The following fields are mutually exclusive: http_endpoint, cloud_run, cloud_function, gke, workflow. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::Eventarc::V1::HttpEndpoint) — An HTTP endpoint destination described by an URI.

    Note: The following fields are mutually exclusive: http_endpoint, cloud_run, cloud_function, gke, workflow. If a field in that set is populated, all other fields in the set will automatically be cleared.

#network_config

def network_config() -> ::Google::Cloud::Eventarc::V1::NetworkConfig
Returns

#network_config=

def network_config=(value) -> ::Google::Cloud::Eventarc::V1::NetworkConfig
Parameter
Returns

#workflow

def workflow() -> ::String
Returns
  • (::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}

    Note: The following fields are mutually exclusive: workflow, cloud_run, cloud_function, gke, http_endpoint. If a field in that set is populated, all other fields in the set will automatically be cleared.

#workflow=

def workflow=(value) -> ::String
Parameter
  • value (::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}

    Note: The following fields are mutually exclusive: workflow, cloud_run, cloud_function, gke, http_endpoint. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::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}

    Note: The following fields are mutually exclusive: workflow, cloud_run, cloud_function, gke, http_endpoint. If a field in that set is populated, all other fields in the set will automatically be cleared.