Skip to content

Commit

Permalink
fix apache#877 fix apache#876 : range is a string, correct usage of s…
Browse files Browse the repository at this point in the history
…preadsheetId option.

Google Sheets Source Kamelet: Range is a String and not a boolean
Google Sheets Source Kamelet: Review the Kamelet
  • Loading branch information
valdar committed Apr 5, 2022
1 parent 32ef0f3 commit 74138da
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 28 deletions.
19 changes: 5 additions & 14 deletions kamelets/google-sheets-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,13 @@ spec:
description: |-
Receive data from Google Sheets.
required:
- index
- spreadsheetId
- clientId
- accessToken
- refreshToken
- clientSecret
- applicationName
type: object
properties:
index:
title: Index
description: An index for the google sheets endpoint
type: string
spreadsheetId:
title: Spreadsheet ID
description: The Spreadsheet ID to be used as events source
Expand Down Expand Up @@ -102,11 +96,9 @@ spec:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
default: true
range:
title: Consume from now
title: Cells Range to get Data from
description: the range of rows and columns in a sheet to get data from.
type: boolean
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
type: string
example: "A1:B3"
types:
out:
Expand All @@ -117,17 +109,16 @@ spec:
- "camel:google-sheets"
template:
from:
uri: "google-sheets-stream://{{index}}"
uri: "google-sheets-stream://{{spreadsheetId}}"
parameters:
clientId: "{{clientId}}"
spreadsheetId: "{{spreadsheetId}}"
accessToken: "{{accessToken}}"
refreshToken: "{{refreshToken}}"
clientSecret: "{{clientSecret}}"
delay: "{{delay}}"
applicationName: "{{applicationName}}"
applicationName: "{{?applicationName}}"
splitResults: "{{splitResults}}"
range: "{{range}}"
range: "{{?range}}"
repeatCount: "{{?repeatCount}}"
steps:
- marshal:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,13 @@ spec:
description: |-
Receive data from Google Sheets.
required:
- index
- spreadsheetId
- clientId
- accessToken
- refreshToken
- clientSecret
- applicationName
type: object
properties:
index:
title: Index
description: An index for the google sheets endpoint
type: string
spreadsheetId:
title: Spreadsheet ID
description: The Spreadsheet ID to be used as events source
Expand Down Expand Up @@ -102,11 +96,9 @@ spec:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
default: true
range:
title: Consume from now
title: Cells Range to get Data from
description: the range of rows and columns in a sheet to get data from.
type: boolean
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
type: string
example: "A1:B3"
types:
out:
Expand All @@ -117,17 +109,16 @@ spec:
- "camel:google-sheets"
template:
from:
uri: "google-sheets-stream://{{index}}"
uri: "google-sheets-stream://{{spreadsheetId}}"
parameters:
clientId: "{{clientId}}"
spreadsheetId: "{{spreadsheetId}}"
accessToken: "{{accessToken}}"
refreshToken: "{{refreshToken}}"
clientSecret: "{{clientSecret}}"
delay: "{{delay}}"
applicationName: "{{applicationName}}"
applicationName: "{{?applicationName}}"
splitResults: "{{splitResults}}"
range: "{{range}}"
range: "{{?range}}"
repeatCount: "{{?repeatCount}}"
steps:
- marshal:
Expand Down

0 comments on commit 74138da

Please sign in to comment.