GeezerVison is showing adk.dev — IntegrationClient | ADK for TypeScript: API Reference - v2.5.0
A client for Google Cloud Application Integration.
It returns the OpenAPI spec of an integration API trigger, or builds one for
the entity operations and actions of an Integration Connectors connection.
Constructors
constructor
-
Returns IntegrationClient
Methods
getOpenApiSpecForConnection
-
getOpenApiSpecForConnection( toolName?: string, toolInstructions?: string,): Promise<ConnectorSpec>
Builds an OpenAPI spec for the entity operations and actions of the
connection.
Every operation becomes a POST to the ExecuteConnection integration,
with a path fragment that keeps the paths distinct.
Parameters
- toolName: string = ''
Prefix of every generated operationId.
- toolInstructions: string = ''
Text appended to every operation description.
Throws
Error When neither entity operations nor actions are configured,
or an operation is not one of create, update, delete, list or get.
getOpenApiSpecForIntegration
-
getOpenApiSpecForIntegration(): Promise<JsonObject>
Fetches the OpenAPI spec Application Integration generates for the API
trigger of the integration.
Throws
Error For a rejected request, a missing credential, or a response
that carries no parseable spec.