This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
The following commit(s) were added to refs/heads/main by this push: new d8c74215 Google Sheets Source: Expose Kamelet data type information (#2035) d8c74215 is described below commit d8c7421587b61e2825e6ab44c6f5d44e6a813b98 Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Mon May 13 06:38:56 2024 +0200 Google Sheets Source: Expose Kamelet data type information (#2035) 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"