feat(GoogleBigQuery Node): Add support for service account authentication (#3128)

*  Enable service account authentication with the BigQuery node

* 🔨 fixed auth issue with key, fixed nodelinter issues

*  added continue on fail

*  Improvements

Co-authored-by: Mark Steve Samson <marksteve@thinkingmachin.es>
Co-authored-by: ricardo <ricardoespinoza105@gmail.com>
This commit is contained in:
Michael Kret
2022-04-18 19:46:50 +03:00
committed by GitHub
parent 794ad7c756
commit ac5f357001
3 changed files with 186 additions and 68 deletions

View File

@@ -7,6 +7,7 @@ export const recordOperations: INodeProperties[] = [
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: [
@@ -18,16 +19,16 @@ export const recordOperations: INodeProperties[] = [
{
name: 'Create',
value: 'create',
description: 'Create a new record.',
description: 'Create a new record',
},
{
name: 'Get All',
value: 'getAll',
description: 'Retrieve all records.',
description: 'Retrieve all records',
},
],
default: 'create',
description: 'Operation to perform.',
description: 'Operation to perform',
},
];
@@ -54,7 +55,7 @@ export const recordFields: INodeProperties[] = [
},
},
default: '',
description: 'ID of the project to create the record in.',
description: 'ID of the project to create the record in',
},
{
displayName: 'Dataset ID',
@@ -78,7 +79,7 @@ export const recordFields: INodeProperties[] = [
},
},
default: '',
description: 'ID of the dataset to create the record in.',
description: 'ID of the dataset to create the record in',
},
{
displayName: 'Table ID',
@@ -103,7 +104,7 @@ export const recordFields: INodeProperties[] = [
},
},
default: '',
description: 'ID of the table to create the record in.',
description: 'ID of the table to create the record in',
},
{
displayName: 'Columns',
@@ -122,7 +123,7 @@ export const recordFields: INodeProperties[] = [
default: '',
required: true,
placeholder: 'id,name,description',
description: 'Comma-separated list of the item properties to use as columns.',
description: 'Comma-separated list of the item properties to use as columns',
},
{
displayName: 'Options',
@@ -146,21 +147,21 @@ export const recordFields: INodeProperties[] = [
name: 'ignoreUnknownValues',
type: 'boolean',
default: false,
description: 'Ignore row values that do not match the schema.',
description: 'Whether to gnore row values that do not match the schema',
},
{
displayName: 'Skip Invalid Rows',
name: 'skipInvalidRows',
type: 'boolean',
default: false,
description: 'Skip rows with values that do not match the schema.',
description: 'Whether to skip rows with values that do not match the schema',
},
{
displayName: 'Template Suffix',
name: 'templateSuffix',
type: 'string',
default: '',
description: 'Create a new table based on the destination table and insert rows into the new table. The new table will be named <code>{destinationTable}{templateSuffix}</code>.',
description: 'Create a new table based on the destination table and insert rows into the new table. The new table will be named <code>{destinationTable}{templateSuffix}</code>',
},
{
displayName: 'Trace ID',
@@ -194,7 +195,7 @@ export const recordFields: INodeProperties[] = [
},
},
default: '',
description: 'ID of the project to retrieve all rows from.',
description: 'ID of the project to retrieve all rows from',
},
{
displayName: 'Dataset ID',
@@ -218,7 +219,7 @@ export const recordFields: INodeProperties[] = [
},
},
default: '',
description: 'ID of the dataset to retrieve all rows from.',
description: 'ID of the dataset to retrieve all rows from',
},
{
displayName: 'Table ID',
@@ -243,7 +244,7 @@ export const recordFields: INodeProperties[] = [
},
},
default: '',
description: 'ID of the table to retrieve all rows from.',
description: 'ID of the table to retrieve all rows from',
},
{
displayName: 'Return All',
@@ -260,7 +261,7 @@ export const recordFields: INodeProperties[] = [
},
},
default: false,
description: 'If all results should be returned or only up to a given limit.',
description: 'Whether to return all results or only up to a given limit',
},
{
displayName: 'Limit',
@@ -283,8 +284,8 @@ export const recordFields: INodeProperties[] = [
minValue: 1,
maxValue: 500,
},
default: 100,
description: 'How many results to return.',
default: 50,
description: 'Max number of results to return',
},
{
displayName: 'Simplify Response',
@@ -301,7 +302,7 @@ export const recordFields: INodeProperties[] = [
},
},
default: true,
description: 'Return a simplified version of the response instead of the raw data.',
description: 'Whether to return a simplified version of the response instead of the raw data',
},
{
displayName: 'Options',
@@ -325,7 +326,7 @@ export const recordFields: INodeProperties[] = [
name: 'selectedFields',
type: 'string',
default: '',
description: 'Subset of fields to return, supports select into sub fields. Example: <code>selectedFields = "a,e.d.f"</code>.',
description: 'Subset of fields to return, supports select into sub fields. Example: <code>selectedFields = "a,e.d.f"</code>',
},
// {
// displayName: 'Use Int64 Timestamp',