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.
1010 1011 1012 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1010 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
967 968 969 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 967 def attributes @attributes end |
#create_time ⇒ String
Output only. Create time.
Corresponds to the JSON property createTime
972 973 974 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 972 def create_time @create_time end |
#description ⇒ String
Output only. The description of the MCP Server.
Corresponds to the JSON property description
977 978 979 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 977 def description @description end |
#display_name ⇒ String
Output only. The display name of the MCP Server.
Corresponds to the JSON property displayName
982 983 984 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 982 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
987 988 989 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 987 def interfaces @interfaces end |
#mcp_server_id ⇒ String
Output only. A stable, globally unique identifier for MCP Servers.
Corresponds to the JSON property mcpServerId
992 993 994 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 992 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`
998 999 1000 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 998 def name @name end |
#tools ⇒ Array<Google::Apis::AgentregistryV1alpha::Tool>
Output only. Tools provided by the MCP Server.
Corresponds to the JSON property tools
1003 1004 1005 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1003 def tools @tools end |
#update_time ⇒ String
Output only. Update time.
Corresponds to the JSON property updateTime
1008 1009 1010 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1008 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1015 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 |