Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaAssistantContentCodeExecutionResult

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) ⇒ GoogleCloudDiscoveryengineV1alphaAssistantContentCodeExecutionResult

Returns a new instance of GoogleCloudDiscoveryengineV1alphaAssistantContentCodeExecutionResult.



8371
8372
8373
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 8371

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

Instance Attribute Details

#outcomeString

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

Returns:

  • (String)


8363
8364
8365
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 8363

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)


8369
8370
8371
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 8369

def output
  @output
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8376
8377
8378
8379
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 8376

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