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.git
The following commit(s) were added to refs/heads/main by this push: new eb23667a65b camel-dropbox - Add labels to options eb23667a65b is described below commit eb23667a65bd16cb198f83303975ab6a54676242 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Wed Jun 8 06:50:43 2022 +0200 camel-dropbox - Add labels to options --- .../apache/camel/catalog/components/dropbox.json | 26 +- .../dropbox/DropboxEndpointUriFactory.java | 8 +- .../apache/camel/component/dropbox/dropbox.json | 26 +- .../component/dropbox/DropboxConfiguration.java | 33 +- .../dsl/DropboxEndpointBuilderFactory.java | 751 +++++++++------------ 5 files changed, 354 insertions(+), 490 deletions(-) diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/dropbox.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/dropbox.json index b5a8dc6c470..43a09cd5895 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/dropbox.json +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/dropbox.json @@ -43,21 +43,21 @@ }, "properties": { "operation": { "kind": "path", "displayName": "Operation", "group": "common", "label": "", "required": true, "type": "object", "javaType": "org.apache.camel.component.dropbox.util.DropboxOperation", "enum": [ "put", "del", "search", "get", "move" ], "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "description": "The specific action ( [...] - "accessToken": { "kind": "parameter", "displayName": "Access Token", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "description": "The access token to make API requests for a specific Dropbox user" }, - "apiKey": { "kind": "parameter", "displayName": "Api Key", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "description": "The apiKey to make API requests for a specific Dropbox user" }, - "apiSecret": { "kind": "parameter", "displayName": "Api Secret", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "description": "The apiSecret to make API requests for a specific Dropbox user" }, - "client": { "kind": "parameter", "displayName": "Client", "group": "common", "label": "", "required": false, "type": "object", "javaType": "com.dropbox.core.v2.DbxClientV2", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "description": "To use an existing DbxClient instance as DropBox client." }, - "clientIdentifier": { "kind": "parameter", "displayName": "Client Identifier", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "description": "Name of the app registered to make API requests" }, - "expireIn": { "kind": "parameter", "displayName": "Expire In", "group": "common", "label": "", "required": true, "type": "integer", "javaType": "java.lang.Long", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "description": "The expire time to access token for a specific Dropbox user" }, - "localPath": { "kind": "parameter", "displayName": "Local Path", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "description": "Optional folder or file to upload on Dropbox from the local filesystem. If this option has not been configured then the message [...] - "newRemotePath": { "kind": "parameter", "displayName": "New Remote Path", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "description": "Destination file or folder" }, - "query": { "kind": "parameter", "displayName": "Query", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "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, a [...] - "refreshToken": { "kind": "parameter", "displayName": "Refresh Token", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "description": "The refresh token to refresh the access token for a specific Dropbox user" }, - "remotePath": { "kind": "parameter", "displayName": "Remote Path", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "description": "Original file or folder to move" }, - "uploadMode": { "kind": "parameter", "displayName": "Upload Mode", "group": "common", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.dropbox.util.DropboxUploadMode", "enum": [ "add", "force" ], "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "description": "Which mode to upload. in case of add the new file will be [...] + "clientIdentifier": { "kind": "parameter", "displayName": "Client Identifier", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "description": "Name of the app registered to make API requests" }, + "query": { "kind": "parameter", "displayName": "Query", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "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 [...] + "remotePath": { "kind": "parameter", "displayName": "Remote Path", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "description": "Original file or folder to move" }, "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 [...] "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 [...] "exchangePattern": { "kind": "parameter", "displayName": "Exchange Pattern", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "object", "javaType": "org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut", "InOptionalOut" ], "deprecated": false, "autowired": false, "secret": false, "description": "Sets the exchange pattern when the consumer creates an exchange." }, - "lazyStartProducer": { "kind": "parameter", "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 sta [...] + "lazyStartProducer": { "kind": "parameter", "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 sta [...] + "localPath": { "kind": "parameter", "displayName": "Local Path", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "description": "Optional folder or file to upload on Dropbox from the local filesystem. If this option has not been configured then th [...] + "newRemotePath": { "kind": "parameter", "displayName": "New Remote Path", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "description": "Destination file or folder" }, + "uploadMode": { "kind": "parameter", "displayName": "Upload Mode", "group": "producer", "label": "producer", "required": false, "type": "object", "javaType": "org.apache.camel.component.dropbox.util.DropboxUploadMode", "enum": [ "add", "force" ], "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "description": "Which mode to upload. in case of add the new fi [...] + "client": { "kind": "parameter", "displayName": "Client", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "com.dropbox.core.v2.DbxClientV2", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "description": "To use an existing DbxClient instance as DropBox client." }, + "accessToken": { "kind": "parameter", "displayName": "Access Token", "group": "security", "label": "security", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "description": "The access token to make API requests for a specific Dropbox user" }, + "apiKey": { "kind": "parameter", "displayName": "Api Key", "group": "security", "label": "security", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "description": "The apiKey to make API requests for a specific Dropbox user" }, + "apiSecret": { "kind": "parameter", "displayName": "Api Secret", "group": "security", "label": "security", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "description": "The apiSecret to make API requests for a specific Dropbox user" }, + "expireIn": { "kind": "parameter", "displayName": "Expire In", "group": "security", "label": "security", "required": true, "type": "integer", "javaType": "java.lang.Long", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "description": "The expire time to access token for a specific Dropbox user" }, + "refreshToken": { "kind": "parameter", "displayName": "Refresh Token", "group": "security", "label": "security", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "description": "The refresh token to refresh the access token for a specific Dropbox user" } } } diff --git a/components/camel-dropbox/src/generated/java/org/apache/camel/component/dropbox/DropboxEndpointUriFactory.java b/components/camel-dropbox/src/generated/java/org/apache/camel/component/dropbox/DropboxEndpointUriFactory.java index 8fb2f88a458..292f1e06c15 100644 --- a/components/camel-dropbox/src/generated/java/org/apache/camel/component/dropbox/DropboxEndpointUriFactory.java +++ b/components/camel-dropbox/src/generated/java/org/apache/camel/component/dropbox/DropboxEndpointUriFactory.java @@ -40,7 +40,13 @@ public class DropboxEndpointUriFactory extends org.apache.camel.support.componen props.add("remotePath"); props.add("uploadMode"); PROPERTY_NAMES = Collections.unmodifiableSet(props); - SECRET_PROPERTY_NAMES = Collections.emptySet(); + Set<String> secretProps = new HashSet<>(5); + secretProps.add("accessToken"); + secretProps.add("apiKey"); + secretProps.add("apiSecret"); + secretProps.add("expireIn"); + secretProps.add("refreshToken"); + SECRET_PROPERTY_NAMES = Collections.unmodifiableSet(secretProps); MULTI_VALUE_PREFIXES = Collections.emptySet(); } diff --git a/components/camel-dropbox/src/generated/resources/org/apache/camel/component/dropbox/dropbox.json b/components/camel-dropbox/src/generated/resources/org/apache/camel/component/dropbox/dropbox.json index b5a8dc6c470..43a09cd5895 100644 --- a/components/camel-dropbox/src/generated/resources/org/apache/camel/component/dropbox/dropbox.json +++ b/components/camel-dropbox/src/generated/resources/org/apache/camel/component/dropbox/dropbox.json @@ -43,21 +43,21 @@ }, "properties": { "operation": { "kind": "path", "displayName": "Operation", "group": "common", "label": "", "required": true, "type": "object", "javaType": "org.apache.camel.component.dropbox.util.DropboxOperation", "enum": [ "put", "del", "search", "get", "move" ], "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "description": "The specific action ( [...] - "accessToken": { "kind": "parameter", "displayName": "Access Token", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "description": "The access token to make API requests for a specific Dropbox user" }, - "apiKey": { "kind": "parameter", "displayName": "Api Key", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "description": "The apiKey to make API requests for a specific Dropbox user" }, - "apiSecret": { "kind": "parameter", "displayName": "Api Secret", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "description": "The apiSecret to make API requests for a specific Dropbox user" }, - "client": { "kind": "parameter", "displayName": "Client", "group": "common", "label": "", "required": false, "type": "object", "javaType": "com.dropbox.core.v2.DbxClientV2", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "description": "To use an existing DbxClient instance as DropBox client." }, - "clientIdentifier": { "kind": "parameter", "displayName": "Client Identifier", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "description": "Name of the app registered to make API requests" }, - "expireIn": { "kind": "parameter", "displayName": "Expire In", "group": "common", "label": "", "required": true, "type": "integer", "javaType": "java.lang.Long", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "description": "The expire time to access token for a specific Dropbox user" }, - "localPath": { "kind": "parameter", "displayName": "Local Path", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "description": "Optional folder or file to upload on Dropbox from the local filesystem. If this option has not been configured then the message [...] - "newRemotePath": { "kind": "parameter", "displayName": "New Remote Path", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "description": "Destination file or folder" }, - "query": { "kind": "parameter", "displayName": "Query", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "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, a [...] - "refreshToken": { "kind": "parameter", "displayName": "Refresh Token", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "description": "The refresh token to refresh the access token for a specific Dropbox user" }, - "remotePath": { "kind": "parameter", "displayName": "Remote Path", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "description": "Original file or folder to move" }, - "uploadMode": { "kind": "parameter", "displayName": "Upload Mode", "group": "common", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.dropbox.util.DropboxUploadMode", "enum": [ "add", "force" ], "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "description": "Which mode to upload. in case of add the new file will be [...] + "clientIdentifier": { "kind": "parameter", "displayName": "Client Identifier", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "description": "Name of the app registered to make API requests" }, + "query": { "kind": "parameter", "displayName": "Query", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "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 [...] + "remotePath": { "kind": "parameter", "displayName": "Remote Path", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "description": "Original file or folder to move" }, "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 [...] "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 [...] "exchangePattern": { "kind": "parameter", "displayName": "Exchange Pattern", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "object", "javaType": "org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut", "InOptionalOut" ], "deprecated": false, "autowired": false, "secret": false, "description": "Sets the exchange pattern when the consumer creates an exchange." }, - "lazyStartProducer": { "kind": "parameter", "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 sta [...] + "lazyStartProducer": { "kind": "parameter", "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 sta [...] + "localPath": { "kind": "parameter", "displayName": "Local Path", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "description": "Optional folder or file to upload on Dropbox from the local filesystem. If this option has not been configured then th [...] + "newRemotePath": { "kind": "parameter", "displayName": "New Remote Path", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "description": "Destination file or folder" }, + "uploadMode": { "kind": "parameter", "displayName": "Upload Mode", "group": "producer", "label": "producer", "required": false, "type": "object", "javaType": "org.apache.camel.component.dropbox.util.DropboxUploadMode", "enum": [ "add", "force" ], "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "description": "Which mode to upload. in case of add the new fi [...] + "client": { "kind": "parameter", "displayName": "Client", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "com.dropbox.core.v2.DbxClientV2", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "description": "To use an existing DbxClient instance as DropBox client." }, + "accessToken": { "kind": "parameter", "displayName": "Access Token", "group": "security", "label": "security", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "description": "The access token to make API requests for a specific Dropbox user" }, + "apiKey": { "kind": "parameter", "displayName": "Api Key", "group": "security", "label": "security", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "description": "The apiKey to make API requests for a specific Dropbox user" }, + "apiSecret": { "kind": "parameter", "displayName": "Api Secret", "group": "security", "label": "security", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "description": "The apiSecret to make API requests for a specific Dropbox user" }, + "expireIn": { "kind": "parameter", "displayName": "Expire In", "group": "security", "label": "security", "required": true, "type": "integer", "javaType": "java.lang.Long", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "description": "The expire time to access token for a specific Dropbox user" }, + "refreshToken": { "kind": "parameter", "displayName": "Refresh Token", "group": "security", "label": "security", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.dropbox.DropboxConfiguration", "configurationField": "configuration", "description": "The refresh token to refresh the access token for a specific Dropbox user" } } } diff --git a/components/camel-dropbox/src/main/java/org/apache/camel/component/dropbox/DropboxConfiguration.java b/components/camel-dropbox/src/main/java/org/apache/camel/component/dropbox/DropboxConfiguration.java index 48414fe6998..45dd768de62 100644 --- a/components/camel-dropbox/src/main/java/org/apache/camel/component/dropbox/DropboxConfiguration.java +++ b/components/camel-dropbox/src/main/java/org/apache/camel/component/dropbox/DropboxConfiguration.java @@ -33,51 +33,44 @@ public class DropboxConfiguration { @UriPath @Metadata(required = true) private DropboxOperation operation; + //dropbox auth options @UriParam - @Metadata(required = true) + @Metadata(label = "security", required = true, secret = true) private String accessToken; - - //dropbox auth options @UriParam - @Metadata(required = true) + @Metadata(label = "security", required = true, secret = true) private Long expireIn; - - //dropbox auth options @UriParam - @Metadata(required = true) + @Metadata(label = "security", required = true, secret = true) private String refreshToken; - - //dropbox auth options @UriParam - @Metadata(required = true) + @Metadata(label = "security", required = true, secret = true) private String apiKey; - - //dropbox auth options @UriParam - @Metadata(required = true) + @Metadata(label = "security", required = true, secret = true) private String apiSecret; //local path to put files - @UriParam + @UriParam(label = "producer") private String localPath; //where to put files on dropbox - @UriParam + @UriParam(label = "common") private String remotePath; //new path on dropbox when moving files - @UriParam + @UriParam(label = "producer") private String newRemotePath; //search query on dropbox - @UriParam + @UriParam(label = "common") private String query; //in case of uploading if force or add existing file - @UriParam + @UriParam(label = "producer") private DropboxUploadMode uploadMode; //id of the app - @UriParam + @UriParam(label = "common") private String clientIdentifier; //reference to dropbox client - @UriParam + @UriParam(label = "advanced") private DbxClientV2 client; /** diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/DropboxEndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/DropboxEndpointBuilderFactory.java index 0d67e0122cb..750c921216f 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/DropboxEndpointBuilderFactory.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/DropboxEndpointBuilderFactory.java @@ -45,172 +45,169 @@ public interface DropboxEndpointBuilderFactory { return (AdvancedDropboxEndpointConsumerBuilder) this; } /** - * The access token to make API requests for a specific Dropbox user. + * Name of the app registered to make API requests. * * The option is a: <code>java.lang.String</code> type. * - * Required: true * Group: common * - * @param accessToken the value to set + * @param clientIdentifier the value to set * @return the dsl builder */ - default DropboxEndpointConsumerBuilder accessToken(String accessToken) { - doSetProperty("accessToken", accessToken); + default DropboxEndpointConsumerBuilder clientIdentifier( + String clientIdentifier) { + doSetProperty("clientIdentifier", clientIdentifier); return this; } /** - * The apiKey to make API requests for a specific Dropbox user. + * 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. * * The option is a: <code>java.lang.String</code> type. * - * Required: true * Group: common * - * @param apiKey the value to set + * @param query the value to set * @return the dsl builder */ - default DropboxEndpointConsumerBuilder apiKey(String apiKey) { - doSetProperty("apiKey", apiKey); + default DropboxEndpointConsumerBuilder query(String query) { + doSetProperty("query", query); return this; } /** - * The apiSecret to make API requests for a specific Dropbox user. + * Original file or folder to move. * * The option is a: <code>java.lang.String</code> type. * - * Required: true * Group: common * - * @param apiSecret the value to set + * @param remotePath the value to set * @return the dsl builder */ - default DropboxEndpointConsumerBuilder apiSecret(String apiSecret) { - doSetProperty("apiSecret", apiSecret); + default DropboxEndpointConsumerBuilder remotePath(String remotePath) { + doSetProperty("remotePath", remotePath); return this; } /** - * To use an existing DbxClient instance as DropBox client. + * 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 handled by the routing Error Handler. By default the + * consumer will use the org.apache.camel.spi.ExceptionHandler to deal + * with exceptions, that will be logged at WARN or ERROR level and + * ignored. * - * The option is a: - * <code>com.dropbox.core.v2.DbxClientV2</code> type. + * The option is a: <code>boolean</code> type. * - * Group: common + * Default: false + * Group: consumer * - * @param client the value to set + * @param bridgeErrorHandler the value to set * @return the dsl builder */ - default DropboxEndpointConsumerBuilder client( - com.dropbox.core.v2.DbxClientV2 client) { - doSetProperty("client", client); + default DropboxEndpointConsumerBuilder bridgeErrorHandler( + boolean bridgeErrorHandler) { + doSetProperty("bridgeErrorHandler", bridgeErrorHandler); return this; } /** - * To use an existing DbxClient instance as DropBox client. + * 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 handled by the routing Error Handler. By default the + * consumer will use the org.apache.camel.spi.ExceptionHandler to deal + * with exceptions, that will be logged at WARN or ERROR level and + * ignored. * - * The option will be converted to a - * <code>com.dropbox.core.v2.DbxClientV2</code> type. + * The option will be converted to a <code>boolean</code> + * type. * - * Group: common + * Default: false + * Group: consumer * - * @param client the value to set + * @param bridgeErrorHandler the value to set * @return the dsl builder */ - default DropboxEndpointConsumerBuilder client(String client) { - doSetProperty("client", client); + default DropboxEndpointConsumerBuilder bridgeErrorHandler( + String bridgeErrorHandler) { + doSetProperty("bridgeErrorHandler", bridgeErrorHandler); return this; } /** - * Name of the app registered to make API requests. + * The access token to make API requests for a specific Dropbox user. * * The option is a: <code>java.lang.String</code> type. * - * Group: common - * - * @param clientIdentifier the value to set - * @return the dsl builder - */ - default DropboxEndpointConsumerBuilder clientIdentifier( - String clientIdentifier) { - doSetProperty("clientIdentifier", clientIdentifier); - return this; - } - /** - * The expire time to access token for a specific Dropbox user. - * - * The option is a: <code>java.lang.Long</code> type. - * * Required: true - * Group: common + * Group: security * - * @param expireIn the value to set + * @param accessToken the value to set * @return the dsl builder */ - default DropboxEndpointConsumerBuilder expireIn(Long expireIn) { - doSetProperty("expireIn", expireIn); + default DropboxEndpointConsumerBuilder accessToken(String accessToken) { + doSetProperty("accessToken", accessToken); return this; } /** - * The expire time to access token for a specific Dropbox user. + * The apiKey to make API requests for a specific Dropbox user. * - * The option will be converted to a - * <code>java.lang.Long</code> type. + * The option is a: <code>java.lang.String</code> type. * * Required: true - * Group: common + * Group: security * - * @param expireIn the value to set + * @param apiKey the value to set * @return the dsl builder */ - default DropboxEndpointConsumerBuilder expireIn(String expireIn) { - doSetProperty("expireIn", expireIn); + default DropboxEndpointConsumerBuilder apiKey(String apiKey) { + doSetProperty("apiKey", apiKey); return this; } /** - * Optional folder or file to upload on Dropbox from the local - * filesystem. If this option has not been configured then the message - * body is used as the content to upload. + * The apiSecret to make API requests for a specific Dropbox user. * * The option is a: <code>java.lang.String</code> type. * - * Group: common + * Required: true + * Group: security * - * @param localPath the value to set + * @param apiSecret the value to set * @return the dsl builder */ - default DropboxEndpointConsumerBuilder localPath(String localPath) { - doSetProperty("localPath", localPath); + default DropboxEndpointConsumerBuilder apiSecret(String apiSecret) { + doSetProperty("apiSecret", apiSecret); return this; } /** - * Destination file or folder. + * The expire time to access token for a specific Dropbox user. * - * The option is a: <code>java.lang.String</code> type. + * The option is a: <code>java.lang.Long</code> type. * - * Group: common + * Required: true + * Group: security * - * @param newRemotePath the value to set + * @param expireIn the value to set * @return the dsl builder */ - default DropboxEndpointConsumerBuilder newRemotePath( - String newRemotePath) { - doSetProperty("newRemotePath", newRemotePath); + default DropboxEndpointConsumerBuilder expireIn(Long expireIn) { + doSetProperty("expireIn", expireIn); return this; } /** - * 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. + * The expire time to access token for a specific Dropbox user. * - * The option is a: <code>java.lang.String</code> type. + * The option will be converted to a + * <code>java.lang.Long</code> type. * - * Group: common + * Required: true + * Group: security * - * @param query the value to set + * @param expireIn the value to set * @return the dsl builder */ - default DropboxEndpointConsumerBuilder query(String query) { - doSetProperty("query", query); + default DropboxEndpointConsumerBuilder expireIn(String expireIn) { + doSetProperty("expireIn", expireIn); return this; } /** @@ -220,7 +217,7 @@ public interface DropboxEndpointBuilderFactory { * The option is a: <code>java.lang.String</code> type. * * Required: true - * Group: common + * Group: security * * @param refreshToken the value to set * @return the dsl builder @@ -229,102 +226,6 @@ public interface DropboxEndpointBuilderFactory { doSetProperty("refreshToken", refreshToken); return this; } - /** - * Original file or folder to move. - * - * The option is a: <code>java.lang.String</code> type. - * - * Group: common - * - * @param remotePath the value to set - * @return the dsl builder - */ - default DropboxEndpointConsumerBuilder remotePath(String remotePath) { - doSetProperty("remotePath", remotePath); - return this; - } - /** - * Which mode to upload. in case of add the new file will be renamed if - * a file with the same name already exists on dropbox. in case of force - * if a file with the same name already exists on dropbox, this will be - * overwritten. - * - * The option is a: - * <code>org.apache.camel.component.dropbox.util.DropboxUploadMode</code> type. - * - * Group: common - * - * @param uploadMode the value to set - * @return the dsl builder - */ - default DropboxEndpointConsumerBuilder uploadMode( - org.apache.camel.component.dropbox.util.DropboxUploadMode uploadMode) { - doSetProperty("uploadMode", uploadMode); - return this; - } - /** - * Which mode to upload. in case of add the new file will be renamed if - * a file with the same name already exists on dropbox. in case of force - * if a file with the same name already exists on dropbox, this will be - * overwritten. - * - * The option will be converted to a - * <code>org.apache.camel.component.dropbox.util.DropboxUploadMode</code> type. - * - * Group: common - * - * @param uploadMode the value to set - * @return the dsl builder - */ - default DropboxEndpointConsumerBuilder uploadMode(String uploadMode) { - doSetProperty("uploadMode", uploadMode); - return this; - } - /** - * 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 handled by the routing Error Handler. By default the - * consumer will use the org.apache.camel.spi.ExceptionHandler to deal - * with exceptions, that will be logged at WARN or ERROR level and - * ignored. - * - * The option is a: <code>boolean</code> type. - * - * Default: false - * Group: consumer - * - * @param bridgeErrorHandler the value to set - * @return the dsl builder - */ - default DropboxEndpointConsumerBuilder bridgeErrorHandler( - boolean bridgeErrorHandler) { - doSetProperty("bridgeErrorHandler", bridgeErrorHandler); - return this; - } - /** - * 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 handled by the routing Error Handler. By default the - * consumer will use the org.apache.camel.spi.ExceptionHandler to deal - * with exceptions, that will be logged at WARN or ERROR level and - * ignored. - * - * The option will be converted to a <code>boolean</code> - * type. - * - * Default: false - * Group: consumer - * - * @param bridgeErrorHandler the value to set - * @return the dsl builder - */ - default DropboxEndpointConsumerBuilder bridgeErrorHandler( - String bridgeErrorHandler) { - doSetProperty("bridgeErrorHandler", bridgeErrorHandler); - return this; - } } /** @@ -406,74 +307,18 @@ public interface DropboxEndpointBuilderFactory { doSetProperty("exchangePattern", exchangePattern); return this; } - } - - /** - * Builder for endpoint producers for the Dropbox component. - */ - public interface DropboxEndpointProducerBuilder - extends - EndpointProducerBuilder { - default AdvancedDropboxEndpointProducerBuilder advanced() { - return (AdvancedDropboxEndpointProducerBuilder) this; - } /** - * The access token to make API requests for a specific Dropbox user. - * - * The option is a: <code>java.lang.String</code> type. - * - * Required: true - * Group: common - * - * @param accessToken the value to set - * @return the dsl builder - */ - default DropboxEndpointProducerBuilder accessToken(String accessToken) { - doSetProperty("accessToken", accessToken); - return this; - } - /** - * The apiKey to make API requests for a specific Dropbox user. - * - * The option is a: <code>java.lang.String</code> type. - * - * Required: true - * Group: common - * - * @param apiKey the value to set - * @return the dsl builder - */ - default DropboxEndpointProducerBuilder apiKey(String apiKey) { - doSetProperty("apiKey", apiKey); - return this; - } - /** - * The apiSecret to make API requests for a specific Dropbox user. - * - * The option is a: <code>java.lang.String</code> type. - * - * Required: true - * Group: common - * - * @param apiSecret the value to set - * @return the dsl builder - */ - default DropboxEndpointProducerBuilder apiSecret(String apiSecret) { - doSetProperty("apiSecret", apiSecret); - return this; - } - /** - * To use an existing DbxClient instance as DropBox client. + * To use an existing DbxClient instance as DropBox client. * * The option is a: * <code>com.dropbox.core.v2.DbxClientV2</code> type. * - * Group: common + * Group: advanced * * @param client the value to set * @return the dsl builder */ - default DropboxEndpointProducerBuilder client( + default AdvancedDropboxEndpointConsumerBuilder client( com.dropbox.core.v2.DbxClientV2 client) { doSetProperty("client", client); return this; @@ -484,15 +329,26 @@ public interface DropboxEndpointBuilderFactory { * The option will be converted to a * <code>com.dropbox.core.v2.DbxClientV2</code> type. * - * Group: common + * Group: advanced * * @param client the value to set * @return the dsl builder */ - default DropboxEndpointProducerBuilder client(String client) { + default AdvancedDropboxEndpointConsumerBuilder client(String client) { doSetProperty("client", client); return this; } + } + + /** + * Builder for endpoint producers for the Dropbox component. + */ + public interface DropboxEndpointProducerBuilder + extends + EndpointProducerBuilder { + default AdvancedDropboxEndpointProducerBuilder advanced() { + return (AdvancedDropboxEndpointProducerBuilder) this; + } /** * Name of the app registered to make API requests. * @@ -509,111 +365,113 @@ public interface DropboxEndpointBuilderFactory { return this; } /** - * The expire time to access token for a specific Dropbox user. - * - * The option is a: <code>java.lang.Long</code> type. - * - * Required: true - * Group: common - * - * @param expireIn the value to set - * @return the dsl builder - */ - default DropboxEndpointProducerBuilder expireIn(Long expireIn) { - doSetProperty("expireIn", expireIn); - return this; - } - /** - * The expire time to access token for a specific Dropbox user. + * 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. * - * The option will be converted to a - * <code>java.lang.Long</code> type. + * The option is a: <code>java.lang.String</code> type. * - * Required: true * Group: common * - * @param expireIn the value to set + * @param query the value to set * @return the dsl builder */ - default DropboxEndpointProducerBuilder expireIn(String expireIn) { - doSetProperty("expireIn", expireIn); + default DropboxEndpointProducerBuilder query(String query) { + doSetProperty("query", query); return this; } /** - * Optional folder or file to upload on Dropbox from the local - * filesystem. If this option has not been configured then the message - * body is used as the content to upload. + * Original file or folder to move. * * The option is a: <code>java.lang.String</code> type. * * Group: common * - * @param localPath the value to set + * @param remotePath the value to set * @return the dsl builder */ - default DropboxEndpointProducerBuilder localPath(String localPath) { - doSetProperty("localPath", localPath); + default DropboxEndpointProducerBuilder remotePath(String remotePath) { + doSetProperty("remotePath", remotePath); return this; } /** - * Destination file or folder. + * 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 + * producer may take a little time and prolong the total processing time + * of the processing. * - * The option is a: <code>java.lang.String</code> type. + * The option is a: <code>boolean</code> type. * - * Group: common + * Default: false + * Group: producer * - * @param newRemotePath the value to set + * @param lazyStartProducer the value to set * @return the dsl builder */ - default DropboxEndpointProducerBuilder newRemotePath( - String newRemotePath) { - doSetProperty("newRemotePath", newRemotePath); + default DropboxEndpointProducerBuilder lazyStartProducer( + boolean lazyStartProducer) { + doSetProperty("lazyStartProducer", lazyStartProducer); return this; } /** - * 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. + * 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 + * producer may take a little time and prolong the total processing time + * of the processing. * - * The option is a: <code>java.lang.String</code> type. + * The option will be converted to a <code>boolean</code> + * type. * - * Group: common + * Default: false + * Group: producer * - * @param query the value to set + * @param lazyStartProducer the value to set * @return the dsl builder */ - default DropboxEndpointProducerBuilder query(String query) { - doSetProperty("query", query); + default DropboxEndpointProducerBuilder lazyStartProducer( + String lazyStartProducer) { + doSetProperty("lazyStartProducer", lazyStartProducer); return this; } /** - * The refresh token to refresh the access token for a specific Dropbox - * user. + * Optional folder or file to upload on Dropbox from the local + * filesystem. If this option has not been configured then the message + * body is used as the content to upload. * * The option is a: <code>java.lang.String</code> type. * - * Required: true - * Group: common + * Group: producer * - * @param refreshToken the value to set + * @param localPath the value to set * @return the dsl builder */ - default DropboxEndpointProducerBuilder refreshToken(String refreshToken) { - doSetProperty("refreshToken", refreshToken); + default DropboxEndpointProducerBuilder localPath(String localPath) { + doSetProperty("localPath", localPath); return this; } /** - * Original file or folder to move. + * Destination file or folder. * * The option is a: <code>java.lang.String</code> type. * - * Group: common + * Group: producer * - * @param remotePath the value to set + * @param newRemotePath the value to set * @return the dsl builder */ - default DropboxEndpointProducerBuilder remotePath(String remotePath) { - doSetProperty("remotePath", remotePath); + default DropboxEndpointProducerBuilder newRemotePath( + String newRemotePath) { + doSetProperty("newRemotePath", newRemotePath); return this; } /** @@ -625,7 +483,7 @@ public interface DropboxEndpointBuilderFactory { * The option is a: * <code>org.apache.camel.component.dropbox.util.DropboxUploadMode</code> type. * - * Group: common + * Group: producer * * @param uploadMode the value to set * @return the dsl builder @@ -644,7 +502,7 @@ public interface DropboxEndpointBuilderFactory { * The option will be converted to a * <code>org.apache.camel.component.dropbox.util.DropboxUploadMode</code> type. * - * Group: common + * Group: producer * * @param uploadMode the value to set * @return the dsl builder @@ -654,134 +512,120 @@ public interface DropboxEndpointBuilderFactory { return this; } /** - * 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 - * producer may take a little time and prolong the total processing time - * of the processing. + * The access token to make API requests for a specific Dropbox user. * - * The option is a: <code>boolean</code> type. + * The option is a: <code>java.lang.String</code> type. * - * Default: false - * Group: producer + * Required: true + * Group: security * - * @param lazyStartProducer the value to set + * @param accessToken the value to set * @return the dsl builder */ - default DropboxEndpointProducerBuilder lazyStartProducer( - boolean lazyStartProducer) { - doSetProperty("lazyStartProducer", lazyStartProducer); + default DropboxEndpointProducerBuilder accessToken(String accessToken) { + doSetProperty("accessToken", accessToken); return this; } /** - * 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 - * producer may take a little time and prolong the total processing time - * of the processing. + * The apiKey to make API requests for a specific Dropbox user. * - * The option will be converted to a <code>boolean</code> - * type. + * The option is a: <code>java.lang.String</code> type. * - * Default: false - * Group: producer + * Required: true + * Group: security * - * @param lazyStartProducer the value to set + * @param apiKey the value to set * @return the dsl builder */ - default DropboxEndpointProducerBuilder lazyStartProducer( - String lazyStartProducer) { - doSetProperty("lazyStartProducer", lazyStartProducer); + default DropboxEndpointProducerBuilder apiKey(String apiKey) { + doSetProperty("apiKey", apiKey); return this; } - } - - /** - * Advanced builder for endpoint producers for the Dropbox component. - */ - public interface AdvancedDropboxEndpointProducerBuilder - extends - EndpointProducerBuilder { - default DropboxEndpointProducerBuilder basic() { - return (DropboxEndpointProducerBuilder) this; - } - } - - /** - * Builder for endpoint for the Dropbox component. - */ - public interface DropboxEndpointBuilder - extends - DropboxEndpointConsumerBuilder, - DropboxEndpointProducerBuilder { - default AdvancedDropboxEndpointBuilder advanced() { - return (AdvancedDropboxEndpointBuilder) this; - } /** - * The access token to make API requests for a specific Dropbox user. + * The apiSecret to make API requests for a specific Dropbox user. * * The option is a: <code>java.lang.String</code> type. * * Required: true - * Group: common + * Group: security * - * @param accessToken the value to set + * @param apiSecret the value to set * @return the dsl builder */ - default DropboxEndpointBuilder accessToken(String accessToken) { - doSetProperty("accessToken", accessToken); + default DropboxEndpointProducerBuilder apiSecret(String apiSecret) { + doSetProperty("apiSecret", apiSecret); return this; } /** - * The apiKey to make API requests for a specific Dropbox user. + * The expire time to access token for a specific Dropbox user. * - * The option is a: <code>java.lang.String</code> type. + * The option is a: <code>java.lang.Long</code> type. * * Required: true - * Group: common + * Group: security * - * @param apiKey the value to set + * @param expireIn the value to set * @return the dsl builder */ - default DropboxEndpointBuilder apiKey(String apiKey) { - doSetProperty("apiKey", apiKey); + default DropboxEndpointProducerBuilder expireIn(Long expireIn) { + doSetProperty("expireIn", expireIn); return this; } /** - * The apiSecret to make API requests for a specific Dropbox user. + * The expire time to access token for a specific Dropbox user. + * + * The option will be converted to a + * <code>java.lang.Long</code> type. + * + * Required: true + * Group: security + * + * @param expireIn the value to set + * @return the dsl builder + */ + default DropboxEndpointProducerBuilder expireIn(String expireIn) { + doSetProperty("expireIn", expireIn); + return this; + } + /** + * The refresh token to refresh the access token for a specific Dropbox + * user. * * The option is a: <code>java.lang.String</code> type. * * Required: true - * Group: common + * Group: security * - * @param apiSecret the value to set + * @param refreshToken the value to set * @return the dsl builder */ - default DropboxEndpointBuilder apiSecret(String apiSecret) { - doSetProperty("apiSecret", apiSecret); + default DropboxEndpointProducerBuilder refreshToken(String refreshToken) { + doSetProperty("refreshToken", refreshToken); return this; } + } + + /** + * Advanced builder for endpoint producers for the Dropbox component. + */ + public interface AdvancedDropboxEndpointProducerBuilder + extends + EndpointProducerBuilder { + default DropboxEndpointProducerBuilder basic() { + return (DropboxEndpointProducerBuilder) this; + } /** * To use an existing DbxClient instance as DropBox client. * * The option is a: * <code>com.dropbox.core.v2.DbxClientV2</code> type. * - * Group: common + * Group: advanced * * @param client the value to set * @return the dsl builder */ - default DropboxEndpointBuilder client( + default AdvancedDropboxEndpointProducerBuilder client( com.dropbox.core.v2.DbxClientV2 client) { doSetProperty("client", client); return this; @@ -792,15 +636,27 @@ public interface DropboxEndpointBuilderFactory { * The option will be converted to a * <code>com.dropbox.core.v2.DbxClientV2</code> type. * - * Group: common + * Group: advanced * * @param client the value to set * @return the dsl builder */ - default DropboxEndpointBuilder client(String client) { + default AdvancedDropboxEndpointProducerBuilder client(String client) { doSetProperty("client", client); return this; } + } + + /** + * Builder for endpoint for the Dropbox component. + */ + public interface DropboxEndpointBuilder + extends + DropboxEndpointConsumerBuilder, + DropboxEndpointProducerBuilder { + default AdvancedDropboxEndpointBuilder advanced() { + return (AdvancedDropboxEndpointBuilder) this; + } /** * Name of the app registered to make API requests. * @@ -816,147 +672,125 @@ public interface DropboxEndpointBuilderFactory { return this; } /** - * The expire time to access token for a specific Dropbox user. - * - * The option is a: <code>java.lang.Long</code> type. - * - * Required: true - * Group: common - * - * @param expireIn the value to set - * @return the dsl builder - */ - default DropboxEndpointBuilder expireIn(Long expireIn) { - doSetProperty("expireIn", expireIn); - return this; - } - /** - * The expire time to access token for a specific Dropbox user. + * 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. * - * The option will be converted to a - * <code>java.lang.Long</code> type. + * The option is a: <code>java.lang.String</code> type. * - * Required: true * Group: common * - * @param expireIn the value to set + * @param query the value to set * @return the dsl builder */ - default DropboxEndpointBuilder expireIn(String expireIn) { - doSetProperty("expireIn", expireIn); + default DropboxEndpointBuilder query(String query) { + doSetProperty("query", query); return this; } /** - * Optional folder or file to upload on Dropbox from the local - * filesystem. If this option has not been configured then the message - * body is used as the content to upload. + * Original file or folder to move. * * The option is a: <code>java.lang.String</code> type. * * Group: common * - * @param localPath the value to set + * @param remotePath the value to set * @return the dsl builder */ - default DropboxEndpointBuilder localPath(String localPath) { - doSetProperty("localPath", localPath); + default DropboxEndpointBuilder remotePath(String remotePath) { + doSetProperty("remotePath", remotePath); return this; } /** - * Destination file or folder. + * The access token to make API requests for a specific Dropbox user. * * The option is a: <code>java.lang.String</code> type. * - * Group: common + * Required: true + * Group: security * - * @param newRemotePath the value to set + * @param accessToken the value to set * @return the dsl builder */ - default DropboxEndpointBuilder newRemotePath(String newRemotePath) { - doSetProperty("newRemotePath", newRemotePath); + default DropboxEndpointBuilder accessToken(String accessToken) { + doSetProperty("accessToken", accessToken); return this; } /** - * 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. + * The apiKey to make API requests for a specific Dropbox user. * * The option is a: <code>java.lang.String</code> type. * - * Group: common + * Required: true + * Group: security * - * @param query the value to set + * @param apiKey the value to set * @return the dsl builder */ - default DropboxEndpointBuilder query(String query) { - doSetProperty("query", query); + default DropboxEndpointBuilder apiKey(String apiKey) { + doSetProperty("apiKey", apiKey); return this; } /** - * The refresh token to refresh the access token for a specific Dropbox - * user. + * The apiSecret to make API requests for a specific Dropbox user. * * The option is a: <code>java.lang.String</code> type. * * Required: true - * Group: common + * Group: security * - * @param refreshToken the value to set + * @param apiSecret the value to set * @return the dsl builder */ - default DropboxEndpointBuilder refreshToken(String refreshToken) { - doSetProperty("refreshToken", refreshToken); + default DropboxEndpointBuilder apiSecret(String apiSecret) { + doSetProperty("apiSecret", apiSecret); return this; } /** - * Original file or folder to move. + * The expire time to access token for a specific Dropbox user. * - * The option is a: <code>java.lang.String</code> type. + * The option is a: <code>java.lang.Long</code> type. * - * Group: common + * Required: true + * Group: security * - * @param remotePath the value to set + * @param expireIn the value to set * @return the dsl builder */ - default DropboxEndpointBuilder remotePath(String remotePath) { - doSetProperty("remotePath", remotePath); + default DropboxEndpointBuilder expireIn(Long expireIn) { + doSetProperty("expireIn", expireIn); return this; } /** - * Which mode to upload. in case of add the new file will be renamed if - * a file with the same name already exists on dropbox. in case of force - * if a file with the same name already exists on dropbox, this will be - * overwritten. + * The expire time to access token for a specific Dropbox user. * - * The option is a: - * <code>org.apache.camel.component.dropbox.util.DropboxUploadMode</code> type. + * The option will be converted to a + * <code>java.lang.Long</code> type. * - * Group: common + * Required: true + * Group: security * - * @param uploadMode the value to set + * @param expireIn the value to set * @return the dsl builder */ - default DropboxEndpointBuilder uploadMode( - org.apache.camel.component.dropbox.util.DropboxUploadMode uploadMode) { - doSetProperty("uploadMode", uploadMode); + default DropboxEndpointBuilder expireIn(String expireIn) { + doSetProperty("expireIn", expireIn); return this; } /** - * Which mode to upload. in case of add the new file will be renamed if - * a file with the same name already exists on dropbox. in case of force - * if a file with the same name already exists on dropbox, this will be - * overwritten. + * The refresh token to refresh the access token for a specific Dropbox + * user. * - * The option will be converted to a - * <code>org.apache.camel.component.dropbox.util.DropboxUploadMode</code> type. + * The option is a: <code>java.lang.String</code> type. * - * Group: common + * Required: true + * Group: security * - * @param uploadMode the value to set + * @param refreshToken the value to set * @return the dsl builder */ - default DropboxEndpointBuilder uploadMode(String uploadMode) { - doSetProperty("uploadMode", uploadMode); + default DropboxEndpointBuilder refreshToken(String refreshToken) { + doSetProperty("refreshToken", refreshToken); return this; } } @@ -971,6 +805,37 @@ public interface DropboxEndpointBuilderFactory { default DropboxEndpointBuilder basic() { return (DropboxEndpointBuilder) this; } + /** + * To use an existing DbxClient instance as DropBox client. + * + * The option is a: + * <code>com.dropbox.core.v2.DbxClientV2</code> type. + * + * Group: advanced + * + * @param client the value to set + * @return the dsl builder + */ + default AdvancedDropboxEndpointBuilder client( + com.dropbox.core.v2.DbxClientV2 client) { + doSetProperty("client", client); + return this; + } + /** + * To use an existing DbxClient instance as DropBox client. + * + * The option will be converted to a + * <code>com.dropbox.core.v2.DbxClientV2</code> type. + * + * Group: advanced + * + * @param client the value to set + * @return the dsl builder + */ + default AdvancedDropboxEndpointBuilder client(String client) { + doSetProperty("client", client); + return this; + } } public interface DropboxBuilders {