You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2024/03/25 10:13:44 UTC

(camel-kamelets) branch 1914 created (now fb5443e5)

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

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


      at fb5443e5 Azure Storage Files Source: Expose Kamelet data type information

This branch includes the following new commits:

     new fb5443e5 Azure Storage Files Source: Expose Kamelet data type information

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(camel-kamelets) 01/01: Azure Storage Files Source: Expose Kamelet data type information

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit fb5443e58898e09b141123c9da66ac7f3ebb77aa
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Mar 25 11:13:30 2024 +0100

    Azure Storage Files Source: Expose Kamelet data type information
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 kamelets/azure-storage-files-source.kamelet.yaml   | 91 +++++++++++++++++++++-
 .../azure-storage-files-source.kamelet.yaml        | 91 +++++++++++++++++++++-
 2 files changed, 180 insertions(+), 2 deletions(-)

diff --git a/kamelets/azure-storage-files-source.kamelet.yaml b/kamelets/azure-storage-files-source.kamelet.yaml
index 2c19f12a..cf660a85 100644
--- a/kamelets/azure-storage-files-source.kamelet.yaml
+++ b/kamelets/azure-storage-files-source.kamelet.yaml
@@ -80,7 +80,96 @@ spec:
         title: Recursive Mode 
         description: If a directory, the consumer will look for files in all the sub-directories as well.
         type: boolean
-        default: false        
+        default: false
+  dataTypes:
+    out:
+      default: binary
+      headers:
+        CamelFileLength:
+          title: Azure Storage Files File Length
+          description: A long value containing the file size
+          type: long
+        CamelFileLastModified:
+          title: Azure Storage Files File Last Modified Date
+          description: A Long value containing the last modified timestamp of the file.
+          type: long
+        CamelFileNameOnly:
+          title: Azure Storage Files File Name Only
+          description: Only the file name (the name with no leading paths).
+          type: string
+        CamelFileName:
+          title: Azure Storage Files File Name 
+          description: |-
+            Name of the consumed file as a relative file path with offset from the starting directory configured on the endpoint.
+          type: string
+        CamelFileNameConsumed:
+          title: Azure Storage Files Consumed File Name
+          description: The name of the file that has been consumed.
+          type: string
+        CamelFileAbsolute:
+          title: Azure Storage Files Consumed Absolute Format
+          description: |- 
+            A boolean option specifying whether the consumed file denotes an absolute path or not. 
+            Should normally be false for relative paths. Absolute paths should normally not be used but we added to the move option to allow moving files to absolute paths. 
+            But can be used elsewhere as well.
+          type: boolean
+        CamelFileAbsolutePath:
+          title: Azure Storage Files Consumed Absolute Path
+          description: The absolute path to the file. For relative files this path holds the relative path instead.
+          type: string
+        CamelFileExtendedAttributes:
+          title: Azure Storage Files Extended Attributes
+          description: Additional Metadata of the file of type Map<String,Object>
+          type: object
+        CamelFileContentType:
+          title: Content Type
+          description: The content type of the retrieved object.
+          default: application/octet-stream
+          type: string
+        CamelFilePath:
+          title: Azure Storage Files File Path
+          description: The file path. For relative files this is the starting directory the relative filename. For absolute files this is the absolute path.
+          type: string
+        CamelFileRelativePath:
+          title: Azure Storage Files File Relative Path
+          description: The relative path.
+          type: string
+        CamelFileParent:
+          title: Azure Storage Files File Relative Path
+          description: The parent path.
+          type: string
+      types:
+        binary:
+          format: "application-octet-stream"
+          description: Default binary representation of the File retrieved from Azure Storage Files.
+          mediaType: application/octet-stream
+        cloudevents:
+          format: "azure-files:application-cloudevents"
+          description: |-
+            Data type transformer converts Azure Storage Files poll response to CloudEvent v1_0 data format. The data type sets
+            Camel specific CloudEvent headers with values extracted from Azure Storage Files poll response.
+          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.azure.storage.files.poll"
+              type: string
+            CamelCloudEventSource:
+              title: CloudEvent Source
+              description: The event source. By default, the Host name of the share with prefix "azure.storage.files.".
+              type: string
+            CamelCloudEventSubject:
+              title: CloudEvent Subject
+              description: The event subject. Usually the Azure Storage Files file name.
+              type: string
+            CamelCloudEventTime:
+              title: CloudEvent Time
+              description: The exchange creation timestamp as event time.
+              type: string       
   dependencies:
     - "camel:azure-files"
     - "camel:kamelet"
