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.
837 838 839 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 837 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
794 795 796 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 794 def attributes @attributes end |
#create_time ⇒ String
Output only. Create time.
Corresponds to the JSON property createTime
799 800 801 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 799 def create_time @create_time end |
#description ⇒ String
Output only. The description of the MCP Server.
Corresponds to the JSON property description
804 805 806 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 804 def description @description end |
#display_name ⇒ String
Output only. The display name of the MCP Server.
Corresponds to the JSON property displayName
809 810 811 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 809 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
814 815 816 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 814 def interfaces @interfaces end |
#mcp_server_id ⇒ String
Output only. A stable, globally unique identifier for MCP Servers.
Corresponds to the JSON property mcpServerId
819 820 821 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 819 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`
825 826 827 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 825 def name @name end |
#tools ⇒ Array<Google::Apis::AgentregistryV1alpha::Tool>
Output only. Tools provided by the MCP Server.
Corresponds to the JSON property tools
830 831 832 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 830 def tools @tools end |
#update_time ⇒ String
Output only. Update time.
Corresponds to the JSON property updateTime
835 836 837 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 835 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
842 843 844 845 846 847 848 849 850 851 852 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 842 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 |