Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

AgentRegistry

import { AgentRegistry } from "https://googleapis.deno.dev/v1/agentregistry:v1alpha.ts";

Agent Registry is a centralized, unified catalog that lets you store, discover, and govern Model Context Protocol (MCP) servers, tools, and AI agents within Google Cloud.

class AgentRegistry {
constructor(client?: CredentialsClient, baseUrl?: string);
async projectsLocationsAgentsGet(name: string): Promise<Agent>;
async projectsLocationsAgentsList(parent: string, opts?: ProjectsLocationsAgentsListOptions): Promise<ListAgentsResponse>;
async projectsLocationsEndpointsGet(name: string): Promise<Endpoint>;
async projectsLocationsEndpointsList(parent: string, opts?: ProjectsLocationsEndpointsListOptions): Promise<ListEndpointsResponse>;
async projectsLocationsGet(name: string): Promise<Location>;
async projectsLocationsList(name: string, opts?: ProjectsLocationsListOptions): Promise<ListLocationsResponse>;
async projectsLocationsMcpServersGet(name: string): Promise<McpServer>;
async projectsLocationsMcpServersList(parent: string, opts?: ProjectsLocationsMcpServersListOptions): Promise<ListMcpServersResponse>;
async projectsLocationsOperationsCancel(name: string, req: CancelOperationRequest): Promise<Empty>;
async projectsLocationsOperationsDelete(name: string): Promise<Empty>;
async projectsLocationsOperationsGet(name: string): Promise<Operation>;
async projectsLocationsOperationsList(name: string, opts?: ProjectsLocationsOperationsListOptions): Promise<ListOperationsResponse>;
async projectsLocationsServicesCreate(
parent: string,
req: Service,
): Promise<Operation>;
async projectsLocationsServicesDelete(name: string, opts?: ProjectsLocationsServicesDeleteOptions): Promise<Operation>;
async projectsLocationsServicesGet(name: string): Promise<Service>;
async projectsLocationsServicesList(parent: string, opts?: ProjectsLocationsServicesListOptions): Promise<ListServicesResponse>;
async projectsLocationsServicesPatch(
name: string,
req: Service,
): Promise<Operation>;
}

§Constructors

§
new AgentRegistry(client?: CredentialsClient, baseUrl?: string)
[src]

§Methods

§
projectsLocationsAgentsGet(name: string): Promise<Agent>
[src]

Gets details of a single Agent.

@param name

Required. Name of the resource

§
projectsLocationsAgentsList(parent: string, opts?: ProjectsLocationsAgentsListOptions): Promise<ListAgentsResponse>
[src]

Lists Agents in a given project and location.

@param parent

Required. Parent value for ListAgentsRequest

§
projectsLocationsEndpointsGet(name: string): Promise<Endpoint>
[src]

Gets details of a single Endpoint.

@param name

Required. The name of the endpoint to retrieve. Format: projects/{project}/locations/{location}/endpoints/{endpoint}

§
projectsLocationsEndpointsList(parent: string, opts?: ProjectsLocationsEndpointsListOptions): Promise<ListEndpointsResponse>
[src]

Lists Endpoints in a given project and location.

@param parent

Required. The project and location to list endpoints in. Expected format: projects/{project}/locations/{location}.

§
projectsLocationsGet(name: string): Promise<Location>
[src]

Gets information about a location.

@param name

Resource name for the location.

§
projectsLocationsList(name: string, opts?: ProjectsLocationsListOptions): Promise<ListLocationsResponse>
[src]

Lists information about the supported locations for this service. This method lists locations based on the resource scope provided in the [ListLocationsRequest.name] field: * Global locations: If name is empty, the method lists the public locations available to all projects. * Project-specific locations: If name follows the format projects/{project}, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project. For gRPC and client library implementations, the resource name is passed as the name field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version.

@param name

The resource that owns the locations collection, if applicable.

§
projectsLocationsMcpServersGet(name: string): Promise<McpServer>
[src]

Gets details of a single McpServer.

@param name

Required. Name of the resource

§
projectsLocationsMcpServersList(parent: string, opts?: ProjectsLocationsMcpServersListOptions): Promise<ListMcpServersResponse>
[src]

Lists McpServers in a given project and location.

@param parent

Required. Parent value for ListMcpServersRequest. Format: projects/{project}/locations/{location}.

§
projectsLocationsOperationsCancel(name: string, req: CancelOperationRequest): Promise<Empty>
[src]

Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.

@param name

The name of the operation resource to be cancelled.

§
projectsLocationsOperationsDelete(name: string): Promise<Empty>
[src]

Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.

@param name

The name of the operation resource to be deleted.

§
projectsLocationsOperationsGet(name: string): Promise<Operation>
[src]

Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.

@param name

The name of the operation resource.

§
projectsLocationsOperationsList(name: string, opts?: ProjectsLocationsOperationsListOptions): Promise<ListOperationsResponse>
[src]

Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.

@param name

The name of the operation's parent resource.

§
projectsLocationsServicesCreate(parent: string, req: Service, opts?: ProjectsLocationsServicesCreateOptions): Promise<Operation>
[src]

Creates a new Service in a given project and location.

@param parent

Required. The project and location to create the Service in. Expected format: projects/{project}/locations/{location}.

§
projectsLocationsServicesDelete(name: string, opts?: ProjectsLocationsServicesDeleteOptions): Promise<Operation>
[src]

Deletes a single Service.

@param name

Required. The name of the Service. Format: projects/{project}/locations/{location}/services/{service}.

§
projectsLocationsServicesGet(name: string): Promise<Service>
[src]

Gets details of a single Service.

@param name

Required. The name of the Service. Format: projects/{project}/locations/{location}/services/{service}.

§
projectsLocationsServicesList(parent: string, opts?: ProjectsLocationsServicesListOptions): Promise<ListServicesResponse>
[src]

Lists Services in a given project and location.

@param parent

Required. The project and location to list services in. Expected format: projects/{project}/locations/{location}.

§
projectsLocationsServicesPatch(name: string, req: Service, opts?: ProjectsLocationsServicesPatchOptions): Promise<Operation>
[src]

Updates the parameters of a single Service.

@param name

Identifier. The resource name of the Service. Format: projects/{project}/locations/{location}/services/{service}.