This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch 2003 in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 1fac22e343876baadf9c0215df62fad8f5635aba Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Mon May 13 06:56:17 2024 +0200 Google Calendar Source: Expose Kamelet data type information Signed-off-by: Andrea Cosentino <anco...@gmail.com> --- kamelets/google-calendar-source.kamelet.yaml | 42 ++++++++++++++++++++-- .../kamelets/google-calendar-source.kamelet.yaml | 42 ++++++++++++++++++++-- 2 files changed, 80 insertions(+), 4 deletions(-) diff --git a/kamelets/google-calendar-source.kamelet.yaml b/kamelets/google-calendar-source.kamelet.yaml index bad94f7a..e94a89b4 100644 --- a/kamelets/google-calendar-source.kamelet.yaml +++ b/kamelets/google-calendar-source.kamelet.yaml @@ -97,9 +97,47 @@ spec: description: Specfies to consume events in the calendar from now on. type: boolean default: true - types: + dataTypes: out: - mediaType: application/json + default: json + headers: + CamelGoogleCalendarEventId: + title: Camel Google Calendar Event Id + description: The calendar event id + type: string + types: + json: + format: "application-json" + description: |- + Json representation of a Google Calendar event object. + mediaType: application/json + cloudevents: + format: "google-calendar-stream:application-cloudevents" + description: |- + Output data type represents Google Calendar Stream response as CloudEvent V1. The data type sets Camel specific CloudEvent headers on the exchange with + respective data from the Calendar Events 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.calendar.stream.consume" + type: string + CamelCloudEventSource: + title: CloudEvent Source + description: The event source. By default, the Calendar Event Id with prefix "google.calendar.stream.". + type: string + CamelCloudEventSubject: + title: CloudEvent Subject + description: The event subject. The Calendar event type. + type: string + CamelCloudEventTime: + title: CloudEvent Time + description: The exchange creation timestamp as event time. + type: string dependencies: - "camel:jackson" - "camel:google-calendar" diff --git a/library/camel-kamelets/src/main/resources/kamelets/google-calendar-source.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/google-calendar-source.kamelet.yaml index bad94f7a..e94a89b4 100644 --- a/library/camel-kamelets/src/main/resources/kamelets/google-calendar-source.kamelet.yaml +++ b/library/camel-kamelets/src/main/resources/kamelets/google-calendar-source.kamelet.yaml @@ -97,9 +97,47 @@ spec: description: Specfies to consume events in the calendar from now on. type: boolean default: true - types: + dataTypes: out: - mediaType: application/json + default: json + headers: + CamelGoogleCalendarEventId: + title: Camel Google Calendar Event Id + description: The calendar event id + type: string + types: + json: + format: "application-json" + description: |- + Json representation of a Google Calendar event object. + mediaType: application/json + cloudevents: + format: "google-calendar-stream:application-cloudevents" + description: |- + Output data type represents Google Calendar Stream response as CloudEvent V1. The data type sets Camel specific CloudEvent headers on the exchange with + respective data from the Calendar Events 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.calendar.stream.consume" + type: string + CamelCloudEventSource: + title: CloudEvent Source + description: The event source. By default, the Calendar Event Id with prefix "google.calendar.stream.". + type: string + CamelCloudEventSubject: + title: CloudEvent Subject + description: The event subject. The Calendar event type. + type: string + CamelCloudEventTime: + title: CloudEvent Time + description: The exchange creation timestamp as event time. + type: string dependencies: - "camel:jackson" - "camel:google-calendar"