Class: Google::Apis::ApihubV1::GoogleCloudApihubV1McpTool

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/apihub_v1/classes.rb,
lib/google/apis/apihub_v1/representations.rb,
lib/google/apis/apihub_v1/representations.rb

Overview

Details describing an MCP Tool.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudApihubV1McpTool

Returns a new instance of GoogleCloudApihubV1McpTool.



3582
3583
3584
# File 'lib/google/apis/apihub_v1/classes.rb', line 3582

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

Instance Attribute Details

#annotationsGoogle::Apis::ApihubV1::GoogleCloudApihubV1ToolAnnotations

Annotations for a Tool. Corresponds to the JSON property annotations



3555
3556
3557
# File 'lib/google/apis/apihub_v1/classes.rb', line 3555

def annotations
  @annotations
end

#descriptionString

Optional. Description of what the tool does. Corresponds to the JSON property description

Returns:

  • (String)


3560
3561
3562
# File 'lib/google/apis/apihub_v1/classes.rb', line 3560

def description
  @description
end

#input_schemaGoogle::Apis::ApihubV1::GoogleCloudApihubV1OperationSchema

The operation schema needed for an operation. Corresponds to the JSON property inputSchema



3565
3566
3567
# File 'lib/google/apis/apihub_v1/classes.rb', line 3565

def input_schema
  @input_schema
end

#nameString

Required. The name of the tool, unique within its parent scope (version). Corresponds to the JSON property name

Returns:

  • (String)


3570
3571
3572
# File 'lib/google/apis/apihub_v1/classes.rb', line 3570

def name
  @name
end

#output_schemaGoogle::Apis::ApihubV1::GoogleCloudApihubV1OperationSchema

The operation schema needed for an operation. Corresponds to the JSON property outputSchema



3575
3576
3577
# File 'lib/google/apis/apihub_v1/classes.rb', line 3575

def output_schema
  @output_schema
end

#titleString

Optional. Optional title for the tool. Corresponds to the JSON property title

Returns:

  • (String)


3580
3581
3582
# File 'lib/google/apis/apihub_v1/classes.rb', line 3580

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3587
3588
3589
3590
3591
3592
3593
3594
# File 'lib/google/apis/apihub_v1/classes.rb', line 3587

def update!(**args)
  @annotations = args[:annotations] if args.key?(:annotations)
  @description = args[:description] if args.key?(:description)
  @input_schema = args[:input_schema] if args.key?(:input_schema)
  @name = args[:name] if args.key?(:name)
  @output_schema = args[:output_schema] if args.key?(:output_schema)
  @title = args[:title] if args.key?(:title)
end