Class: Google::Apis::CloudfunctionsV1::CallFunctionResponse

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudfunctions_v1/classes.rb,
lib/google/apis/cloudfunctions_v1/representations.rb,
lib/google/apis/cloudfunctions_v1/representations.rb

Overview

Response of CallFunction method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CallFunctionResponse

Returns a new instance of CallFunctionResponse.



251
252
253
# File 'lib/google/apis/cloudfunctions_v1/classes.rb', line 251

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

Instance Attribute Details

#errorString

Either system or user-function generated error. Set if execution was not successful. Corresponds to the JSON property error

Returns:

  • (String)


238
239
240
# File 'lib/google/apis/cloudfunctions_v1/classes.rb', line 238

def error
  @error
end

#execution_idString

Execution id of function invocation. Corresponds to the JSON property executionId

Returns:

  • (String)


243
244
245
# File 'lib/google/apis/cloudfunctions_v1/classes.rb', line 243

def execution_id
  @execution_id
end

#resultString

Result populated for successful execution of synchronous function. Will not be populated if function does not return a result through context. Corresponds to the JSON property result

Returns:

  • (String)


249
250
251
# File 'lib/google/apis/cloudfunctions_v1/classes.rb', line 249

def result
  @result
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



256
257
258
259
260
# File 'lib/google/apis/cloudfunctions_v1/classes.rb', line 256

def update!(**args)
  @error = args[:error] if args.key?(:error)
  @execution_id = args[:execution_id] if args.key?(:execution_id)
  @result = args[:result] if args.key?(:result)
end