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.



11556
11557
11558
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 11556

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

Instance Attribute Details

#descriptionString

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

Returns:

  • (String)


11538
11539
11540
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 11538

def description
  @description
end

#display_nameString

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

Returns:

  • (String)


11543
11544
11545
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 11543

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)


11548
11549
11550
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 11548

def enabled
  @enabled
end

#nameString

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

Returns:

  • (String)


11554
11555
11556
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 11554

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11561
11562
11563
11564
11565
11566
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 11561

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