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

acosentino pushed a commit to branch google-cloud-storage-info-exposure
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 29f6bf79db34e35be38c2a7f2a92f7d80840cb2f
Author: Andrea Cosentino <[email protected]>
AuthorDate: Wed Sep 20 13:12:15 2023 +0200

    Google Storage Source: Expose Kamelet data type information
    
    Signed-off-by: Andrea Cosentino <[email protected]>
---
 kamelets/google-storage-source.kamelet.yaml        | 55 ++++++++++++++++++++++
 .../kamelets/google-storage-source.kamelet.yaml    | 55 ++++++++++++++++++++++
 2 files changed, 110 insertions(+)

diff --git a/kamelets/google-storage-source.kamelet.yaml 
b/kamelets/google-storage-source.kamelet.yaml
index d60ad500..64d111e2 100644
--- a/kamelets/google-storage-source.kamelet.yaml
+++ b/kamelets/google-storage-source.kamelet.yaml
@@ -62,6 +62,61 @@ spec:
         x-descriptors:
         - 'urn:alm:descriptor:com.tectonic.ui:checkbox'
         default: false
+  dataTypes:
+    out:
+      default: binary
+      headers:
+        CamelGoogleCloudStorageBucketName:
+          title: Google Cloud Storage Bucket Name
+          description: The bucket name which has been used to retrieve objects
+          type: string
+        CamelGoogleCloudStorageObjectName:
+          title: Google Cloud Storage Object Name
+          description: The object name under which the retrieved object is 
stored
+          type: string
+        CamelGoogleCloudStorageContentType:
+          title: Content Type
+          description: The content type of the retrieved object.
+          default: application/octet-stream
+          type: string
+        CamelGoogleCloudStorageETag:
+          title: ETag Value
+          description: |-
+            The hex encoded 128-bit MD5 digest of the associated object 
according to RFC 1864. 
+            Is the generation number of the object for which you are 
retrieving information.
+          type: string
+      types:
+        binary:
+          format: "application-octet-stream"
+          description: Default binary representation of the Google Storage 
Cloud object retrieved from the bucket.
+          mediaType: application/octet-stream
+        cloudevents:
+          format: "aws2-s3:application-cloudevents"
+          description: |-
+            Output data type represents Google Storage download to response as 
CloudEvent V1. The data type sets Camel specific CloudEvent headers on the 
exchange with
+            respective data from the S3 bucket 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.storage.downloadTo"
+              type: string
+            CamelCloudEventSource:
+              title: CloudEvent Source
+              description: The event source. By default, the Google Cloud 
Storage bucket name with prefix "google.storage.bucket.".
+              type: string
+            CamelCloudEventSubject:
+              title: CloudEvent Subject
+              description: The event subject. Usually the Google Cloud Storage 
object name.
+              type: string
+            CamelCloudEventTime:
+              title: CloudEvent Time
+              description: The exchange creation timestamp as event time.
+              type: string
   dependencies:
     - "camel:kamelet"
     - "camel:google-storage"
diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/google-storage-source.kamelet.yaml
 
b/library/camel-kamelets/src/main/resources/kamelets/google-storage-source.kamelet.yaml
index d60ad500..64d111e2 100644
--- 
a/library/camel-kamelets/src/main/resources/kamelets/google-storage-source.kamelet.yaml
+++ 
b/library/camel-kamelets/src/main/resources/kamelets/google-storage-source.kamelet.yaml
@@ -62,6 +62,61 @@ spec:
         x-descriptors:
         - 'urn:alm:descriptor:com.tectonic.ui:checkbox'
         default: false
+  dataTypes:
+    out:
+      default: binary
+      headers:
+        CamelGoogleCloudStorageBucketName:
+          title: Google Cloud Storage Bucket Name
+          description: The bucket name which has been used to retrieve objects
+          type: string
+        CamelGoogleCloudStorageObjectName:
+          title: Google Cloud Storage Object Name
+          description: The object name under which the retrieved object is 
stored
+          type: string
+        CamelGoogleCloudStorageContentType:
+          title: Content Type
+          description: The content type of the retrieved object.
+          default: application/octet-stream
+          type: string
+        CamelGoogleCloudStorageETag:
+          title: ETag Value
+          description: |-
+            The hex encoded 128-bit MD5 digest of the associated object 
according to RFC 1864. 
+            Is the generation number of the object for which you are 
retrieving information.
+          type: string
+      types:
+        binary:
+          format: "application-octet-stream"
+          description: Default binary representation of the Google Storage 
Cloud object retrieved from the bucket.
+          mediaType: application/octet-stream
+        cloudevents:
+          format: "aws2-s3:application-cloudevents"
+          description: |-
+            Output data type represents Google Storage download to response as 
CloudEvent V1. The data type sets Camel specific CloudEvent headers on the 
exchange with
+            respective data from the S3 bucket 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.storage.downloadTo"
+              type: string
+            CamelCloudEventSource:
+              title: CloudEvent Source
+              description: The event source. By default, the Google Cloud 
Storage bucket name with prefix "google.storage.bucket.".
+              type: string
+            CamelCloudEventSubject:
+              title: CloudEvent Subject
+              description: The event subject. Usually the Google Cloud Storage 
object name.
+              type: string
+            CamelCloudEventTime:
+              title: CloudEvent Time
+              description: The exchange creation timestamp as event time.
+              type: string
   dependencies:
     - "camel:kamelet"
     - "camel:google-storage"

Reply via email to