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

Google Sheets Source: Expose Kamelet data type information #2035

Merged
merged 1 commit into from
May 13, 2024
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
27 changes: 27 additions & 0 deletions kamelets/google-sheets-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,33 @@ spec:
Custom column names are supported in order to use custom property names instead of generic row (A-Z) or column (1-n) coordinates.
The produced Json struct is ready to be transformed back into a proper Google Sheets ValueRange object that can be used in an update/append values operation.
mediaType: application/json
cloudevents:
format: "google-sheets-stream:application-cloudevents"
description: |-
Output data type represents Google Sheets Stream response as CloudEvent V1. The data type sets Camel specific CloudEvent headers on the exchange with
respective data from the Spreasheet and its derived object.
headers:
CamelCloudEventID:
title: CloudEvent ID
description: The Camel exchange id set as event id
type: string
CamelCloudEventType:
title: CloudEvent Type
description: The event type
default: "org.apache.camel.event.google.sheets.stream.consume"
type: string
CamelCloudEventSource:
title: CloudEvent Source
description: The event source. By default, the Spreadsheet Id with prefix "google.sheets.stream.".
type: string
CamelCloudEventSubject:
title: CloudEvent Subject
description: The event subject. Usually the Spreadsheet URL.
type: string
CamelCloudEventTime:
title: CloudEvent Time
description: The exchange creation timestamp as event time.
type: string
dependencies:
- "camel:core"
- "camel:jackson"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,33 @@ spec:
Custom column names are supported in order to use custom property names instead of generic row (A-Z) or column (1-n) coordinates.
The produced Json struct is ready to be transformed back into a proper Google Sheets ValueRange object that can be used in an update/append values operation.
mediaType: application/json
cloudevents:
format: "google-sheets-stream:application-cloudevents"
description: |-
Output data type represents Google Sheets Stream response as CloudEvent V1. The data type sets Camel specific CloudEvent headers on the exchange with
respective data from the Spreasheet and its derived object.
headers:
CamelCloudEventID:
title: CloudEvent ID
description: The Camel exchange id set as event id
type: string
CamelCloudEventType:
title: CloudEvent Type
description: The event type
default: "org.apache.camel.event.google.sheets.stream.consume"
type: string
CamelCloudEventSource:
title: CloudEvent Source
description: The event source. By default, the Spreadsheet Id with prefix "google.sheets.stream.".
type: string
CamelCloudEventSubject:
title: CloudEvent Subject
description: The event subject. Usually the Spreadsheet URL.
type: string
CamelCloudEventTime:
title: CloudEvent Time
description: The exchange creation timestamp as event time.
type: string
dependencies:
- "camel:core"
- "camel:jackson"
Expand Down