Class: Google::Apis::CloudsearchV1::GoogleChatV1WidgetMarkupFormAction

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 form action describes the behavior when the form is submitted. For example, you can invoke Apps Script to handle the form.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleChatV1WidgetMarkupFormAction

Returns a new instance of GoogleChatV1WidgetMarkupFormAction.



10306
10307
10308
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10306

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

Instance Attribute Details

#action_method_nameString

The method name is used to identify which part of the form triggered the form submission. This information is echoed back to the Chat app as part of the card click event. You can use the same method name for several elements that trigger a common behavior. Corresponds to the JSON property actionMethodName

Returns:

  • (String)


10299
10300
10301
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10299

def action_method_name
  @action_method_name
end

#parametersArray<Google::Apis::CloudsearchV1::GoogleChatV1WidgetMarkupFormActionActionParameter>

List of action parameters. Corresponds to the JSON property parameters



10304
10305
10306
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10304

def parameters
  @parameters
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10311
10312
10313
10314
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10311

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