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.



3453
3454
3455
# File 'lib/google/apis/apihub_v1/classes.rb', line 3453

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

Instance Attribute Details

#annotationsGoogle::Apis::ApihubV1::GoogleCloudApihubV1ToolAnnotations

Annotations for a Tool. Corresponds to the JSON property annotations



3426
3427
3428
# File 'lib/google/apis/apihub_v1/classes.rb', line 3426

def annotations
  @annotations
end

#descriptionString

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

Returns:

  • (String)


3431
3432
3433
# File 'lib/google/apis/apihub_v1/classes.rb', line 3431

def description
  @description
end

#input_schemaGoogle::Apis::ApihubV1::GoogleCloudApihubV1OperationSchema

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



3436
3437
3438
# File 'lib/google/apis/apihub_v1/classes.rb', line 3436

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)


3441
3442
3443
# File 'lib/google/apis/apihub_v1/classes.rb', line 3441

def name
  @name
end

#output_schemaGoogle::Apis::ApihubV1::GoogleCloudApihubV1OperationSchema

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



3446
3447
3448
# File 'lib/google/apis/apihub_v1/classes.rb', line 3446

def output_schema
  @output_schema
end

#titleString

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

Returns:

  • (String)


3451
3452
3453
# File 'lib/google/apis/apihub_v1/classes.rb', line 3451

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3458
3459
3460
3461
3462
3463
3464
3465
# File 'lib/google/apis/apihub_v1/classes.rb', line 3458

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