Class: Google::Apis::EventarcV1beta1::Trigger

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/eventarc_v1beta1/classes.rb,
generated/google/apis/eventarc_v1beta1/representations.rb,
generated/google/apis/eventarc_v1beta1/representations.rb

Overview

A representation of the trigger resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Trigger

Returns a new instance of Trigger.



912
913
914
# File 'generated/google/apis/eventarc_v1beta1/classes.rb', line 912

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#create_timeString

Output only. The creation time. Corresponds to the JSON property createTime

Returns:

  • (String)


860
861
862
# File 'generated/google/apis/eventarc_v1beta1/classes.rb', line 860

def create_time
  @create_time
end

#destinationGoogle::Apis::EventarcV1beta1::Destination

Represents a target of an invocation over HTTP. Corresponds to the JSON property destination



865
866
867
# File 'generated/google/apis/eventarc_v1beta1/classes.rb', line 865

def destination
  @destination
end

#etagString

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

Returns:

  • (String)


872
873
874
# File 'generated/google/apis/eventarc_v1beta1/classes.rb', line 872

def etag
  @etag
end

#matching_criteriaArray<Google::Apis::EventarcV1beta1::MatchingCriteria>

Required. 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



878
879
880
# File 'generated/google/apis/eventarc_v1beta1/classes.rb', line 878

def matching_criteria
  @matching_criteria
end

#nameString

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 propertyname`

Returns:

  • (String)


885
886
887
# File 'generated/google/apis/eventarc_v1beta1/classes.rb', line 885

def name
  @name
end

#service_accountString

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

Returns:

  • (String)


899
900
901
# File 'generated/google/apis/eventarc_v1beta1/classes.rb', line 899

def 
  @service_account
end

#transportGoogle::Apis::EventarcV1beta1::Transport

Represents the transport intermediaries created for the trigger in order to deliver events. Corresponds to the JSON property transport



905
906
907
# File 'generated/google/apis/eventarc_v1beta1/classes.rb', line 905

def transport
  @transport
end

#update_timeString

Output only. The last-modified time. Corresponds to the JSON property updateTime

Returns:

  • (String)


910
911
912
# File 'generated/google/apis/eventarc_v1beta1/classes.rb', line 910

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



917
918
919
920
921
922
923
924
925
926
# File 'generated/google/apis/eventarc_v1beta1/classes.rb', line 917

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)
  @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