class Google::Apis::ChatV1::GoogleAppsCardV1Action
An action that describes the behavior when the form is submitted. For example, an Apps Script can be invoked to handle the form.
Attributes
Apps Script function to invoke when the containing element is clicked/ activated. Corresponds to the JSON property `function` @return [String]
Corresponds to the JSON property `loadIndicator` @return [String]
List of action parameters. Corresponds to the JSON property `parameters` @return [Array<Google::Apis::ChatV1::GoogleAppsCardV1ActionParameter>]
Indicates whether form values persist after the action. The default value is ` false`. If `true`, form values remain after the action is triggered. When using [LoadIndicator.NONE](workspace/add-ons/reference/rpc/google.apps.card.v1# loadindicator) for actions, `persist_values` = `true`is recommended, as it ensures that any changes made by the user after form or on change actions are sent to the server are not overwritten by the response. If `false`, the form values are cleared when the action is triggered. When `persist_values` is set to `false`, it is strongly recommended that the card use [LoadIndicator. SPINNER](workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) for all actions, as this locks the UI to ensure no changes are made by the user while the action is being processed. Corresponds to the JSON property `persistValues` @return [Boolean]
Indicates whether form values persist after the action. The default value is ` false`. If `true`, form values remain after the action is triggered. When using [LoadIndicator.NONE](workspace/add-ons/reference/rpc/google.apps.card.v1# loadindicator) for actions, `persist_values` = `true`is recommended, as it ensures that any changes made by the user after form or on change actions are sent to the server are not overwritten by the response. If `false`, the form values are cleared when the action is triggered. When `persist_values` is set to `false`, it is strongly recommended that the card use [LoadIndicator. SPINNER](workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) for all actions, as this locks the UI to ensure no changes are made by the user while the action is being processed. Corresponds to the JSON property `persistValues` @return [Boolean]
Public Class Methods
# File lib/google/apis/chat_v1/classes.rb, line 841 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/chat_v1/classes.rb, line 846 def update!(**args) @function = args[:function] if args.key?(:function) @load_indicator = args[:load_indicator] if args.key?(:load_indicator) @parameters = args[:parameters] if args.key?(:parameters) @persist_values = args[:persist_values] if args.key?(:persist_values) end