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 — SecretManagerClient | ADK for TypeScript: API Reference - v2.5.0

  • SecretManagerClient

Class SecretManagerClient

Reads secrets from Google Cloud Secret Manager.

The client authenticates with serviceAccountJson when it is set, then with authToken, and otherwise with application default credentials.

@google-cloud/secret-manager is an optional peer dependency. It is loaded on the first call to SecretManagerClient.getSecret, so constructing the client does not require it.

  • Defined in core/src/tools/apihub_tool/clients/secret_client.ts:36

Constructors

constructor

  • new SecretManagerClient(
        options?: SecretManagerClientOptions,
    ): SecretManagerClient

    Parameters

    • options: SecretManagerClientOptions = {}

    Returns SecretManagerClient

    Throws

    Invalid service account JSON: ... when serviceAccountJson does not parse.

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

Methods

getSecret

  • getSecret(resourceName: string): Promise<string>

    Returns the payload of a secret version as a UTF-8 string.

    Parameters

    • resourceName: string

      The secret version, in the form projects/{project}/secrets/{secret}/versions/{version}. Use latest as the version to read the newest one.

    Returns Promise<string>

    Throws

    When default credentials are needed and cannot be resolved, or when Secret Manager returns an error, such as a missing secret or a denied permission.

    • Defined in core/src/tools/apihub_tool/clients/secret_client.ts:63
Constructors
constructor
Methods
getSecret
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.