Files
Flowise/packages/components/credentials/GoogleAuth.credential.ts
T
2023-08-07 12:11:35 +09:00

34 lines
1.1 KiB
TypeScript

import { INodeParams, INodeCredential } from '../src/Interface'
class GoogleVertexAuth implements INodeCredential {
label: string
name: string
version: number
inputs: INodeParams[]
constructor() {
this.label = 'Google Vertex Auth'
this.name = 'googleVertexAuth'
this.version = 1.0
this.inputs = [
{
label: 'Google Application Credential File Path',
name: 'googleApplicationCredentialFilePath',
description: 'Path to your google application credential json file',
placeholder: 'your-path/application_default_credentials.json',
type: 'string'
},
{
label: 'Project ID',
name: 'projectID',
description: 'Project ID of GCP. If not provided, it will be read from the credential file',
type: 'string',
optional: true,
additionalParams: true
}
]
}
}
module.exports = { credClass: GoogleVertexAuth }