Browse Source

feat: include project id

feat/0523-export-schema
Wing-Kam Wong 3 years ago committed by Raju Udava
parent
commit
1b4e132c4c
  1. 5
      packages/nocodb/src/plugins/gcs/Gcs.ts
  2. 7
      packages/nocodb/src/plugins/gcs/index.ts

5
packages/nocodb/src/plugins/gcs/Gcs.ts

@ -73,6 +73,11 @@ export default class Gcs implements IStorageAdapterV2 {
private_key: this.input.private_key.replace(/\\n/gm, '\n')
};
// default project ID would be used if it is not provided
if (this.input.project_id) {
options.projectId = this.input.project_id
}
this.bucketName = this.input.bucket;
this.storageClient = new Storage(options);

7
packages/nocodb/src/plugins/gcs/index.ts

@ -36,6 +36,13 @@ const config: XcPluginConfig = {
placeholder: 'Private Key',
type: XcType.Password,
required: true
},
{
key: 'project_id',
label: 'Project ID',
placeholder: 'Project ID',
type: XcType.SingleLineText,
required: false
}
],
actions: [

Loading…
Cancel
Save