Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAssistantContentExecutableCode

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

Code generated by the model that is meant to be executed by the model.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaAssistantContentExecutableCode

Returns a new instance of GoogleCloudDiscoveryengineV1betaAssistantContentExecutableCode.



20523
20524
20525
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 20523

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

Instance Attribute Details

#codeString

Required. The code content. Currently only supports Python. Corresponds to the JSON property code

Returns:

  • (String)


20521
20522
20523
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 20521

def code
  @code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20528
20529
20530
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 20528

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