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

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git


The following commit(s) were added to refs/heads/main by this push:
     new 1ae640c  Regen
1ae640c is described below

commit 1ae640ced9d0bdaa0363bb20dd729d309572cd30
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Fri Jan 14 06:23:38 2022 +0100

    Regen
---
 .../springboot/catalog/components/google-mail.json | 10 ++++--
 .../src/main/docs/google-mail.json                 | 18 +++++++++++
 .../GoogleMailComponentConfiguration.java          | 37 ++++++++++++++++++++++
 3 files changed, 63 insertions(+), 2 deletions(-)

diff --git 
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/google-mail.json
 
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/google-mail.json
index d338c95..4f96e5b 100644
--- 
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/google-mail.json
+++ 
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/google-mail.json
@@ -26,12 +26,15 @@
     "applicationName": { "kind": "property", "displayName": "Application 
Name", "group": "common", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "configurationClass": 
"org.apache.camel.component.google.mail.GoogleMailConfiguration", 
"configurationField": "configuration", "description": "Google mail application 
name. Example would be camel-google-mail\/1.0" },
     "clientId": { "kind": "property", "displayName": "Client Id", "group": 
"common", "label": "", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"configurationClass": 
"org.apache.camel.component.google.mail.GoogleMailConfiguration", 
"configurationField": "configuration", "description": "Client ID of the mail 
application" },
     "configuration": { "kind": "property", "displayName": "Configuration", 
"group": "common", "label": "", "required": false, "type": "object", 
"javaType": "org.apache.camel.component.google.mail.GoogleMailConfiguration", 
"deprecated": false, "autowired": false, "secret": false, "description": "To 
use the shared configuration" },
+    "delegate": { "kind": "property", "displayName": "Delegate", "group": 
"common", "label": "", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"configurationClass": 
"org.apache.camel.component.google.mail.GoogleMailConfiguration", 
"configurationField": "configuration", "description": "Delegate for wide-domain 
service account" },
+    "scopes": { "kind": "property", "displayName": "Scopes", "group": 
"common", "label": "", "required": false, "type": "array", "javaType": 
"java.util.List<java.lang.String>", "deprecated": false, "autowired": false, 
"secret": false, "configurationClass": 
"org.apache.camel.component.google.mail.GoogleMailConfiguration", 
"configurationField": "configuration", "description": "GMail scopes" },
     "bridgeErrorHandler": { "kind": "property", "displayName": "Bridge Error 
Handler", "group": "consumer", "label": "consumer", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "description": "Allows for bridging the 
consumer to the Camel routing Error Handler, which mean any exceptions occurred 
while the consumer is trying to pickup incoming messages, or the likes, will 
now be processed as a me [...]
     "lazyStartProducer": { "kind": "property", "displayName": "Lazy Start 
Producer", "group": "producer", "label": "producer", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "description": "Whether the producer 
should be started lazy (on the first message). By starting lazy you can use 
this to allow CamelContext and routes to startup in situations where a producer 
may otherwise fail during star [...]
     "autowiredEnabled": { "kind": "property", "displayName": "Autowired 
Enabled", "group": "advanced", "label": "advanced", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": true, "description": "Whether autowiring is 
enabled. This is used for automatic autowiring options (the option must be 
marked as autowired) by looking up in the registry to find if there is a single 
instance of matching type, which t [...]
     "clientFactory": { "kind": "property", "displayName": "Client Factory", 
"group": "advanced", "label": "advanced", "required": false, "type": "object", 
"javaType": "org.apache.camel.component.google.mail.GoogleMailClientFactory", 
"deprecated": false, "autowired": false, "secret": false, "description": "To 
use the GoogleCalendarClientFactory as factory for creating the client. Will by 
default use BatchGoogleMailClientFactory" },
     "accessToken": { "kind": "property", "displayName": "Access Token", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "configurationClass": 
"org.apache.camel.component.google.mail.GoogleMailConfiguration", 
"configurationField": "configuration", "description": "OAuth 2 access token. 
This typically expires after an hour so refreshToken is recommended for long 
term usage." },
     "clientSecret": { "kind": "property", "displayName": "Client Secret", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "configurationClass": 
"org.apache.camel.component.google.mail.GoogleMailConfiguration", 
"configurationField": "configuration", "description": "Client secret of the 
mail application" },
+    "keyResource": { "kind": "property", "displayName": "Key Resource", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "configurationClass": 
"org.apache.camel.component.google.mail.GoogleMailConfiguration", 
"configurationField": "configuration", "description": "Sets .json file with 
credentials for Service account" },
     "refreshToken": { "kind": "property", "displayName": "Refresh Token", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "configurationClass": 
"org.apache.camel.component.google.mail.GoogleMailConfiguration", 
"configurationField": "configuration", "description": "OAuth 2 refresh token. 
Using this, the Google Calendar component can obtain a new accessToken whenever 
the  [...]
   },
   "properties": {
@@ -39,7 +42,9 @@
     "methodName": { "kind": "path", "displayName": "Method Name", "group": 
"common", "label": "", "required": true, "type": "string", "javaType": 
"java.lang.String", "enum": [ "attachments", "create", "delete", "get", 
"getProfile", "gmailImport", "insert", "list", "modify", "patch", "send", 
"stop", "trash", "untrash", "update", "watch" ], "deprecated": false, 
"deprecationNote": "", "autowired": false, "secret": false, 
"configurationClass": "org.apache.camel.component.google.mail.GoogleMa [...]
     "applicationName": { "kind": "parameter", "displayName": "Application 
Name", "group": "common", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "configurationClass": 
"org.apache.camel.component.google.mail.GoogleMailConfiguration", 
"configurationField": "configuration", "description": "Google mail application 
name. Example would be camel-google-mail\/1.0" },
     "clientId": { "kind": "parameter", "displayName": "Client Id", "group": 
"common", "label": "", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"configurationClass": 
"org.apache.camel.component.google.mail.GoogleMailConfiguration", 
"configurationField": "configuration", "description": "Client ID of the mail 
application" },
+    "delegate": { "kind": "parameter", "displayName": "Delegate", "group": 
"common", "label": "", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"configurationClass": 
"org.apache.camel.component.google.mail.GoogleMailConfiguration", 
"configurationField": "configuration", "description": "Delegate for wide-domain 
service account" },
     "inBody": { "kind": "parameter", "displayName": "In Body", "group": 
"common", "label": "", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "Sets the name of a parameter to be passed in the exchange In 
Body" },
+    "scopes": { "kind": "parameter", "displayName": "Scopes", "group": 
"common", "label": "", "required": false, "type": "array", "javaType": 
"java.util.List<java.lang.String>", "deprecated": false, "autowired": false, 
"secret": false, "configurationClass": 
"org.apache.camel.component.google.mail.GoogleMailConfiguration", 
"configurationField": "configuration", "description": "GMail scopes" },
     "bridgeErrorHandler": { "kind": "parameter", "displayName": "Bridge Error 
Handler", "group": "consumer", "label": "consumer", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "description": "Allows for bridging the 
consumer to the Camel routing Error Handler, which mean any exceptions occurred 
while the consumer is trying to pickup incoming messages, or the likes, will 
now be processed as a m [...]
     "sendEmptyMessageWhenIdle": { "kind": "parameter", "displayName": "Send 
Empty Message When Idle", "group": "consumer", "label": "consumer", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": false, "description": "If 
the polling consumer did not poll any files, you can enable this option to send 
an empty message (no body) instead." },
     "exceptionHandler": { "kind": "parameter", "displayName": "Exception 
Handler", "group": "consumer (advanced)", "label": "consumer,advanced", 
"required": false, "type": "object", "javaType": 
"org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.", 
"deprecated": false, "autowired": false, "secret": false, "description": "To 
let the consumer use a custom ExceptionHandler. Notice if the option 
bridgeErrorHandler is enabled then this option is not in use. By default the 
con [...]
@@ -62,13 +67,14 @@
     "useFixedDelay": { "kind": "parameter", "displayName": "Use Fixed Delay", 
"group": "scheduler", "label": "consumer,scheduler", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": true, "description": "Controls if fixed delay 
or fixed rate is used. See ScheduledExecutorService in JDK for details." },
     "accessToken": { "kind": "parameter", "displayName": "Access Token", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "configurationClass": 
"org.apache.camel.component.google.mail.GoogleMailConfiguration", 
"configurationField": "configuration", "description": "OAuth 2 access token. 
This typically expires after an hour so refreshToken is recommended for long 
term usage." },
     "clientSecret": { "kind": "parameter", "displayName": "Client Secret", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "configurationClass": 
"org.apache.camel.component.google.mail.GoogleMailConfiguration", 
"configurationField": "configuration", "description": "Client secret of the 
mail application" },
+    "keyResource": { "kind": "parameter", "displayName": "Key Resource", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "configurationClass": 
"org.apache.camel.component.google.mail.GoogleMailConfiguration", 
"configurationField": "configuration", "description": "Sets .json file with 
credentials for Service account" },
     "refreshToken": { "kind": "parameter", "displayName": "Refresh Token", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "configurationClass": 
"org.apache.camel.component.google.mail.GoogleMailConfiguration", 
"configurationField": "configuration", "description": "OAuth 2 refresh token. 
Using this, the Google Calendar component can obtain a new accessToken whenever 
the [...]
   },
   "apis": {
     "attachments": { "consumerOnly": false, "producerOnly": false, 
"description": "The attachments collection of methods", "methods": { "get": { 
"description": "Gets the specified message attachment", "signatures": [ 
"com.google.api.services.gmail.Gmail$Users$Messages$Attachments$Get get(String 
userId, String messageId, String id)" ] } } },
     "drafts": { "consumerOnly": false, "producerOnly": false, "description": 
"The drafts collection of methods", "methods": { "create": { "description": 
"Creates a new draft with the DRAFT label", "signatures": [ 
"com.google.api.services.gmail.Gmail$Users$Drafts$Create create(String userId, 
com.google.api.services.gmail.model.Draft content)", 
"com.google.api.services.gmail.Gmail$Users$Drafts$Create create(String userId, 
com.google.api.services.gmail.model.Draft content, com.google.api.cl [...]
     "history": { "consumerOnly": false, "producerOnly": false, "description": 
"The history collection of methods", "methods": { "list": { "description": 
"Lists the history of all changes to the given mailbox", "signatures": [ 
"com.google.api.services.gmail.Gmail$Users$History$List list(String userId)" ] 
} } },
-    "labels": { "consumerOnly": false, "producerOnly": false, "description": 
"The labels collection of methods", "methods": { "create": { "description": 
"Creates a new label", "signatures": [ 
"com.google.api.services.gmail.Gmail$Users$Labels$Create create(String userId, 
com.google.api.services.gmail.model.Label content)" ] }, "delete": { 
"description": "Immediately and permanently deletes the specified label and 
removes it from any messages and threads that it is applied to", "signatures 
[...]
+    "labels": { "consumerOnly": false, "producerOnly": false, "description": 
"The labels collection of methods", "methods": { "create": { "description": 
"Creates a new label", "signatures": [ 
"com.google.api.services.gmail.Gmail$Users$Labels$Create create(String userId, 
com.google.api.services.gmail.model.Label content)" ] }, "delete": { 
"description": "Immediately and permanently deletes the specified label and 
removes it from any messages and threads that it is applied to", "signatures 
[...]
     "messages": { "consumerOnly": false, "producerOnly": false, "description": 
"The messages collection of methods", "methods": { "batchDelete": { 
"description": "Deletes many messages by message ID", "signatures": [ 
"com.google.api.services.gmail.Gmail$Users$Messages$BatchDelete 
batchDelete(String userId, 
com.google.api.services.gmail.model.BatchDeleteMessagesRequest content)" ] }, 
"batchModify": { "description": "Modifies the labels on the specified 
messages", "signatures": [ "com.goog [...]
     "threads": { "consumerOnly": false, "producerOnly": false, "description": 
"The threads collection of methods", "methods": { "delete": { "description": 
"Immediately and permanently deletes the specified thread", "signatures": [ 
"com.google.api.services.gmail.Gmail$Users$Threads$Delete delete(String userId, 
String id)" ] }, "get": { "description": "Gets the specified thread", 
"signatures": [ "com.google.api.services.gmail.Gmail$Users$Threads$Get 
get(String userId, String id)" ] }, "lis [...]
     "users": { "consumerOnly": false, "producerOnly": false, "description": 
"The users collection of methods", "methods": { "getProfile": { "description": 
"Gets the current user's Gmail profile", "signatures": [ 
"com.google.api.services.gmail.Gmail$Users$GetProfile getProfile(String 
userId)" ] }, "stop": { "description": "Stop receiving push notifications for 
the given user mailbox", "signatures": [ 
"com.google.api.services.gmail.Gmail$Users$Stop stop(String userId)" ] }, 
"watch": { "des [...]
@@ -78,7 +84,7 @@
     "drafts": { "methods": { "create": { "properties": { "content": { "kind": 
"parameter", "displayName": "Content", "group": "common", "label": "", 
"required": false, "type": "object", "javaType": 
"com.google.api.services.gmail.model.Draft", "deprecated": false, "autowired": 
false, "secret": false, "description": "The 
com.google.api.services.gmail.model.Draft media metadata or null if none", 
"optional": false }, "mediaContent": { "kind": "parameter", "displayName": 
"Media Content", "gro [...]
     "history": { "methods": { "list": { "properties": { "userId": { "kind": 
"parameter", "displayName": "User Id", "group": "common", "label": "", 
"required": false, "type": "string", "javaType": "java.lang.String", 
"deprecated": false, "autowired": false, "secret": false, "description": "The 
user's email address. The special value me can be used to indicate the 
authenticated user. default: me", "optional": false } } } } },
     "labels": { "methods": { "create": { "properties": { "content": { "kind": 
"parameter", "displayName": "Content", "group": "common", "label": "", 
"required": false, "type": "object", "javaType": 
"com.google.api.services.gmail.model.Label", "deprecated": false, "autowired": 
false, "secret": false, "description": "The 
com.google.api.services.gmail.model.Label", "optional": false }, "userId": { 
"kind": "parameter", "displayName": "User Id", "group": "common", "label": "", 
"required": fal [...]
-    "messages": { "methods": { "batchDelete": { "properties": { 
"batchDeleteMessagesRequest": { "kind": "parameter", "displayName": "Batch 
Delete Messages Request", "group": "common", "label": "", "required": false, 
"type": "object", "javaType": 
"com.google.api.services.gmail.model.BatchDeleteMessagesRequest", "deprecated": 
false, "autowired": false, "secret": false, "description": "The 
com.google.api.services.gmail.model.BatchDeleteMessagesRequest", "optional": 
false }, "userId": { "kin [...]
+    "messages": { "methods": { "batchDelete": { "properties": { 
"batchDeleteMessagesRequest": { "kind": "parameter", "displayName": "Batch 
Delete Messages Request", "group": "common", "label": "", "required": false, 
"type": "object", "javaType": 
"com.google.api.services.gmail.model.BatchDeleteMessagesRequest", "deprecated": 
false, "autowired": false, "secret": false, "description": "The 
com.google.api.services.gmail.model.BatchDeleteMessagesRequest", "optional": 
false }, "userId": { "kin [...]
     "threads": { "methods": { "delete": { "properties": { "id": { "kind": 
"parameter", "displayName": "Id", "group": "common", "label": "", "required": 
false, "type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "description": "ID of the Thread to 
delete", "optional": false }, "userId": { "kind": "parameter", "displayName": 
"User Id", "group": "common", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", [...]
     "users": { "methods": { "getProfile": { "properties": { "userId": { 
"kind": "parameter", "displayName": "User Id", "group": "common", "label": "", 
"required": false, "type": "string", "javaType": "java.lang.String", 
"deprecated": false, "autowired": false, "secret": false, "description": "The 
user's email address. The special value me can be used to indicate the 
authenticated user. default: me", "optional": false } } }, "stop": { 
"properties": { "userId": { "kind": "parameter", "disp [...]
   }
diff --git 
a/components-starter/camel-google-mail-starter/src/main/docs/google-mail.json 
b/components-starter/camel-google-mail-starter/src/main/docs/google-mail.json
index ce1c900..6cafd3c 100644
--- 
a/components-starter/camel-google-mail-starter/src/main/docs/google-mail.json
+++ 
b/components-starter/camel-google-mail-starter/src/main/docs/google-mail.json
@@ -174,12 +174,24 @@
       "sourceType": 
"org.apache.camel.spring.boot.ComponentConfigurationPropertiesCommon$CustomizerProperties"
     },
     {
+      "name": "camel.component.google-mail.delegate",
+      "type": "java.lang.String",
+      "description": "Delegate for wide-domain service account",
+      "sourceType": 
"org.apache.camel.component.google.mail.springboot.GoogleMailComponentConfiguration"
+    },
+    {
       "name": "camel.component.google-mail.enabled",
       "type": "java.lang.Boolean",
       "description": "Whether to enable auto configuration of the google-mail 
component. This is enabled by default.",
       "sourceType": 
"org.apache.camel.component.google.mail.springboot.GoogleMailComponentConfiguration"
     },
     {
+      "name": "camel.component.google-mail.key-resource",
+      "type": "java.lang.String",
+      "description": "Sets .json file with credentials for Service account",
+      "sourceType": 
"org.apache.camel.component.google.mail.springboot.GoogleMailComponentConfiguration"
+    },
+    {
       "name": "camel.component.google-mail.lazy-start-producer",
       "type": "java.lang.Boolean",
       "description": "Whether the producer should be started lazy (on the 
first message). By starting lazy you can use this to allow CamelContext and 
routes to startup in situations where a producer may otherwise fail during 
starting and cause the route to fail being started. By deferring this startup 
to be lazy then the startup failure can be handled during routing messages via 
Camel's routing error handlers. Beware that when the first message is processed 
then creating and starting the [...]
@@ -191,6 +203,12 @@
       "type": "java.lang.String",
       "description": "OAuth 2 refresh token. Using this, the Google Calendar 
component can obtain a new accessToken whenever the current one expires - a 
necessity if the application is long-lived.",
       "sourceType": 
"org.apache.camel.component.google.mail.springboot.GoogleMailComponentConfiguration"
+    },
+    {
+      "name": "camel.component.google-mail.scopes",
+      "type": "java.util.List<java.lang.String>",
+      "description": "GMail scopes",
+      "sourceType": 
"org.apache.camel.component.google.mail.springboot.GoogleMailComponentConfiguration"
     }
   ],
   "hints": []
diff --git 
a/components-starter/camel-google-mail-starter/src/main/java/org/apache/camel/component/google/mail/springboot/GoogleMailComponentConfiguration.java
 
b/components-starter/camel-google-mail-starter/src/main/java/org/apache/camel/component/google/mail/springboot/GoogleMailComponentConfiguration.java
index bc578c9..3a5bb69 100644
--- 
a/components-starter/camel-google-mail-starter/src/main/java/org/apache/camel/component/google/mail/springboot/GoogleMailComponentConfiguration.java
+++ 
b/components-starter/camel-google-mail-starter/src/main/java/org/apache/camel/component/google/mail/springboot/GoogleMailComponentConfiguration.java
@@ -16,6 +16,7 @@
  */
 package org.apache.camel.component.google.mail.springboot;
 
+import java.util.List;
 import javax.annotation.Generated;
 import org.apache.camel.component.google.mail.GoogleMailClientFactory;
 import org.apache.camel.component.google.mail.GoogleMailConfiguration;
@@ -52,6 +53,14 @@ public class GoogleMailComponentConfiguration
      */
     private GoogleMailConfiguration configuration;
     /**
+     * Delegate for wide-domain service account
+     */
+    private String delegate;
+    /**
+     * GMail scopes
+     */
+    private List<String> scopes;
+    /**
      * Allows for bridging the consumer to the Camel routing Error Handler,
      * which mean any exceptions occurred while the consumer is trying to 
pickup
      * incoming messages, or the likes, will now be processed as a message and
@@ -96,6 +105,10 @@ public class GoogleMailComponentConfiguration
      */
     private String clientSecret;
     /**
+     * Sets .json file with credentials for Service account
+     */
+    private String keyResource;
+    /**
      * OAuth 2 refresh token. Using this, the Google Calendar component can
      * obtain a new accessToken whenever the current one expires - a necessity
      * if the application is long-lived.
@@ -126,6 +139,22 @@ public class GoogleMailComponentConfiguration
         this.configuration = configuration;
     }
 
+    public String getDelegate() {
+        return delegate;
+    }
+
+    public void setDelegate(String delegate) {
+        this.delegate = delegate;
+    }
+
+    public List<String> getScopes() {
+        return scopes;
+    }
+
+    public void setScopes(List<String> scopes) {
+        this.scopes = scopes;
+    }
+
     public Boolean getBridgeErrorHandler() {
         return bridgeErrorHandler;
     }
@@ -174,6 +203,14 @@ public class GoogleMailComponentConfiguration
         this.clientSecret = clientSecret;
     }
 
+    public String getKeyResource() {
+        return keyResource;
+    }
+
+    public void setKeyResource(String keyResource) {
+        this.keyResource = keyResource;
+    }
+
     public String getRefreshToken() {
         return refreshToken;
     }

Reply via email to