You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by nf...@apache.org on 2021/03/23 13:29:53 UTC

[camel-kamelets] branch master updated (9ed7bde -> cfe4da0)

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

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


    from 9ed7bde  declare dependencies
     new 46bdd48  Added Dropbox Kamelet source
     new 8f8ac13  Added Dropbox Kamelet source
     new e0a2cf0  Added Dropbox Kamelet source
     new cfe4da0  Added Dropbox Kamelet source

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.


Summary of changes:
 .../ROOT/assets/images/kamelets/dropbox-source.svg |  4 ++
 docs/modules/ROOT/nav.adoc                         |  1 +
 docs/modules/ROOT/pages/aws-sqs-fifo-sink.adoc     |  3 +-
 docs/modules/ROOT/pages/dropbox-source.adoc        | 66 ++++++++++++++++++++++
 dropbox-source.kamelet.yaml                        | 66 ++++++++++++++++++++++
 5 files changed, 138 insertions(+), 2 deletions(-)
 create mode 100644 docs/modules/ROOT/assets/images/kamelets/dropbox-source.svg
 create mode 100644 docs/modules/ROOT/pages/dropbox-source.adoc
 create mode 100644 dropbox-source.kamelet.yaml

[camel-kamelets] 02/04: Added Dropbox Kamelet source

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

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

commit 8f8ac130ba3ffcc6c324947dc5372581d58a3f2f
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Mar 23 14:16:36 2021 +0100

    Added Dropbox Kamelet source
---
 dropbox-source.kamelet.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dropbox-source.kamelet.yaml b/dropbox-source.kamelet.yaml
index bfda21c..7f819dc 100644
--- a/dropbox-source.kamelet.yaml
+++ b/dropbox-source.kamelet.yaml
@@ -3,7 +3,7 @@ kind: Kamelet
 metadata:
   name: dropbox-source
   annotations:
-    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjAiIHk9IjAiIHZpZXdCb3g9IjAgMCAyNDguMiAzMDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxzdHlsZT4uc3QyOHtmaWxsOiM4YzMxMjN9LnN0Mjl7ZmlsbDojZTA1MjQzfTwvc3R5bGU+PHBhdGggY2xhc3M9InN0MjgiIGQ9Ik0yMCA1Mi4xTDAgNjJ2MTc1LjVsMjAgOS45LjEtLjFWNTIuMmwtLjEtLjEiLz48cGF0aCBjbGFzcz0ic3QyOSIgZD0iTTEyNyAyMjJMMjAgMjQ3LjVWNTIuMUwxMjcgNzd2MTQ1Ii8+PHBhdGggY2xhc3M9InN0MjgiIG [...]
+    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+Cjxzdmcgd2lkdGg9IjQzcHgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDQzIDQwIiB2ZXJzaW9uPSIxLjEiIGhlaWdodD0iNDBweCI+CiA8cGF0aCBkPSJtMTIuNSAwbC0xMi41IDguMSA4LjcgNyAxMi41LTcuOC04LjctNy4zem0tMTIuNSAyMS45bDEyLjUgOC4yIDguNy03LjMtMTIuNS03LjctOC43IDYuOHptMjEuMiAwLjlsOC44IDcuMyAxMi40LTguMS04LjYtNi45LTEyLjYgNy43em0yMS4yLTE0LjdsLTEyLjQtOC4xLTguOC [...]
     camel.apache.org/provider: "Apache Software Foundation"
   labels:
     camel.apache.org/kamelet.type: "source"

[camel-kamelets] 03/04: Added Dropbox Kamelet source

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

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

commit e0a2cf0ba4c69cc6669ef191773575d660cfd573
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Mar 23 14:17:24 2021 +0100

    Added Dropbox Kamelet source
---
 docs/modules/ROOT/nav.adoc                     | 1 +
 docs/modules/ROOT/pages/aws-sqs-fifo-sink.adoc | 3 +--
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc
index af62f69..409915d 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -5,6 +5,7 @@
 * xref:ROOT:aws-sqs-sink.adoc[image:kamelets/aws-sqs-sink.svg[] AWS SQS Sink]
 * xref:ROOT:aws-sqs-source.adoc[image:kamelets/aws-sqs-source.svg[] AWS SQS Source]
 * xref:ROOT:bitcoin-source.adoc[image:kamelets/bitcoin-source.svg[] Bitcoin Source]
+* xref:ROOT:dropbox-source.adoc[image:kamelets/dropbox-source.svg[] Dropbox Source]
 * xref:ROOT:earthquake-source.adoc[image:kamelets/earthquake-source.svg[] Earthquake Source]
 * xref:ROOT:file-watch-source.adoc[image:kamelets/file-watch-source.svg[] File Watch Source]
 * xref:ROOT:ftp-source.adoc[image:kamelets/ftp-source.svg[] FTP Source]
