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.



21168
21169
21170
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 21168

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)


21166
21167
21168
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 21166

def code
  @code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



21173
21174
21175
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 21173

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