class Google::Apis::ScriptV1::Operation

The response will not arrive until the function finishes executing. The maximum runtime is listed in the guide to [limitations in Apps Script](https:// developers.google.com/apps-script/guides/services/quotas#current_limitations). If the script function returns successfully, the `response` field will contain an `ExecutionResponse` object with the function's return value in the object's `result` field. If the script function (or Apps Script itself) throws an exception, the `error` field will contain a `Status` object. The `Status` object's `details` field will contain an array with a single `ExecutionError` object that provides information about the nature of the error. If the `run` call itself fails (for example, because of a malformed request or an authorization error), the method will return an HTTP response code in the 4XX range with a different format for the response body. Client libraries will automatically convert a 4XX response into an exception class.

Attributes

done[RW]

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

done?[RW]

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

error[RW]

If a `run` call succeeds but the script function (or Apps Script itself) throws an exception, the response body's `error` field will contain this ` Status` object. Corresponds to the JSON property `error` @return [Google::Apis::ScriptV1::Status]

metadata[RW]

This field is not used. Corresponds to the JSON property `metadata` @return [Hash<String,Object>]

name[RW]

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

response[RW]

If the script function returns successfully, this field will contain an ` ExecutionResponse` object with the function's return value as the object's ` result` field. Corresponds to the JSON property `response` @return [Hash<String,Object>]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/script_v1/classes.rb, line 119
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 124
def update!(**args)
  @name = args[:name] if args.key?(:name)
  @metadata = args[:metadata] if args.key?(:metadata)
  @done = args[:done] if args.key?(:done)
  @error = args[:error] if args.key?(:error)
  @response = args[:response] if args.key?(:response)
end