GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • ADK for TypeScript: API Reference

This view

  • Original page
  • New address

GeezerVison is showing adk.dev — APIHubToolsetOptions | ADK for TypeScript: API Reference - v2.5.0

  • APIHubToolsetOptions

Interface APIHubToolsetOptions

Options for APIHubToolset.

interface APIHubToolsetOptions {
    accessToken?: string;
    apihubClient?: BaseAPIHubClient;
    apihubResourceName: string;
    authCredential?: AuthCredential;
    authScheme?: SecuritySchemeObject;
    description?: string;
    lazyLoadSpec?: boolean;
    name?: string;
    serviceAccountJson?: string;
    toolFilter?:
        | string[]
        | ((tool: BaseTool, readonlyContext?: ReadonlyContext) => boolean);
}
  • Defined in core/src/tools/apihub_tool/apihub_toolset.ts:19

Properties

OptionalaccessToken

accessToken?: string

An OAuth access token for API Hub, for example the output of gcloud auth print-access-token. Ignored when apihubClient is set.

  • Defined in core/src/tools/apihub_tool/apihub_toolset.ts:34

OptionalapihubClient

apihubClient?: BaseAPIHubClient

The client that fetches the spec. Defaults to an APIHubClient built from accessToken and serviceAccountJson.

  • Defined in core/src/tools/apihub_tool/apihub_toolset.ts:64

apihubResourceName

apihubResourceName: string

The API Hub resource to build tools from. It must name an API, and may also name a version and a spec, for example projects/my-project/locations/us-central1/apis/my-api. An API Hub console URL is also accepted.

When it names a spec, that spec is used. Otherwise the first spec of the named version, or of the first version of the named API, is used.

  • Defined in core/src/tools/apihub_tool/apihub_toolset.ts:29

OptionalauthCredential

authCredential?: AuthCredential

Auth credential applied to every tool the spec produces.

  • Defined in core/src/tools/apihub_tool/apihub_toolset.ts:59

OptionalauthScheme

authScheme?: SecuritySchemeObject

Auth scheme applied to every tool the spec produces.

  • Defined in core/src/tools/apihub_tool/apihub_toolset.ts:57

Optionaldescription

description?: string

The toolset description. When empty, it is set from the spec's info.description.

  • Defined in core/src/tools/apihub_tool/apihub_toolset.ts:50

OptionallazyLoadSpec

lazyLoadSpec?: boolean

When true, the spec is fetched on the first call to getTools instead of when the toolset is constructed.

  • Defined in core/src/tools/apihub_tool/apihub_toolset.ts:55

Optionalname

name?: string

The toolset name. When empty, it is set from the spec's info.title in snake_case, or unnamed when the spec has no title.

  • Defined in core/src/tools/apihub_tool/apihub_toolset.ts:45

OptionalserviceAccountJson

serviceAccountJson?: string

The content of a service account key file, as a JSON string, used to authenticate to API Hub when accessToken is not set. Ignored when apihubClient is set.

  • Defined in core/src/tools/apihub_tool/apihub_toolset.ts:40

OptionaltoolFilter

toolFilter?:
    | string[]
    | ((tool: BaseTool, readonlyContext?: ReadonlyContext) => boolean)

Filter selecting which tools from the spec are exposed by getTools. Accepts a list of tool names or a ToolPredicate function.

  • Defined in core/src/tools/apihub_tool/apihub_toolset.ts:69
Properties
accessTokenapihubClientapihubResourceNameauthCredentialauthSchemedescriptionlazyLoadSpecnameserviceAccountJsontoolFilter
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.