Class: Google::Apis::EventarcV1beta1::Trigger
- Inherits:
-
Object
- Object
- Google::Apis::EventarcV1beta1::Trigger
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/eventarc_v1beta1/classes.rb,
lib/google/apis/eventarc_v1beta1/representations.rb,
lib/google/apis/eventarc_v1beta1/representations.rb
Overview
A representation of the trigger resource.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#destination ⇒ Google::Apis::EventarcV1beta1::Destination
Represents a target of an invocation over HTTP.
-
#etag ⇒ String
Output only.
-
#labels ⇒ Hash<String,String>
Optional.
-
#matching_criteria ⇒ Array<Google::Apis::EventarcV1beta1::MatchingCriteria>
Required.
-
#name ⇒ String
Required.
-
#service_account ⇒ String
Optional.
-
#transport ⇒ Google::Apis::EventarcV1beta1::Transport
Represents the transport intermediaries created for the trigger in order to deliver events.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Trigger
constructor
A new instance of Trigger.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Trigger
Returns a new instance of Trigger.
929 930 931 |
# File 'lib/google/apis/eventarc_v1beta1/classes.rb', line 929 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. The creation time.
Corresponds to the JSON property createTime
871 872 873 |
# File 'lib/google/apis/eventarc_v1beta1/classes.rb', line 871 def create_time @create_time end |
#destination ⇒ Google::Apis::EventarcV1beta1::Destination
Represents a target of an invocation over HTTP.
Corresponds to the JSON property destination
876 877 878 |
# File 'lib/google/apis/eventarc_v1beta1/classes.rb', line 876 def destination @destination end |
#etag ⇒ String
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
883 884 885 |
# File 'lib/google/apis/eventarc_v1beta1/classes.rb', line 883 def etag @etag end |
#labels ⇒ Hash<String,String>
Optional. User labels attached to the triggers that can be used to group
resources.
Corresponds to the JSON property labels
889 890 891 |
# File 'lib/google/apis/eventarc_v1beta1/classes.rb', line 889 def labels @labels end |
#matching_criteria ⇒ Array<Google::Apis::EventarcV1beta1::MatchingCriteria>
Required. Unordered list. The criteria by which events are filtered. Only
events that match with this criteria will be sent to the destination.
Corresponds to the JSON property matchingCriteria
895 896 897 |
# File 'lib/google/apis/eventarc_v1beta1/classes.rb', line 895 def matching_criteria @matching_criteria end |
#name ⇒ String
Required. The resource name of the trigger. Must be unique within the location
on the project and must in projects/
project/locations/
location/triggers/
trigger`format.
Corresponds to the JSON property
name`
902 903 904 |
# File 'lib/google/apis/eventarc_v1beta1/classes.rb', line 902 def name @name end |
#service_account ⇒ 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 https://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
https://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 '
eventarc.events.receiveAuditLogV1Written' permission.
Corresponds to the JSON property serviceAccount
916 917 918 |
# File 'lib/google/apis/eventarc_v1beta1/classes.rb', line 916 def service_account @service_account end |
#transport ⇒ Google::Apis::EventarcV1beta1::Transport
Represents the transport intermediaries created for the trigger in order to
deliver events.
Corresponds to the JSON property transport
922 923 924 |
# File 'lib/google/apis/eventarc_v1beta1/classes.rb', line 922 def transport @transport end |
#update_time ⇒ String
Output only. The last-modified time.
Corresponds to the JSON property updateTime
927 928 929 |
# File 'lib/google/apis/eventarc_v1beta1/classes.rb', line 927 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
934 935 936 937 938 939 940 941 942 943 944 |
# File 'lib/google/apis/eventarc_v1beta1/classes.rb', line 934 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) @labels = args[:labels] if args.key?(:labels) @matching_criteria = args[:matching_criteria] if args.key?(:matching_criteria) @name = args[:name] if args.key?(:name) @service_account = args[:service_account] if args.key?(:service_account) @transport = args[:transport] if args.key?(:transport) @update_time = args[:update_time] if args.key?(:update_time) end |