Class EventTrigger
Describes EventTrigger, used to request events to be sent from another service.
Implements
Inherited Members
Namespace: Google.Apis.CloudFunctions.v2.Data
Assembly: Google.Apis.CloudFunctions.v2.dll
Syntax
public class EventTrigger : IDirectResponseSchema
Properties
Channel
Optional. The name of the channel associated with the trigger in
projects/{project}/locations/{location}/channels/{channel} format. You must provide a channel to receive
events from Eventarc SaaS partners.
Declaration
[JsonProperty("channel")]
public virtual string Channel { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
EventFilters
Criteria used to filter events.
Declaration
[JsonProperty("eventFilters")]
public virtual IList<EventFilter> EventFilters { get; set; }
Property Value
| Type | Description |
|---|---|
| IList<EventFilter> |
EventType
Required. The type of event to observe. For example: google.cloud.audit.log.v1.written or
google.cloud.pubsub.topic.v1.messagePublished.
Declaration
[JsonProperty("eventType")]
public virtual string EventType { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
PubsubTopic
Optional. The name of a Pub/Sub topic in the same project that will be used as the transport topic for the
event delivery. Format: projects/{project}/topics/{topic}. This is only valid for events of type
google.cloud.pubsub.topic.v1.messagePublished. The topic provided here will not be deleted at function
deletion.
Declaration
[JsonProperty("pubsubTopic")]
public virtual string PubsubTopic { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
RetryPolicy
Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
Declaration
[JsonProperty("retryPolicy")]
public virtual string RetryPolicy { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Service
Optional. The hostname of the service that 1st Gen function should be observed. If no string is provided,
the default service implementing the API will be used. For example, storage.googleapis.com is the default
for all event types in the google.storage namespace. The field is only applicable to 1st Gen functions.
Declaration
[JsonProperty("service")]
public virtual string Service { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ServiceAccountEmail
Optional. The email of the trigger's service account. The service account must have permission to invoke
Cloud Run services, the permission is run.routes.invoke. If empty, defaults to the Compute Engine default
service account: {project_number}-compute@developer.gserviceaccount.com.
Declaration
[JsonProperty("serviceAccountEmail")]
public virtual string ServiceAccountEmail { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Trigger
Output only. The resource name of the Eventarc trigger. The format of this field is
projects/{project}/locations/{region}/triggers/{trigger}.
Declaration
[JsonProperty("trigger")]
public virtual string Trigger { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
TriggerRegion
The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function.
Declaration
[JsonProperty("triggerRegion")]
public virtual string TriggerRegion { get; set; }
Property Value
| Type | Description |
|---|---|
| string |