Agent Registry Endpoint V1 API - Class Google::Cloud::AgentRegistryEndpoint::V1::AgentRegistryEndpoint::Rest::Client (v0.1.0)

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::Configuration

Configure the AgentRegistryEndpoint Client class.

See Configuration for a description of the configuration fields.

Yields
  • (config) — Configure the Client client.
Yield Parameter
Example
# 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::Configuration

Configure 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.

Yields
  • (config) — Configure the Client client.
Yield Parameter

#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::Endpoint

Gets an endpoint active within the localized dataplane of the AI Application.

Overloads
def get_ai_application_endpoint(request, options = nil) -> ::Google::Cloud::AgentRegistry::V1::Endpoint
Pass arguments to get_ai_application_endpoint via a request object, either of type GetAiApplicationEndpointRequest or an equivalent Hash.
Parameters
  • 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::Endpoint
Pass arguments to get_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).
Parameter
  • name (::String) — Required. The resource name of the endpoint, in the format projects/{project}/locations/{location}/aiApplications/{ai_application}/endpoints/{endpoint}.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.
Example

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::McpServer

Gets an MCP server active within the localized dataplane of the AI Application.

Overloads
def get_ai_application_mcp_server(request, options = nil) -> ::Google::Cloud::AgentRegistry::V1::McpServer
Pass arguments to get_ai_application_mcp_server via a request object, either of type GetAiApplicationMcpServerRequest or an equivalent Hash.
Parameters
def get_ai_application_mcp_server(name: nil) -> ::Google::Cloud::AgentRegistry::V1::McpServer
Pass arguments to get_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).
Parameter
  • name (::String) — Required. The resource name of the MCP server, in the format projects/{project}/locations/{location}/aiApplications/{ai_application}/mcpServers/{mcp_server}.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.
Example

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| ... } -> Client

Create a new AgentRegistryEndpoint REST client object.

Yields
  • (config) — Configure the AgentRegistryEndpoint client.
Yield Parameter
Returns
  • (Client) — a new instance of Client
Example
# 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.

Overloads
def list_ai_application_agents(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::AgentRegistry::V1::Agent>
Pass arguments to list_ai_application_agents via a request object, either of type ListAiApplicationAgentsRequest or an equivalent Hash.
Parameters
  • 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>
Pass arguments to 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).
Parameters
  • 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 ListAiApplicationAgents call. Provide this to retrieve the subsequent page.

    When paginating, all other parameters provided to ListAiApplicationAgents must match the call that provided the page token.

Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.
Example

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.

Overloads
def list_ai_application_endpoints(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::AgentRegistry::V1::Endpoint>
Pass arguments to list_ai_application_endpoints via a request object, either of type ListAiApplicationEndpointsRequest or an equivalent Hash.
Parameters
def list_ai_application_endpoints(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::AgentRegistry::V1::Endpoint>
Pass arguments to 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).
Parameters
  • 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 ListAiApplicationEndpoints call. Provide this to retrieve the subsequent page.

    When paginating, all other parameters provided to ListAiApplicationEndpoints must match the call that provided the page token.

Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.
Example

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.

Overloads
def list_ai_application_mcp_servers(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::AgentRegistry::V1::McpServer>
Pass arguments to list_ai_application_mcp_servers via a request object, either of type ListAiApplicationMcpServersRequest or an equivalent Hash.
Parameters
def list_ai_application_mcp_servers(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::AgentRegistry::V1::McpServer>
Pass arguments to 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).
Parameters
  • 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 ListAiApplicationMcpServers call. Provide this to retrieve the subsequent page.

    When paginating, all other parameters provided to ListAiApplicationMcpServers must match the call that provided the page token.

Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.
Example

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() -> Logger

The logger used for request/response debug logging.

Returns
  • (Logger)

#universe_domain

def universe_domain() -> String

The effective universe domain

Returns
  • (String)