Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #877 fix #876 : range is a string, correct usage of spreadsheetId… #878

Merged
merged 1 commit into from
Apr 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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