Class: Google::Apis::CloudsearchV1::TriggerKey

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb

Overview

A TriggerKey (type + instance_id) uniquely identifies a trigger within a message for a message-trigger and within an account for an account-trigger.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TriggerKey

Returns a new instance of TriggerKey.



20683
20684
20685
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20683

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

Instance Attribute Details

#instance_idString

Identifier to distinguish multiple Triggers of the same type (per message or per account). Corresponds to the JSON property instanceId

Returns:

  • (String)


20674
20675
20676
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20674

def instance_id
  @instance_id
end

#typeString

A non-empty string that identifies the type of Trigger. Triggers of the same type may be batched together. The universe of values for the type field should be finite as it is used as a stats key. Corresponds to the JSON property type

Returns:

  • (String)


20681
20682
20683
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20681

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20688
20689
20690
20691
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20688

def update!(**args)
  @instance_id = args[:instance_id] if args.key?(:instance_id)
  @type = args[:type] if args.key?(:type)
end