Class: Google::Apis::CloudfunctionsV1beta2::CallFunctionResponse

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

Overview

Response of CallFunction method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CallFunctionResponse

Returns a new instance of CallFunctionResponse.



65
66
67
# File 'generated/google/apis/cloudfunctions_v1beta2/classes.rb', line 65

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)


52
53
54
# File 'generated/google/apis/cloudfunctions_v1beta2/classes.rb', line 52

def error
  @error
end

#execution_idString

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

Returns:

  • (String)


57
58
59
# File 'generated/google/apis/cloudfunctions_v1beta2/classes.rb', line 57

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)


63
64
65
# File 'generated/google/apis/cloudfunctions_v1beta2/classes.rb', line 63

def result
  @result
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



70
71
72
73
74
# File 'generated/google/apis/cloudfunctions_v1beta2/classes.rb', line 70

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