Skip to content

Commit

Permalink
Google Sheets Source: Expose Kamelet data type information (#2035)
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Cosentino <ancosen@gmail.com>
  • Loading branch information
oscerd committed May 13, 2024
1 parent c8fc4ee commit d8c7421
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
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

0 comments on commit d8c7421

Please sign in to comment.