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.
3582 3583 3584 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 3582 def initialize(**args) update!(**args) end |
Instance Attribute Details
#annotations ⇒ Google::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 |
#description ⇒ String
Optional. Description of what the tool does.
Corresponds to the JSON property description
3560 3561 3562 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 3560 def description @description end |
#input_schema ⇒ Google::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 |
#name ⇒ String
Required. The name of the tool, unique within its parent scope (version).
Corresponds to the JSON property name
3570 3571 3572 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 3570 def name @name end |
#output_schema ⇒ Google::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 |
#title ⇒ String
Optional. Optional title for the tool.
Corresponds to the JSON property title
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 |