Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CodeExecutionResult

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

Overview

Result of executing the ExecutableCode. Generated only when the CodeExecution tool is used.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1CodeExecutionResult

Returns a new instance of GoogleCloudAiplatformV1CodeExecutionResult.



4913
4914
4915
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 4913

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

Instance Attribute Details

#idString

Optional. The identifier of the ExecutableCode part this result is for. Only populated if the corresponding ExecutableCode has an id. Corresponds to the JSON property id

Returns:

  • (String)


4900
4901
4902
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 4900

def id
  @id
end

#outcomeString

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

Returns:

  • (String)


4905
4906
4907
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 4905

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)


4911
4912
4913
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 4911

def output
  @output
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4918
4919
4920
4921
4922
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 4918

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