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/02/12 12:58:31 UTC

(camel-kamelets) branch azure-files-sink created (now 5669f21a)

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

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


      at 5669f21a Added Azure Files Sink Kamelet

This branch includes the following new commits:

     new 1301641a Added Azure Files Sink Kamelet
     new 1261eafd Added Azure Files Sink Kamelet
     new e8b964ca Added Azure Files Sink Kamelet
     new 5669f21a Added Azure Files Sink Kamelet

The 4 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) 02/04: Added Azure Files Sink Kamelet

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

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

commit 1261eafd3b1a3f73b8e547f428f84d79bfeeec3a
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Feb 12 13:56:28 2024 +0100

    Added Azure Files Sink Kamelet
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 .../kamelets/azure-storage-files-sink.kamelet.yaml | 100 +++++++++++++++++++++
 1 file changed, 100 insertions(+)

diff --git a/library/camel-kamelets/src/main/resources/kamelets/azure-storage-files-sink.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/azure-storage-files-sink.kamelet.yaml
new file mode 100644
index 00000000..4aea5802
--- /dev/null
+++ b/library/camel-kamelets/src/main/resources/kamelets/azure-storage-files-sink.kamelet.yaml
@@ -0,0 +1,100 @@
+# ---------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ---------------------------------------------------------------------------
+
+apiVersion: camel.apache.org/v1
+kind: Kamelet
+metadata:
+  name: azure-storage-files-sink
+  annotations:
+    camel.apache.org/kamelet.support.level: "Stable"
+    camel.apache.org/catalog.version: "4.4.0-SNAPSHOT"
+    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgOTEgODEiIGZpbGw9IiNmZmYiIGZpbGwtcnVsZT0iZXZlbm9kZCIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjx1c2UgeGxpbms6aHJlZj0iI0EiIHg9Ii41IiB5PSIuNSIvPjxzeW1ib2wgaWQ9IkEiIG92ZXJmbG93PSJ2aXNpYmxlIj48cGF0aCBkPSJNNjcuNTU4IDBIMjIuNDQxTDAgNDBsMjIuNDQxIDQwaDQ1LjExN0w5MCA0MCA2Ny [...]
+    camel.apache.org/provider: "Apache Software Foundation"
+    camel.apache.org/kamelet.group: "Azure Storage Blob"
+    camel.apache.org/kamelet.namespace: "Azure"
+  labels:
+    camel.apache.org/kamelet.type: "sink"
+spec:
+  definition:
+    title: "Azure Storage Files Sink"
+    description: |-
+      Upload data to Azure Storage Files Share.
+
+      In the header, you can set the `file` / `ce-file` property to specify the filename to upload. If you do set property in the header, the Kamelet uses the exchange ID as filename.
+    required:
+      - accountName
+      - containerName
+    type: object
+    properties:
+      accountName:
+        title: Account Name
+        description: The Azure Storage Blob account name.
+        type: string
+        x-descriptors:
+        - urn:camel:group:credentials
+      shareName:
+        title: Share Name
+        description: The Azure Storage File Share share name.
+        type: string
+      sharedKey:
+        title: Shared Access Key
+        description: The Azure Storage Blob access key.
+        type: string
+        format: password
+        x-descriptors:
+        - urn:camel:group:credentials
+      credentialType:
+        title: Credential Type
+        description: Determines the credential strategy to adopt.
+        type: string
+        enum: ["SHARED_ACCOUNT_KEY", "AZURE_IDENTITY", "SHARED_KEY_CREDENTIAL", "AZURE_SAS"]
+        default: "SHARED_ACCOUNT_KEY"
+      directoryName:
+        title: Directory Name
+        description: The directory from where the producer will upload the file.
+        type: string
+        default: "."
+  dependencies:
+    - "camel:core"
+    - "camel:azure-storage-blob"
+    - "camel:kamelet"
+  template:
+    from:
+      uri: "kamelet:source"
+      steps:
+      - choice:
+          when:
+          - simple: "${header[file]}"
+            steps:
+            - setHeader:
+                name: CamelFileName
+                simple: "${header[file]}"
+          - simple: "${header[ce-file]}"
+            steps:
+            - setHeader:
+                name: CamelFileName
+                simple: "${header[ce-file]}"
+          otherwise:
+            steps:
+            - setHeader:
+                name: CamelFileName
+                simple: "${exchangeId}"
+      - to:
+          uri: "azure-files://{{accountName}}/{{shareName}}/{{directoryName}}"
+          parameters:
+            sharedKey: "{{?sharedKey}}"
+            credentialType: "{{credentialType}}"


(camel-kamelets) 04/04: Added Azure Files Sink Kamelet

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

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

commit 5669f21af997855dd3966ac4967375dce2ffc35d
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Feb 12 13:57:35 2024 +0100

    Added Azure Files Sink Kamelet
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 .../src/main/resources/kamelets/azure-storage-files-sink.kamelet.yaml   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/library/camel-kamelets/src/main/resources/kamelets/azure-storage-files-sink.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/azure-storage-files-sink.kamelet.yaml
index 4aea5802..f86f13ec 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/azure-storage-files-sink.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/azure-storage-files-sink.kamelet.yaml
@@ -37,7 +37,7 @@ spec:
       In the header, you can set the `file` / `ce-file` property to specify the filename to upload. If you do set property in the header, the Kamelet uses the exchange ID as filename.
     required:
       - accountName
-      - containerName
+      - shareName
     type: object
     properties:
       accountName:


(camel-kamelets) 03/04: Added Azure Files Sink Kamelet

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

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

