Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1DynamicTool

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) ⇒ GoogleCloudDiscoveryengineV1DynamicTool

Returns a new instance of GoogleCloudDiscoveryengineV1DynamicTool.



3827
3828
3829
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 3827

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

Instance Attribute Details

#descriptionString

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

Returns:

  • (String)


3809
3810
3811
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 3809

def description
  @description
end

#display_nameString

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

Returns:

  • (String)


3814
3815
3816
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 3814

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)


3819
3820
3821
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 3819

def enabled
  @enabled
end

#nameString

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

Returns:

  • (String)


3825
3826
3827
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 3825

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3832
3833
3834
3835
3836
3837
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 3832

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