Class: Google::Apis::EventarcV1::Trigger
- Inherits:
-
Object
- Object
- Google::Apis::EventarcV1::Trigger
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/eventarc_v1/classes.rb,
lib/google/apis/eventarc_v1/representations.rb,
lib/google/apis/eventarc_v1/representations.rb
Overview
A representation of the trigger resource.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#destination ⇒ Google::Apis::EventarcV1::Destination
Represents a target of an invocation over HTTP.
-
#etag ⇒ String
Output only.
-
#event_filters ⇒ Array<Google::Apis::EventarcV1::EventFilter>
Required.
-
#labels ⇒ Hash<String,String>
Optional.
-
#name ⇒ String
Required.
-
#service_account ⇒ String
Optional.
-
#transport ⇒ Google::Apis::EventarcV1::Transport
Represents the transport intermediaries created for the trigger in order to deliver events.
-
#uid ⇒ String
Output only.
-
#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.
985 986 987 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 985 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. The creation time.
Corresponds to the JSON property createTime
921 922 923 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 921 def create_time @create_time end |
#destination ⇒ Google::Apis::EventarcV1::Destination
Represents a target of an invocation over HTTP.
Corresponds to the JSON property destination
926 927 928 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 926 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
933 934 935 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 933 def etag @etag end |
#event_filters ⇒ Array<Google::Apis::EventarcV1::EventFilter>
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
939 940 941 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 939 def event_filters @event_filters 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
945 946 947 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 945 def labels @labels end |
#name ⇒ 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 propertyname`
952 953 954 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 952 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
roles/eventarc.eventReceiver IAM role.
Corresponds to the JSON property serviceAccount
966 967 968 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 966 def service_account @service_account end |
#transport ⇒ Google::Apis::EventarcV1::Transport
Represents the transport intermediaries created for the trigger in order to
deliver events.
Corresponds to the JSON property transport
972 973 974 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 972 def transport @transport end |
#uid ⇒ String
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
978 979 980 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 978 def uid @uid end |
#update_time ⇒ String
Output only. The last-modified time.
Corresponds to the JSON property updateTime
983 984 985 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 983 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
990 991 992 993 994 995 996 997 998 999 1000 1001 |
# File 'lib/google/apis/eventarc_v1/classes.rb', line 990 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 |