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.



8957
8958
8959
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 8957

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)


8955
8956
8957
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 8955

def code
  @code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8962
8963
8964
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 8962

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