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 2020/09/22 15:45:25 UTC

[camel] branch master updated (5c4a801 -> ad6c4c2)

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

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


    from 5c4a801  Small cleanups spread across a few components (#4277)
     new 74ad2ee  Camel-AWS2-Eventbridge: Added docs for removeTargets operation
     new 961e3fe  Camel-AWS2-Eventbridge: Regen
     new ad6c4c2  Regen

The 3 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:
 .../org/apache/camel/catalog/components/box.json    |  2 +-
 .../catalog/docs/aws2-eventbridge-component.adoc    | 21 +++++++++++++++++++++
 .../src/main/docs/aws2-eventbridge-component.adoc   | 21 +++++++++++++++++++++
 .../ROOT/pages/aws2-eventbridge-component.adoc      | 21 +++++++++++++++++++++
 4 files changed, 64 insertions(+), 1 deletion(-)


[camel] 01/03: Camel-AWS2-Eventbridge: Added docs for removeTargets operation

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

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

commit 74ad2ee609ed8a37e2e11145682bc030eab3922b
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Sep 22 17:42:37 2020 +0200

    Camel-AWS2-Eventbridge: Added docs for removeTargets operation
---
 .../src/main/docs/aws2-eventbridge-component.adoc   | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/components/camel-aws2-eventbridge/src/main/docs/aws2-eventbridge-component.adoc b/components/camel-aws2-eventbridge/src/main/docs/aws2-eventbridge-component.adoc
index a681327..a149f5c 100644
--- a/components/camel-aws2-eventbridge/src/main/docs/aws2-eventbridge-component.adoc
+++ b/components/camel-aws2-eventbridge/src/main/docs/aws2-eventbridge-component.adoc
@@ -125,6 +125,7 @@ Camel-AWS2-Eventbridge component provides the following operation on the produce
 
 - putRule
 - putTargets
+- removeTargets
 
 - PutRule: this operation create a rule related to an eventbus
 
@@ -165,6 +166,26 @@ This operation will create a rule named firstrule and it will use a json file fo
 
 This operation will add the target sqs-queue with the arn reported to the targets of the firstrule rule.
 
+- RemoveTargets: this operation will remove a collection of target from the rule 
+
+[source,java]
+--------------------------------------------------------------------------------
+  from("direct:start").process(new Processor() {
+                    
+      @Override
+      public void process(Exchange exchange) throws Exception {
+          exchange.getIn().setHeader(EventbridgeConstants.RULE_NAME, "firstrule");
+          List<String> ids = new ArrayList<String>();
+          targets.add("sqs-queue");
+          exchange.getIn().setHeader(EventbridgeConstants.TARGETS_IDS, targets);
+      }
+  })
+  .to("aws2-eventbridge://test?operation=removeTargets")
+  .to("mock:result");
+--------------------------------------------------------------------------------
+
+This operation will remove the target sqs-queue from the firstrule rule.
+
 == Automatic detection of EventbridgeClient client in registry
 
 The component is capable of detecting the presence of an EventbridgeClient bean into the registry.


[camel] 03/03: Regen

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

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

commit ad6c4c26d58578e2a9e5432b2b73d08f95c67586
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Sep 22 17:44:21 2020 +0200

    Regen
---
 .../generated/resources/org/apache/camel/catalog/components/box.json    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/box.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/box.json
index 3e16de5..a243e65 100644
--- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/box.json
+++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/box.json
@@ -82,7 +82,7 @@
     "users": { "consumerOnly": false, "producerOnly": true, "description": "Provides operations to manage Box users", "aliases": [ "getCurrentUser=currentUser", "getAllEnterpriseOrExternalUsers=users", "createAppUser=create", "createEnterpriseUser=create", "deleteUser=delete", "addUserEmailAlias=addEmailAlias", "getUserEmailAlias=emailAlias", "deleteUserEmailAlias=deleteEmailAlias", "getUserInfo=info", "updateUserInfo=updateInfo" ], "methods": { "addUserEmailAlias": { "description": "Add [...]
   },
   "apiProperties": {
-    "collaborations": { "methods": { "addFolderCollaboration": { "properties": { "collaborator": { "kind": "parameter", "displayName": "Collaborator", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "com.box.sdk.BoxCollaborator", "deprecated": false, "secret": false, "description": "The collaborator to add", "optional": false }, "folderId": { "kind": "parameter", "displayName": "Folder Id", "group": "producer", "label": "", "required": false, "type": "s [...]
+    "collaborations": { "methods": { "addFolderCollaboration": { "properties": { "collaborator": { "kind": "parameter", "displayName": "Collaborator", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "com.box.sdk.BoxCollaborator", "deprecated": false, "secret": false, "description": "The collaborator to add", "optional": false }, "folderId": { "kind": "parameter", "displayName": "Folder Id", "group": "producer", "label": "", "required": false, "type": "s [...]
     "comments": { "methods": { "addFileComment": { "properties": { "fileId": { "kind": "parameter", "displayName": "File Id", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "The id of file", "optional": false }, "message": { "kind": "parameter", "displayName": "Message", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "depreca [...]
     "event-logs": { "methods": { "getEnterpriseEvents": { "properties": { "after": { "kind": "parameter", "displayName": "After", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.util.Date", "deprecated": false, "secret": false, "description": "The lower bound on the timestamp of the events returned", "optional": false }, "before": { "kind": "parameter", "displayName": "Before", "group": "producer", "label": "", "required": false, "type": "string", [...]
     "events": { "methods": { "listen": { "properties": { "startingPosition": { "kind": "parameter", "displayName": "Starting Position", "group": "consumer", "label": "", "required": false, "type": "integer", "javaType": "java.lang.Long", "deprecated": false, "secret": false, "description": "The starting position of the event stream", "optional": true } } } } },


[camel] 02/03: Camel-AWS2-Eventbridge: Regen

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

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

commit 961e3fe561b8a404358eb43e53c852b40662597f
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Sep 22 17:43:31 2020 +0200

    Camel-AWS2-Eventbridge: Regen
---
 .../catalog/docs/aws2-eventbridge-component.adoc    | 21 +++++++++++++++++++++
 .../ROOT/pages/aws2-eventbridge-component.adoc      | 21 +++++++++++++++++++++
 2 files changed, 42 insertions(+)

diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/aws2-eventbridge-component.adoc b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/aws2-eventbridge-component.adoc
index a681327..a149f5c 100644
--- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/aws2-eventbridge-component.adoc
+++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/aws2-eventbridge-component.adoc
@@ -125,6 +125,7 @@ Camel-AWS2-Eventbridge component provides the following operation on the produce
 
 - putRule
 - putTargets
+- removeTargets
 
 - PutRule: this operation create a rule related to an eventbus
 
@@ -165,6 +166,26 @@ This operation will create a rule named firstrule and it will use a json file fo
 
 This operation will add the target sqs-queue with the arn reported to the targets of the firstrule rule.
 
+- RemoveTargets: this operation will remove a collection of target from the rule 
+
+[source,java]
+--------------------------------------------------------------------------------
+  from("direct:start").process(new Processor() {
+                    
+      @Override
+      public void process(Exchange exchange) throws Exception {
+          exchange.getIn().setHeader(EventbridgeConstants.RULE_NAME, "firstrule");
+          List<String> ids = new ArrayList<String>();
+          targets.add("sqs-queue");
+          exchange.getIn().setHeader(EventbridgeConstants.TARGETS_IDS, targets);
+      }
+  })
+  .to("aws2-eventbridge://test?operation=removeTargets")
+  .to("mock:result");
+--------------------------------------------------------------------------------
+
+This operation will remove the target sqs-queue from the firstrule rule.
+
 == Automatic detection of EventbridgeClient client in registry
 
 The component is capable of detecting the presence of an EventbridgeClient bean into the registry.
diff --git a/docs/components/modules/ROOT/pages/aws2-eventbridge-component.adoc b/docs/components/modules/ROOT/pages/aws2-eventbridge-component.adoc
index 21e2f44..b87e323 100644
--- a/docs/components/modules/ROOT/pages/aws2-eventbridge-component.adoc
+++ b/docs/components/modules/ROOT/pages/aws2-eventbridge-component.adoc
@@ -127,6 +127,7 @@ Camel-AWS2-Eventbridge component provides the following operation on the produce
 
 - putRule
 - putTargets
+- removeTargets
 
 - PutRule: this operation create a rule related to an eventbus
 
@@ -167,6 +168,26 @@ This operation will create a rule named firstrule and it will use a json file fo
 
 This operation will add the target sqs-queue with the arn reported to the targets of the firstrule rule.
 
+- RemoveTargets: this operation will remove a collection of target from the rule 
+
+[source,java]
+--------------------------------------------------------------------------------
+  from("direct:start").process(new Processor() {
+                    
+      @Override
+      public void process(Exchange exchange) throws Exception {
+          exchange.getIn().setHeader(EventbridgeConstants.RULE_NAME, "firstrule");
+          List<String> ids = new ArrayList<String>();
+          targets.add("sqs-queue");
+          exchange.getIn().setHeader(EventbridgeConstants.TARGETS_IDS, targets);
+      }
+  })
+  .to("aws2-eventbridge://test?operation=removeTargets")
+  .to("mock:result");
+--------------------------------------------------------------------------------
+
+This operation will remove the target sqs-queue from the firstrule rule.
+
 == Automatic detection of EventbridgeClient client in registry
 
 The component is capable of detecting the presence of an EventbridgeClient bean into the registry.