Class: Google::Apis::CloudsearchV1::GoogleChatV1WidgetMarkupFormAction
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::GoogleChatV1WidgetMarkupFormAction
- 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, an Apps Script can be invoked to handle the form.
Instance Attribute Summary collapse
-
#action_method_name ⇒ String
The method name is used to identify which part of the form triggered the form submission.
-
#parameters ⇒ Array<Google::Apis::CloudsearchV1::GoogleChatV1WidgetMarkupFormActionActionParameter>
List of action parameters.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleChatV1WidgetMarkupFormAction
constructor
A new instance of GoogleChatV1WidgetMarkupFormAction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleChatV1WidgetMarkupFormAction
Returns a new instance of GoogleChatV1WidgetMarkupFormAction.
8617 8618 8619 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8617 def initialize(**args) update!(**args) end |
Instance Attribute Details
#action_method_name ⇒ String
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. The same method name can be used for several elements that
trigger a common behavior if desired.
Corresponds to the JSON property actionMethodName
8610 8611 8612 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8610 def action_method_name @action_method_name end |
#parameters ⇒ Array<Google::Apis::CloudsearchV1::GoogleChatV1WidgetMarkupFormActionActionParameter>
List of action parameters.
Corresponds to the JSON property parameters
8615 8616 8617 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8615 def parameters @parameters end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8622 8623 8624 8625 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8622 def update!(**args) @action_method_name = args[:action_method_name] if args.key?(:action_method_name) @parameters = args[:parameters] if args.key?(:parameters) end |