Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAssistantContentCodeExecutionResult

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

Overview

Result of executing ExecutableCode.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaAssistantContentCodeExecutionResult

Returns a new instance of GoogleCloudDiscoveryengineV1betaAssistantContentCodeExecutionResult.



21301
21302
21303
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 21301

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

Instance Attribute Details

#outcomeString

Required. Outcome of the code execution. Corresponds to the JSON property outcome

Returns:

  • (String)


21293
21294
21295
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 21293

def outcome
  @outcome
end

#outputString

Optional. Contains stdout when code execution is successful, stderr or other description otherwise. Corresponds to the JSON property output

Returns:

  • (String)


21299
21300
21301
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 21299

def output
  @output
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



21306
21307
21308
21309
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 21306

def update!(**args)
  @outcome = args[:outcome] if args.key?(:outcome)
  @output = args[:output] if args.key?(:output)
end