commit e8b964ca5a69a95ac3a84ef15a3bc0259afbe209
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Feb 12 13:57:02 2024 +0100

    Added Azure Files Sink Kamelet
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 docs/modules/ROOT/nav.adoc                     | 1 +
 kamelets/azure-storage-files-sink.kamelet.yaml | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc
index 7f27d8d8..bf0466ef 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -42,6 +42,7 @@
 * xref:azure-storage-blob-source.adoc[]
 * xref:azure-storage-datalake-sink.adoc[]
 * xref:azure-storage-datalake-source.adoc[]
+* xref:azure-storage-files-sink.adoc[]
 * xref:azure-storage-files-source.adoc[]
 * xref:azure-storage-queue-sink.adoc[]
 * xref:azure-storage-queue-source.adoc[]
diff --git a/kamelets/azure-storage-files-sink.kamelet.yaml b/kamelets/azure-storage-files-sink.kamelet.yaml
index 4aea5802..f86f13ec 100644
--- a/kamelets/azure-storage-files-sink.kamelet.yaml
+++ b/kamelets/azure-storage-files-sink.kamelet.yaml
@@ -37,7 +37,7 @@ spec:
       In the header, you can set the `file` / `ce-file` property to specify the filename to upload. If you do set property in the header, the Kamelet uses the exchange ID as filename.
     required:
       - accountName
-      - containerName
+      - shareName
     type: object
     properties:
       accountName:


(camel-kamelets) 01/04: Added Azure Files Sink Kamelet

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

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

commit 1301641a28ff3d3fd6d584986993a5cb7730d55a
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Feb 12 13:55:30 2024 +0100

    Added Azure Files Sink Kamelet
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 kamelets/azure-storage-files-sink.kamelet.yaml | 100 +++++++++++++++++++++++++
 1 file changed, 100 insertions(+)

diff --git a/kamelets/azure-storage-files-sink.kamelet.yaml b/kamelets/azure-storage-files-sink.kamelet.yaml
new file mode 100644
index 00000000..4aea5802
--- /dev/null
+++ b/kamelets/azure-storage-files-sink.kamelet.yaml
@@ -0,0 +1,100 @@
+# ---------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ---------------------------------------------------------------------------
+
+apiVersion: camel.apache.org/v1
+kind: Kamelet
+metadata:
+  name: azure-storage-files-sink
+  annotations:
+    camel.apache.org/kamelet.support.level: "Stable"
+    camel.apache.org/catalog.version: "4.4.0-SNAPSHOT"
+    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgOTEgODEiIGZpbGw9IiNmZmYiIGZpbGwtcnVsZT0iZXZlbm9kZCIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjx1c2UgeGxpbms6aHJlZj0iI0EiIHg9Ii41IiB5PSIuNSIvPjxzeW1ib2wgaWQ9IkEiIG92ZXJmbG93PSJ2aXNpYmxlIj48cGF0aCBkPSJNNjcuNTU4IDBIMjIuNDQxTDAgNDBsMjIuNDQxIDQwaDQ1LjExN0w5MCA0MCA2Ny [...]
+    camel.apache.org/provider: "Apache Software Foundation"
+    camel.apache.org/kamelet.group: "Azure Storage Blob"
+    camel.apache.org/kamelet.namespace: "Azure"
+  labels:
+    camel.apache.org/kamelet.type: "sink"
+spec:
+  definition:
+    title: "Azure Storage Files Sink"
+    description: |-
+      Upload data to Azure Storage Files Share.
+
+      In the header, you can set the `file` / `ce-file` property to specify the filename to upload. If you do set property in the header, the Kamelet uses the exchange ID as filename.
+    required:
+      - accountName
+      - containerName
+    type: object
+    properties:
+      accountName:
+        title: Account Name
+        description: The Azure Storage Blob account name.
+        type: string
+        x-descriptors:
+        - urn:camel:group:credentials
+      shareName:
+        title: Share Name
+        description: The Azure Storage File Share share name.
+        type: string
+      sharedKey:
+        title: Shared Access Key
+        description: The Azure Storage Blob access key.
+        type: string
+        format: password
+        x-descriptors:
+        - urn:camel:group:credentials
+      credentialType:
+        title: Credential Type
+        description: Determines the credential strategy to adopt.
+        type: string
+        enum: ["SHARED_ACCOUNT_KEY", "AZURE_IDENTITY", "SHARED_KEY_CREDENTIAL", "AZURE_SAS"]
+        default: "SHARED_ACCOUNT_KEY"
+      directoryName:
+        title: Directory Name
+        description: The directory from where the producer will upload the file.
+        type: string
+        default: "."
+  dependencies:
+    - "camel:core"
+    - "camel:azure-storage-blob"
+    - "camel:kamelet"
+  template:
+    from:
+      uri: "kamelet:source"
+      steps:
+      - choice:
+          when:
+          - simple: "${header[file]}"
+            steps:
+            - setHeader:
+                name: CamelFileName
+                simple: "${header[file]}"
+          - simple: "${header[ce-file]}"
+            steps:
+            - setHeader:
+                name: CamelFileName
+                simple: "${header[ce-file]}"
+          otherwise:
+            steps:
+            - setHeader:
+                name: CamelFileName
+                simple: "${exchangeId}"
+      - to:
+          uri: "azure-files://{{accountName}}/{{shareName}}/{{directoryName}}"
+          parameters:
+            sharedKey: "{{?sharedKey}}"
+            credentialType: "{{credentialType}}"