Class: Google::Apis::ApihubV1::GoogleCloudApihubV1McpTool
- Inherits:
-
Object
- Object
- Google::Apis::ApihubV1::GoogleCloudApihubV1McpTool
- 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
-
#annotations ⇒ Google::Apis::ApihubV1::GoogleCloudApihubV1ToolAnnotations
Annotations for a Tool.
-
#description ⇒ String
Optional.
-
#input_schema ⇒ Google::Apis::ApihubV1::GoogleCloudApihubV1OperationSchema
The operation schema needed for an operation.
-
#name ⇒ String
Required.
-
#output_schema ⇒ Google::Apis::ApihubV1::GoogleCloudApihubV1OperationSchema
The operation schema needed for an operation.
-
#title ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudApihubV1McpTool
constructor
A new instance of GoogleCloudApihubV1McpTool.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#annotations ⇒ Google::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 |
#description ⇒ String
Optional. Description of what the tool does.
Corresponds to the JSON property description
3431 3432 3433 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 3431 def description @description end |
#input_schema ⇒ Google::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 |
#name ⇒ String
Required. The name of the tool, unique within its parent scope (version).
Corresponds to the JSON property name
3441 3442 3443 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 3441 def name @name end |
#output_schema ⇒ Google::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 |
#title ⇒ String
Optional. Optional title for the tool.
Corresponds to the JSON property title
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 |