class Google::Apis::EventarcV1::Trigger
A representation of the trigger resource.
Attributes
Output only. The creation time. Corresponds to the JSON property `createTime` @return [String]
Represents a target of an invocation over HTTP. Corresponds to the JSON property `destination` @return [Google::Apis::EventarcV1::Destination]
Output only. This checksum is computed by the server based on the value of other fields, and may be sent only on create requests to ensure the client has an up-to-date value before proceeding. Corresponds to the JSON property `etag` @return [String]
Required. null The list of filters that applies to event attributes. Only events that match all the provided filters will be sent to the destination. Corresponds to the JSON property `eventFilters` @return [Array<Google::Apis::EventarcV1::EventFilter>]
Optional. User labels attached to the triggers that can be used to group resources. Corresponds to the JSON property `labels` @return [Hash<String,String>]
Required. The resource name of the trigger. Must be unique within the location on the project and must be in `projects/`project`/locations/`location`/ triggers/`trigger“ format. Corresponds to the JSON property `name` @return [String]
Optional. The IAM service account email associated with the trigger. The service account represents the identity of the trigger. The principal who calls this API must have `iam.serviceAccounts.actAs` permission in the service account. See cloud.google.com/iam/docs/understanding-service-accounts? hl=en#sa_common for more information. For Cloud Run destinations, this service account is used to generate identity tokens when invoking the service. See cloud.google.com/run/docs/triggering/pubsub-push#create-service- account for information on how to invoke authenticated Cloud Run services. In order to create Audit Log triggers, the service account should also have ` roles/eventarc.eventReceiver` IAM role. Corresponds to the JSON property `serviceAccount` @return [String]
Represents the transport intermediaries created for the trigger in order to deliver events. Corresponds to the JSON property `transport` @return [Google::Apis::EventarcV1::Transport]
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. Corresponds to the JSON property `uid` @return [String]
Output only. The last-modified time. Corresponds to the JSON property `updateTime` @return [String]
Public Class Methods
# File lib/google/apis/eventarc_v1/classes.rb, line 926 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/eventarc_v1/classes.rb, line 931 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @destination = args[:destination] if args.key?(:destination) @etag = args[:etag] if args.key?(:etag) @event_filters = args[:event_filters] if args.key?(:event_filters) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @service_account = args[:service_account] if args.key?(:service_account) @transport = args[:transport] if args.key?(:transport) @uid = args[:uid] if args.key?(:uid) @update_time = args[:update_time] if args.key?(:update_time) end