diff --git a/docs/modules/ROOT/pages/aws-sqs-fifo-sink.adoc b/docs/modules/ROOT/pages/aws-sqs-fifo-sink.adoc
index 44eeece..d83e2d0 100644
--- a/docs/modules/ROOT/pages/aws-sqs-fifo-sink.adoc
+++ b/docs/modules/ROOT/pages/aws-sqs-fifo-sink.adoc
@@ -12,11 +12,10 @@ The following table summarizes the configuration options available for the `aws-
 |===
 | Property| Name| Description| Type| Default| Example
 | *accessKey {empty}* *| Access Key| The access key obtained from AWS| string| | 
-| *messageDeduplicationIdStrategy {empty}* *| Message Deduplication ID Strategy| Strategy for setting the messageDeduplicationId on the message. Can be one of the following options useExchangeId, useContentBasedDeduplication| string| `"useExchangeId"`| 
-| *messageGroupIdStrategy {empty}* *| Message Group ID Strategy| Strategy for setting the messageGroupId on the message. Can be one of the following options useConstant, useExchangeId, usePropertyValue.| string| `"useExchangeId"`| 
 | *queueNameOrArn {empty}* *| Queue Name| The SQS Queue name or ARN| string| | 
 | *region {empty}* *| AWS Region| The AWS region to connect to| string| | `"eu-west-1"`
 | *secretKey {empty}* *| Secret Key| The secret key obtained from AWS| string| | 
+| contentBasedDeduplication| Content-Based Deduplication| Use content-based deduplication (should be enabled in the SQS FIFO queue first)| boolean| `false`| 
 |===
 
 NOTE: Fields marked with ({empty}*) are mandatory.

[camel-kamelets] 04/04: Added Dropbox Kamelet source

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

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

commit cfe4da01653bf4c86af5ab3265f563dcb29c4451
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Mar 23 14:17:46 2021 +0100

    Added Dropbox Kamelet source
---
 .../ROOT/assets/images/kamelets/dropbox-source.svg |  4 ++
 docs/modules/ROOT/pages/dropbox-source.adoc        | 66 ++++++++++++++++++++++
 2 files changed, 70 insertions(+)

diff --git a/docs/modules/ROOT/assets/images/kamelets/dropbox-source.svg b/docs/modules/ROOT/assets/images/kamelets/dropbox-source.svg
new file mode 100644
index 0000000..84ac860
--- /dev/null
+++ b/docs/modules/ROOT/assets/images/kamelets/dropbox-source.svg
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg width="43px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 43 40" version="1.1" height="40px">
+ <path d="m12.5 0l-12.5 8.1 8.7 7 12.5-7.8-8.7-7.3zm-12.5 21.9l12.5 8.2 8.7-7.3-12.5-7.7-8.7 6.8zm21.2 0.9l8.8 7.3 12.4-8.1-8.6-6.9-12.6 7.7zm21.2-14.7l-12.4-8.1-8.8 7.3 12.6 7.8 8.6-7zm-21.1 16.3l-8.8 7.3-3.7-2.5v2.8l12.5 7.5 12.5-7.5v-2.8l-3.8 2.5-8.7-7.3z" fill="#007EE5"/>
+</svg>
diff --git a/docs/modules/ROOT/pages/dropbox-source.adoc b/docs/modules/ROOT/pages/dropbox-source.adoc
new file mode 100644
index 0000000..3b1d1c5
--- /dev/null
+++ b/docs/modules/ROOT/pages/dropbox-source.adoc
@@ -0,0 +1,66 @@
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT
+= image:kamelets/dropbox-source.svg[] Dropbox Source
+
+*Provided by: "Apache Software Foundation"*
+
+Consume Files from Dropbox.
+
+== Configuration Options
+
+The following table summarizes the configuration options available for the `dropbox-source` Kamelet:
+[width="100%",cols="2,^2,3,^2,^2,^3",options="header"]
+|===
+| Property| Name| Description| Type| Default| Example
+| *accessToken {empty}* *| Dropbox Access Token| The access Token to use to access Dropbox| string| | 
+| *clientIdentifier {empty}* *| The client identifier| Dropbox App client Identifier| string| | 
+| *period {empty}* *| Period between polls| The interval between fetches to the earthquake API in milliseconds| integer| `10000`| 
+| *remotePath {empty}* *| Remote path| Original file or folder to work with| string| | 
+| query| Querys| A space-separated list of sub-strings to search for. A file matches only if it contains all the sub-strings. If this option is not set, all files will be matched.| string| | 
+|===
+
+NOTE: Fields marked with ({empty}*) are mandatory.
+
+== Usage
+
+This section summarizes how the `dropbox-source` can be used in various contexts.
+
+=== Knative Source
+
+The `dropbox-source` Kamelet can be used as Knative source by binding it to a Knative object.
+
+.dropbox-source-binding.yaml
+[source,yaml]
+----
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+  name: dropbox-source-binding
+spec:
+  source:
+    ref:
+      kind: Kamelet
+      apiVersion: camel.apache.org/v1alpha1
+      name: dropbox-source
+    properties:
+      accessToken: "The Dropbox Access Token"
+      clientIdentifier: "The The client identifier"
+      remotePath: "The Remote path"
+  sink:
+    ref:
+      kind: InMemoryChannel
+      apiVersion: messaging.knative.dev/v1
+      name: mychannel
+
+----
+
+Make sure you have xref:latest@camel-k::installation/installation.adoc[Camel K installed] into the Kubernetes cluster you're connected to.
+
+Save the `dropbox-source-binding.yaml` file into your hard drive, then configure it according to your needs.
+
+You can run the source using the following command:
+
+[source,shell]
+----
+kubectl apply -f dropbox-source-binding.yaml
+----
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT

[camel-kamelets] 01/04: Added Dropbox Kamelet source

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

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

commit 46bdd48792917a8fd275865cf39bfbc71eeb40af
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Mar 23 14:14:42 2021 +0100

    Added Dropbox Kamelet source
---
 dropbox-source.kamelet.yaml | 66 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 66 insertions(+)

diff --git a/dropbox-source.kamelet.yaml b/dropbox-source.kamelet.yaml
new file mode 100644
index 0000000..bfda21c
--- /dev/null
+++ b/dropbox-source.kamelet.yaml
@@ -0,0 +1,66 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+  name: dropbox-source
+  annotations:
+    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjAiIHk9IjAiIHZpZXdCb3g9IjAgMCAyNDguMiAzMDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxzdHlsZT4uc3QyOHtmaWxsOiM4YzMxMjN9LnN0Mjl7ZmlsbDojZTA1MjQzfTwvc3R5bGU+PHBhdGggY2xhc3M9InN0MjgiIGQ9Ik0yMCA1Mi4xTDAgNjJ2MTc1LjVsMjAgOS45LjEtLjFWNTIuMmwtLjEtLjEiLz48cGF0aCBjbGFzcz0ic3QyOSIgZD0iTTEyNyAyMjJMMjAgMjQ3LjVWNTIuMUwxMjcgNzd2MTQ1Ii8+PHBhdGggY2xhc3M9InN0MjgiIG [...]
+    camel.apache.org/provider: "Apache Software Foundation"
+  labels:
+    camel.apache.org/kamelet.type: "source"
+spec:
+  definition:
+    title: "Dropbox Source"
+    description: |-
+      Consume Files from Dropbox.
+    required:
+      - period
+      - accessToken
+      - clientIdentifier
+      - remotePath
+    properties:
+      period:
+        title: Period between polls
+        description: The interval between fetches to the earthquake API in milliseconds
+        type: integer
+        default: 10000
+      accessToken:
+        title: Dropbox Access Token
+        description: The access Token to use to access Dropbox
+        type: string
+        x-descriptors:
+        - urn:alm:descriptor:com.tectonic.ui:password
+      clientIdentifier:
+        title: The client identifier
+        description: Dropbox App client Identifier
+        type: string
+      remotePath:
+        title: Remote path
+        description: Original file or folder to work with
+        type: string
+      query:
+        title: Querys
+        description: A space-separated list of sub-strings to search for. A file matches only if it contains all the sub-strings. If this option is not set, all files will be matched.
+        type: string
+  flow:
+    from:
+      uri: "timer:dropbox-stream"
+      parameters:
+        period: "{{period}}"
+      steps:
+      - to:
+          uri: "dropbox:search"
+          parameters:
+            accessToken: "{{accessToken}}"
+            remotePath: "{{remotePath}}"
+            clientIdentifier: "{{clientIdentifier}}"
+            query: "{{query}}"
+      - split:
+          jsonpath: "$.*"
+          steps:
+          - set-property:
+              name: dropboxFileName
+              simple: ${body.metadata.pathDisplay}
+          - tod: "dropbox:get?accessToken={{accessToken}}&clientIdentifier={{clientIdentifier}}&remotePath=${exchangeProperty.dropboxFileName}"
+          - to: "kamelet:sink"
+          - tod: "dropbox:del?accessToken={{accessToken}}&clientIdentifier={{clientIdentifier}}&remotePath=${exchangeProperty.dropboxFileName}"
+