This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch 2005
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit c66897acce1caa1748ffe4d14668de9eb1887320
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Mon May 13 06:36:08 2024 +0200

    Google Sheets Source: Expose Kamelet data type information
    
    Signed-off-by: Andrea Cosentino <anco...@gmail.com>
---
 kamelets/google-sheets-source.kamelet.yaml         | 27 ++++++++++++++++++++++
 .../kamelets/google-sheets-source.kamelet.yaml     | 27 ++++++++++++++++++++++
 2 files changed, 54 insertions(+)

diff --git a/kamelets/google-sheets-source.kamelet.yaml 
b/kamelets/google-sheets-source.kamelet.yaml
index 51f09798..081af9e9 100644
--- a/kamelets/google-sheets-source.kamelet.yaml
+++ b/kamelets/google-sheets-source.kamelet.yaml
@@ -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"
diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/google-sheets-source.kamelet.yaml
 
b/library/camel-kamelets/src/main/resources/kamelets/google-sheets-source.kamelet.yaml
index 51f09798..081af9e9 100644
--- 
a/library/camel-kamelets/src/main/resources/kamelets/google-sheets-source.kamelet.yaml
+++ 
b/library/camel-kamelets/src/main/resources/kamelets/google-sheets-source.kamelet.yaml
@@ -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"

Reply via email to