public sealed class Trigger : IMessage<Trigger>, IEquatable<Trigger>, IDeepCloneable<Trigger>, IBufferMessage, IMessage
Reference documentation and code samples for the Eventarc v1 API class Trigger.
A representation of the trigger resource.
Namespace
Google.Cloud.Eventarc.V1Assembly
Google.Cloud.Eventarc.V1.dll
Constructors
Trigger()
public Trigger()
Trigger(Trigger)
public Trigger(Trigger other)
Parameter | |
---|---|
Name | Description |
other |
Trigger |
Properties
Channel
public string Channel { get; set; }
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.
Property Value | |
---|---|
Type | Description |
string |
Conditions
public MapField<string, StateCondition> Conditions { get; }
Output only. The reason(s) why a trigger is in FAILED state.
Property Value | |
---|---|
Type | Description |
MapFieldstringStateCondition |
CreateTime
public Timestamp CreateTime { get; set; }
Output only. The creation time.
Property Value | |
---|---|
Type | Description |
Timestamp |
Destination
public Destination Destination { get; set; }
Required. Destination specifies where the events should be sent to.
Property Value | |
---|---|
Type | Description |
Destination |
Etag
public string Etag { get; set; }
Output only. This checksum is computed by the server based on the value of other fields, and might be sent only on create requests to ensure that the client has an up-to-date value before proceeding.
Property Value | |
---|---|
Type | Description |
string |
EventDataContentType
public string EventDataContentType { get; set; }
Optional. EventDataContentType specifies the type of payload in MIME
format that is expected from the CloudEvent data field. This is set to
application/json
if the value is not defined.
Property Value | |
---|---|
Type | Description |
string |
EventFilters
public RepeatedField<EventFilter> EventFilters { get; }
Required. Unordered list. The list of filters that applies to event attributes. Only events that match all the provided filters are sent to the destination.
Property Value | |
---|---|
Type | Description |
RepeatedFieldEventFilter |
Labels
public MapField<string, string> Labels { get; }
Optional. User labels attached to the triggers that can be used to group resources.
Property Value | |
---|---|
Type | Description |
MapFieldstringstring |
Name
public string Name { get; set; }
Required. The resource name of the trigger. Must be unique within the
location of the project and must be in
projects/{project}/locations/{location}/triggers/{trigger}
format.
Property Value | |
---|---|
Type | Description |
string |
SatisfiesPzs
public bool SatisfiesPzs { get; set; }
Output only. Whether or not this Trigger satisfies the requirements of physical zone separation
Property Value | |
---|---|
Type | Description |
bool |
ServiceAccount
public string ServiceAccount { get; set; }
Optional. The IAM service account email associated with the trigger. The service account represents the identity of the trigger.
The iam.serviceAccounts.actAs
permission must be granted on the service
account to allow a principal to impersonate the service account. For more
information, see the
Roles and permissions page specific
to the trigger destination.
Property Value | |
---|---|
Type | Description |
string |
ServiceAccountAsServiceAccountName
public ServiceAccountName ServiceAccountAsServiceAccountName { get; set; }
ServiceAccountName-typed view over the ServiceAccount resource name property.
Property Value | |
---|---|
Type | Description |
ServiceAccountName |
Transport
public Transport Transport { get; set; }
Optional. To deliver messages, Eventarc might use other Google Cloud products as a transport intermediary. This field contains a reference to that transport intermediary. This information can be used for debugging purposes.
Property Value | |
---|---|
Type | Description |
Transport |
TriggerName
public TriggerName TriggerName { get; set; }
TriggerName-typed view over the Name resource name property.
Property Value | |
---|---|
Type | Description |
TriggerName |
Uid
public string Uid { get; set; }
Output only. Server-assigned unique identifier for the trigger. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
Property Value | |
---|---|
Type | Description |
string |
UpdateTime
public Timestamp UpdateTime { get; set; }
Output only. The last-modified time.
Property Value | |
---|---|
Type | Description |
Timestamp |