class Google::Apis::ScriptV1::ExecutionRequest

A request to run the function in a script. The script is identified by the specified `script_id`. Executing a function on a script will return results based on the implementation of the script.

Attributes

dev_mode[RW]

If `true` and the user is an owner of the script, the script runs at the most recently saved version rather than the version deployed for use with the Execution API. Optional; default is `false`. Corresponds to the JSON property `devMode` @return [Boolean]

dev_mode?[RW]

If `true` and the user is an owner of the script, the script runs at the most recently saved version rather than the version deployed for use with the Execution API. Optional; default is `false`. Corresponds to the JSON property `devMode` @return [Boolean]

function[RW]

The name of the function to execute in the given script. The name does not include parentheses or parameters. Corresponds to the JSON property `function` @return [String]

parameters[RW]

The parameters to be passed to the function being executed. The type for each parameter should match the expected type in Apps Script. Parameters cannot be Apps Script-specific objects (such as a `Document` or `Calendar`); they can only be primitive types such as a `string`, `number`, `array`, `object`, or ` boolean`. Optional. Corresponds to the JSON property `parameters` @return [Array<Object>]

session_state[RW]

This field is not used. Corresponds to the JSON property `sessionState` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/script_v1/classes.rb, line 59
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/script_v1/classes.rb, line 64
def update!(**args)
  @function = args[:function] if args.key?(:function)
  @parameters = args[:parameters] if args.key?(:parameters)
  @session_state = args[:session_state] if args.key?(:session_state)
  @dev_mode = args[:dev_mode] if args.key?(:dev_mode)
end