Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaDynamicTool

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

Configuration for dynamic tools.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaDynamicTool

Returns a new instance of GoogleCloudDiscoveryengineV1alphaDynamicTool.



12276
12277
12278
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 12276

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

Instance Attribute Details

#descriptionString

Optional. The description of the tool. Corresponds to the JSON property description

Returns:

  • (String)


12258
12259
12260
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 12258

def description
  @description
end

#display_nameString

Optional. The display name of the tool. Corresponds to the JSON property displayName

Returns:

  • (String)


12263
12264
12265
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 12263

def display_name
  @display_name
end

#enabledBoolean Also known as: enabled?

Optional. Whether the tool is enabled. Corresponds to the JSON property enabled

Returns:

  • (Boolean)


12268
12269
12270
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 12268

def enabled
  @enabled
end

#nameString

Required. The name of the tool. Corresponds to the JSON property name

Returns:

  • (String)


12274
12275
12276
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 12274

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12281
12282
12283
12284
12285
12286
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 12281

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @enabled = args[:enabled] if args.key?(:enabled)
  @name = args[:name] if args.key?(:name)
end