Skip to content

Commit

Permalink
Google Mail Source: Expose Kamelet data type information (#2037)
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 b00d457 commit d7bfa60
Show file tree
Hide file tree
Showing 2 changed files with 120 additions and 4 deletions.
62 changes: 60 additions & 2 deletions kamelets/google-mail-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,67 @@ spec:
type: string
example: "is:unread -category:(promotions OR social)"
default: "is:unread"
types:
dataTypes:
out:
mediaType: application/json
default: json
headers:
CamelGoogleMailId:
title: Camel Google Mail Id
description: The ID of the message
type: string
CamelGoogleMailStreamTo:
title: Camel Google Mail To Address
description: The recipient of the message
type: string
CamelGoogleMailStreamFrom:
title: Camel Google Mail From Address
description: The emitter of the message
type: string
CamelGoogleMailStreamCc:
title: Camel Google Mail Cc
description: The carbon copy of the message
type: string
CamelGoogleMailStreamBcc:
title: Camel Google Mail Bcc
description: The blind carbon cpoy of the message
type: string
CamelGoogleMailStreamSubject:
title: Camel Google Mail Subject
description: The subject of the message
type: string
types:
json:
format: "application-json"
description: |-
Json representation of a Google Mail event object.
mediaType: application/json
cloudevents:
format: "google-mail-stream:application-cloudevents"
description: |-
Output data type represents Google Mail Streams response as CloudEvent V1. The data type sets Camel specific CloudEvent headers on the exchange with
respective data from the Mail 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.mail.stream.consume"
type: string
CamelCloudEventSource:
title: CloudEvent Source
description: The event source. By default, the Mail From with prefix "google.mail.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:kamelet"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,67 @@ spec:
type: string
example: "is:unread -category:(promotions OR social)"
default: "is:unread"
types:
dataTypes:
out:
mediaType: application/json
default: json
headers:
CamelGoogleMailId:
title: Camel Google Mail Id
description: The ID of the message
type: string
CamelGoogleMailStreamTo:
title: Camel Google Mail To Address
description: The recipient of the message
type: string
CamelGoogleMailStreamFrom:
title: Camel Google Mail From Address
description: The emitter of the message
type: string
CamelGoogleMailStreamCc:
title: Camel Google Mail Cc
description: The carbon copy of the message
type: string
CamelGoogleMailStreamBcc:
title: Camel Google Mail Bcc
description: The blind carbon cpoy of the message
type: string
CamelGoogleMailStreamSubject:
title: Camel Google Mail Subject
description: The subject of the message
type: string
types:
json:
format: "application-json"
description: |-
Json representation of a Google Mail event object.
mediaType: application/json
cloudevents:
format: "google-mail-stream:application-cloudevents"
description: |-
Output data type represents Google Mail Streams response as CloudEvent V1. The data type sets Camel specific CloudEvent headers on the exchange with
respective data from the Mail 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.mail.stream.consume"
type: string
CamelCloudEventSource:
title: CloudEvent Source
description: The event source. By default, the Mail From with prefix "google.mail.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:kamelet"
Expand Down

0 comments on commit d7bfa60

Please sign in to comment.