Class: Google::Apis::CloudfunctionsV1::CallFunctionResponse
- Inherits:
-
Object
- Object
- Google::Apis::CloudfunctionsV1::CallFunctionResponse
- 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
-
#error ⇒ String
Either system or user-function generated error.
-
#execution_id ⇒ String
Execution id of function invocation.
-
#result ⇒ String
Result populated for successful execution of synchronous function.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CallFunctionResponse
constructor
A new instance of CallFunctionResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CallFunctionResponse
Returns a new instance of CallFunctionResponse.
248 249 250 |
# File 'lib/google/apis/cloudfunctions_v1/classes.rb', line 248 def initialize(**args) update!(**args) end |
Instance Attribute Details
#error ⇒ String
Either system or user-function generated error. Set if execution was not
successful.
Corresponds to the JSON property error
235 236 237 |
# File 'lib/google/apis/cloudfunctions_v1/classes.rb', line 235 def error @error end |
#execution_id ⇒ String
Execution id of function invocation.
Corresponds to the JSON property executionId
240 241 242 |
# File 'lib/google/apis/cloudfunctions_v1/classes.rb', line 240 def execution_id @execution_id end |
#result ⇒ String
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
246 247 248 |
# File 'lib/google/apis/cloudfunctions_v1/classes.rb', line 246 def result @result end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
253 254 255 256 257 |
# File 'lib/google/apis/cloudfunctions_v1/classes.rb', line 253 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 |