Class: Google::Apis::CloudsearchV1::TriggerAction

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TriggerAction

Returns a new instance of TriggerAction.



20086
20087
20088
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20086

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

Instance Attribute Details

#actionString

Corresponds to the JSON property action

Returns:

  • (String)


20073
20074
20075
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20073

def action
  @action
end

#dataString

Clients should use extensions on the Trigger message instead. Corresponds to the JSON property data NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


20079
20080
20081
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20079

def data
  @data
end

#data_intFixnum

Corresponds to the JSON property dataInt

Returns:

  • (Fixnum)


20084
20085
20086
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20084

def data_int
  @data_int
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20091
20092
20093
20094
20095
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20091

def update!(**args)
  @action = args[:action] if args.key?(:action)
  @data = args[:data] if args.key?(:data)
  @data_int = args[:data_int] if args.key?(:data_int)
end