Reference documentation and code samples for the Agent Registry Endpoint V1 API class Google::Cloud::AgentRegistryEndpoint::V1::AgentRegistryEndpoint::Rest::Client.
REST client for the AgentRegistryEndpoint service.
The localized dataplane API for Agent Registry.
This service provides access to the local catalog of agents and tools, allowing agents at runtime to quickly and securely look up peer agents or tools without querying the global control plane.
Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::ConfigurationConfigure the AgentRegistryEndpoint Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all AgentRegistryEndpoint clients ::Google::Cloud::AgentRegistryEndpoint::V1::AgentRegistryEndpoint::Rest::Client.configure do |config| config.timeout = 10.0 end
#configure
def configure() { |config| ... } -> Client::ConfigurationConfigure the AgentRegistryEndpoint Client instance.
The configuration is set to the derived mode, meaning that values can be changed, but structural changes (adding new fields, etc.) are not allowed. Structural changes should be made on Client.configure.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
#get_ai_application_endpoint
def get_ai_application_endpoint(request, options = nil) -> ::Google::Cloud::AgentRegistry::V1::Endpoint
def get_ai_application_endpoint(name: nil) -> ::Google::Cloud::AgentRegistry::V1::EndpointGets an endpoint active within the localized dataplane of the AI Application.
def get_ai_application_endpoint(request, options = nil) -> ::Google::Cloud::AgentRegistry::V1::Endpointget_ai_application_endpoint via a request object, either of type
GetAiApplicationEndpointRequest or an equivalent Hash.
- request (::Google::Cloud::AgentRegistryEndpoint::V1::GetAiApplicationEndpointRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_ai_application_endpoint(name: nil) -> ::Google::Cloud::AgentRegistry::V1::Endpointget_ai_application_endpoint via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The resource name of the endpoint, in the format
projects/{project}/locations/{location}/aiApplications/{ai_application}/endpoints/{endpoint}.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::AgentRegistry::V1::Endpoint)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/agent_registry_endpoint/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AgentRegistryEndpoint::V1::AgentRegistryEndpoint::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AgentRegistryEndpoint::V1::GetAiApplicationEndpointRequest.new # Call the get_ai_application_endpoint method. result = client.get_ai_application_endpoint request # The returned object is of type Google::Cloud::AgentRegistry::V1::Endpoint. p result
#get_ai_application_mcp_server
def get_ai_application_mcp_server(request, options = nil) -> ::Google::Cloud::AgentRegistry::V1::McpServer
def get_ai_application_mcp_server(name: nil) -> ::Google::Cloud::AgentRegistry::V1::McpServerGets an MCP server active within the localized dataplane of the AI Application.
def get_ai_application_mcp_server(request, options = nil) -> ::Google::Cloud::AgentRegistry::V1::McpServerget_ai_application_mcp_server via a request object, either of type
GetAiApplicationMcpServerRequest or an equivalent Hash.
- request (::Google::Cloud::AgentRegistryEndpoint::V1::GetAiApplicationMcpServerRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_ai_application_mcp_server(name: nil) -> ::Google::Cloud::AgentRegistry::V1::McpServerget_ai_application_mcp_server via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The resource name of the MCP server, in the format
projects/{project}/locations/{location}/aiApplications/{ai_application}/mcpServers/{mcp_server}.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::AgentRegistry::V1::McpServer)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/agent_registry_endpoint/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AgentRegistryEndpoint::V1::AgentRegistryEndpoint::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AgentRegistryEndpoint::V1::GetAiApplicationMcpServerRequest.new # Call the get_ai_application_mcp_server method. result = client.get_ai_application_mcp_server request # The returned object is of type Google::Cloud::AgentRegistry::V1::McpServer. p result
#initialize
def initialize() { |config| ... } -> ClientCreate a new AgentRegistryEndpoint REST client object.
- (config) — Configure the AgentRegistryEndpoint client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# Create a client using the default configuration client = ::Google::Cloud::AgentRegistryEndpoint::V1::AgentRegistryEndpoint::Rest::Client.new # Create a client using a custom configuration client = ::Google::Cloud::AgentRegistryEndpoint::V1::AgentRegistryEndpoint::Rest::Client.new do |config| config.timeout = 10.0 end
#list_ai_application_agents
def list_ai_application_agents(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::AgentRegistry::V1::Agent>
def list_ai_application_agents(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::AgentRegistry::V1::Agent>Lists agents active within the localized dataplane of the AI Application.
def list_ai_application_agents(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::AgentRegistry::V1::Agent>list_ai_application_agents via a request object, either of type
ListAiApplicationAgentsRequest or an equivalent Hash.
- request (::Google::Cloud::AgentRegistryEndpoint::V1::ListAiApplicationAgentsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_ai_application_agents(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::AgentRegistry::V1::Agent>list_ai_application_agents via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. The parent resource name, in the format
projects/{project}/locations/{location}/aiApplications/{ai_application}. -
page_size (::Integer) — Optional. The maximum number of agents to return. The service may return
fewer than this value. If unspecified or set to
0, at most 50 agents are returned. The maximum value is 100; values above 100 are coerced to 100. -
page_token (::String) — Optional. A page token, received from a previous
ListAiApplicationAgentscall. Provide this to retrieve the subsequent page.When paginating, all other parameters provided to
ListAiApplicationAgentsmust match the call that provided the page token.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::AgentRegistry::V1::Agent>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::AgentRegistry::V1::Agent>)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/agent_registry_endpoint/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AgentRegistryEndpoint::V1::AgentRegistryEndpoint::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AgentRegistryEndpoint::V1::ListAiApplicationAgentsRequest.new # Call the list_ai_application_agents method. result = client.list_ai_application_agents request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::AgentRegistry::V1::Agent. p item end
#list_ai_application_endpoints
def list_ai_application_endpoints(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::AgentRegistry::V1::Endpoint>
def list_ai_application_endpoints(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::AgentRegistry::V1::Endpoint>Lists endpoints active within the localized dataplane of the AI Application.
def list_ai_application_endpoints(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::AgentRegistry::V1::Endpoint>list_ai_application_endpoints via a request object, either of type
ListAiApplicationEndpointsRequest or an equivalent Hash.
- request (::Google::Cloud::AgentRegistryEndpoint::V1::ListAiApplicationEndpointsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_ai_application_endpoints(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::AgentRegistry::V1::Endpoint>list_ai_application_endpoints via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. The parent resource name, in the format
projects/{project}/locations/{location}/aiApplications/{ai_application}. -
page_size (::Integer) — Optional. The maximum number of endpoints to return. The service may return
fewer than this value. If unspecified or set to
0, at most 50 endpoints are returned. The maximum value is 100; values above 100 are coerced to 100. -
page_token (::String) — Optional. A page token, received from a previous
ListAiApplicationEndpointscall. Provide this to retrieve the subsequent page.When paginating, all other parameters provided to
ListAiApplicationEndpointsmust match the call that provided the page token.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::AgentRegistry::V1::Endpoint>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::AgentRegistry::V1::Endpoint>)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/agent_registry_endpoint/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AgentRegistryEndpoint::V1::AgentRegistryEndpoint::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AgentRegistryEndpoint::V1::ListAiApplicationEndpointsRequest.new # Call the list_ai_application_endpoints method. result = client.list_ai_application_endpoints request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::AgentRegistry::V1::Endpoint. p item end
#list_ai_application_mcp_servers
def list_ai_application_mcp_servers(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::AgentRegistry::V1::McpServer>
def list_ai_application_mcp_servers(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::AgentRegistry::V1::McpServer>Lists MCP servers active within the localized dataplane of the AI Application.
def list_ai_application_mcp_servers(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::AgentRegistry::V1::McpServer>list_ai_application_mcp_servers via a request object, either of type
ListAiApplicationMcpServersRequest or an equivalent Hash.
- request (::Google::Cloud::AgentRegistryEndpoint::V1::ListAiApplicationMcpServersRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_ai_application_mcp_servers(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::AgentRegistry::V1::McpServer>list_ai_application_mcp_servers via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. The parent resource name, in the format
projects/{project}/locations/{location}/aiApplications/{ai_application}. -
page_size (::Integer) — Optional. The maximum number of MCP servers to return. The service may
return fewer than this value. If unspecified or set to
0, at most 50 MCP servers are returned. The maximum value is 100; values above 100 are coerced to 100. -
page_token (::String) — Optional. A page token, received from a previous
ListAiApplicationMcpServerscall. Provide this to retrieve the subsequent page.When paginating, all other parameters provided to
ListAiApplicationMcpServersmust match the call that provided the page token.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::AgentRegistry::V1::McpServer>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::AgentRegistry::V1::McpServer>)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/agent_registry_endpoint/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AgentRegistryEndpoint::V1::AgentRegistryEndpoint::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AgentRegistryEndpoint::V1::ListAiApplicationMcpServersRequest.new # Call the list_ai_application_mcp_servers method. result = client.list_ai_application_mcp_servers request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::AgentRegistry::V1::McpServer. p item end
#logger
def logger() -> LoggerThe logger used for request/response debug logging.
- (Logger)
#universe_domain
def universe_domain() -> StringThe effective universe domain
- (String)