diff --git a/library/camel-kamelets/src/main/resources/kamelets/azure-storage-files-source.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/azure-storage-files-source.kamelet.yaml
index 2c19f12a..cf660a85 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/azure-storage-files-source.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/azure-storage-files-source.kamelet.yaml
@@ -80,7 +80,96 @@ spec:
         title: Recursive Mode 
         description: If a directory, the consumer will look for files in all the sub-directories as well.
         type: boolean
-        default: false        
+        default: false
+  dataTypes:
+    out:
+      default: binary
+      headers:
+        CamelFileLength:
+          title: Azure Storage Files File Length
+          description: A long value containing the file size
+          type: long
+        CamelFileLastModified:
+          title: Azure Storage Files File Last Modified Date
+          description: A Long value containing the last modified timestamp of the file.
+          type: long
+        CamelFileNameOnly:
+          title: Azure Storage Files File Name Only
+          description: Only the file name (the name with no leading paths).
+          type: string
+        CamelFileName:
+          title: Azure Storage Files File Name 
+          description: |-
+            Name of the consumed file as a relative file path with offset from the starting directory configured on the endpoint.
+          type: string
+        CamelFileNameConsumed:
+          title: Azure Storage Files Consumed File Name
+          description: The name of the file that has been consumed.
+          type: string
+        CamelFileAbsolute:
+          title: Azure Storage Files Consumed Absolute Format
+          description: |- 
+            A boolean option specifying whether the consumed file denotes an absolute path or not. 
+            Should normally be false for relative paths. Absolute paths should normally not be used but we added to the move option to allow moving files to absolute paths. 
+            But can be used elsewhere as well.
+          type: boolean
+        CamelFileAbsolutePath:
+          title: Azure Storage Files Consumed Absolute Path
+          description: The absolute path to the file. For relative files this path holds the relative path instead.
+          type: string
+        CamelFileExtendedAttributes:
+          title: Azure Storage Files Extended Attributes
+          description: Additional Metadata of the file of type Map<String,Object>
+          type: object
+        CamelFileContentType:
+          title: Content Type
+          description: The content type of the retrieved object.
+          default: application/octet-stream
+          type: string
+        CamelFilePath:
+          title: Azure Storage Files File Path
+          description: The file path. For relative files this is the starting directory the relative filename. For absolute files this is the absolute path.
+          type: string
+        CamelFileRelativePath:
+          title: Azure Storage Files File Relative Path
+          description: The relative path.
+          type: string
+        CamelFileParent:
+          title: Azure Storage Files File Relative Path
+          description: The parent path.
+          type: string
+      types:
+        binary:
+          format: "application-octet-stream"
+          description: Default binary representation of the File retrieved from Azure Storage Files.
+          mediaType: application/octet-stream
+        cloudevents:
+          format: "azure-files:application-cloudevents"
+          description: |-
+            Data type transformer converts Azure Storage Files poll response to CloudEvent v1_0 data format. The data type sets
+            Camel specific CloudEvent headers with values extracted from Azure Storage Files poll response.
+          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.azure.storage.files.poll"
+              type: string
+            CamelCloudEventSource:
+              title: CloudEvent Source
+              description: The event source. By default, the Host name of the share with prefix "azure.storage.files.".
+              type: string
+            CamelCloudEventSubject:
+              title: CloudEvent Subject
+              description: The event subject. Usually the Azure Storage Files file name.
+              type: string
+            CamelCloudEventTime:
+              title: CloudEvent Time
+              description: The exchange creation timestamp as event time.
+              type: string       
   dependencies:
     - "camel:azure-files"
     - "camel:kamelet"