Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaAssistantContentExecutableCode

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

Returns a new instance of GoogleCloudDiscoveryengineV1alphaAssistantContentExecutableCode.



8289
8290
8291
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 8289

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)


8287
8288
8289
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 8287

def code
  @code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8294
8295
8296
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 8294

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