Class: Google::Apis::AgentregistryV1alpha::McpServer
- Inherits:
-
Object
- Object
- Google::Apis::AgentregistryV1alpha::McpServer
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/agentregistry_v1alpha/classes.rb,
lib/google/apis/agentregistry_v1alpha/representations.rb,
lib/google/apis/agentregistry_v1alpha/representations.rb
Overview
Represents an MCP (Model Context Protocol) Server.
Instance Attribute Summary collapse
-
#attributes ⇒ Hash<String,Hash<String,Object>>
Output only.
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
Output only.
-
#display_name ⇒ String
Output only.
-
#interfaces ⇒ Array<Google::Apis::AgentregistryV1alpha::Interface>
Output only.
-
#mcp_server_id ⇒ String
Output only.
-
#name ⇒ String
Identifier.
-
#tools ⇒ Array<Google::Apis::AgentregistryV1alpha::Tool>
Output only.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ McpServer
constructor
A new instance of McpServer.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ McpServer
Returns a new instance of McpServer.
794 795 796 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 794 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attributes ⇒ Hash<String,Hash<String,Object>>
Output only. Attributes of the MCP Server. Valid values: * agentregistry.
googleapis.com/system/RuntimeIdentity: "principal": "principal://..." - the
runtime identity associated with the MCP Server. * agentregistry.googleapis.
com/system/RuntimeReference: "uri": "//..." - the URI of the underlying
resource hosting the MCP Server, for example, the GKE Deployment.
Corresponds to the JSON property attributes
751 752 753 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 751 def attributes @attributes end |
#create_time ⇒ String
Output only. Create time.
Corresponds to the JSON property createTime
756 757 758 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 756 def create_time @create_time end |
#description ⇒ String
Output only. The description of the MCP Server.
Corresponds to the JSON property description
761 762 763 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 761 def description @description end |
#display_name ⇒ String
Output only. The display name of the MCP Server.
Corresponds to the JSON property displayName
766 767 768 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 766 def display_name @display_name end |
#interfaces ⇒ Array<Google::Apis::AgentregistryV1alpha::Interface>
Output only. The connection details for the MCP Server.
Corresponds to the JSON property interfaces
771 772 773 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 771 def interfaces @interfaces end |
#mcp_server_id ⇒ String
Output only. A stable, globally unique identifier for MCP Servers.
Corresponds to the JSON property mcpServerId
776 777 778 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 776 def mcp_server_id @mcp_server_id end |
#name ⇒ String
Identifier. The resource name of the MCP Server. Format: projects/project/
locations/location/mcpServers/mcp_server`.
Corresponds to the JSON propertyname`
782 783 784 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 782 def name @name end |
#tools ⇒ Array<Google::Apis::AgentregistryV1alpha::Tool>
Output only. Tools provided by the MCP Server.
Corresponds to the JSON property tools
787 788 789 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 787 def tools @tools end |
#update_time ⇒ String
Output only. Update time.
Corresponds to the JSON property updateTime
792 793 794 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 792 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
799 800 801 802 803 804 805 806 807 808 809 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 799 def update!(**args) @attributes = args[:attributes] if args.key?(:attributes) @create_time = args[:create_time] if args.key?(:create_time) @description = args[:description] if args.key?(:description) @display_name = args[:display_name] if args.key?(:display_name) @interfaces = args[:interfaces] if args.key?(:interfaces) @mcp_server_id = args[:mcp_server_id] if args.key?(:mcp_server_id) @name = args[:name] if args.key?(:name) @tools = args[:tools] if args.key?(:tools) @update_time = args[:update_time] if args.key?(:update_time) end |