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.



21223
21224
21225
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 21223

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)


21221
21222
21223
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 21221

def code
  @code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



21228
21229
21230
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 21228

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