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
commit 0556838c63bc9f44b437c435d7fd2763ba5f3d75 Author: Claus Ibsen <[email protected]> AuthorDate: Fri Nov 27 19:56:42 2026 +0100 CAMEL-23832: camel-azure-files - improve the component and option descriptions This commit rewrites the component description and the texts of 17 endpoint options and 14 headers of azure-files. The SAS token options now name the part of the token that each one is, the credentialType text says what each value uses, and the header texts give the paths as the consumer sets them, from the share root. The old CamelFileName text said that a String header can hold a file or simple language expression, which the producer no longer evaluates. Documentation only, no behavior change. The component JSON, the catalog copy, the doc page header and the DSL are regenerated. camel-azure-files is marked as done in tasks/component-descriptions.md. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Claus Ibsen <[email protected]> --- .../camel/catalog/components/azure-files.json | 64 ++-- .../camel/catalog/docs/azure-files-component.adoc | 2 +- .../camel/component/file/azure/azure-files.json | 64 ++-- .../src/main/docs/azure-files-component.adoc | 2 +- .../component/file/azure/FilesConfiguration.java | 24 +- .../camel/component/file/azure/FilesConstants.java | 76 +++-- .../camel/component/file/azure/FilesEndpoint.java | 13 +- .../camel/component/file/azure/FilesToken.java | 52 +++- .../component/ComponentsBuilderFactory.java | 2 +- .../dsl/AzureFilesComponentBuilderFactory.java | 4 +- .../builder/endpoint/EndpointHeaderBuilders.java | 2 +- .../builder/endpoint/StaticEndpointBuilders.java | 24 +- .../endpoint/dsl/FilesEndpointBuilderFactory.java | 341 +++++++++++++++------ tasks/component-descriptions.md | 2 +- 14 files changed, 449 insertions(+), 223 deletions(-) diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/azure-files.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/azure-files.json index 96ce2056fe5a..bb8b4dd6c48d 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/azure-files.json +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/azure-files.json @@ -3,7 +3,7 @@ "kind": "component", "name": "azure-files", "title": "Azure Files", - "description": "Send and receive files to Azure storage file share", + "description": "Read files from and write files to a file share in Azure Files.", "deprecated": false, "firstVersion": "3.22.0", "label": "cloud,file", @@ -31,21 +31,21 @@ "healthCheckProducerEnabled": { "index": 4, "kind": "property", "displayName": "Health Check Producer Enabled", "group": "health", "label": "health", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Used for enabling or disabling all producer based health checks from this component. Notice: Camel has by default disabled all producer based health-checks. You can turn on producer [...] }, "headers": { - "CamelFileLength": { "index": 0, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "long", "deprecated": false, "autowired": false, "secret": false, "description": "A long value containing the file size.", "constantName": "org.apache.camel.component.file.azure.FilesConstants#FILE_LENGTH" }, - "CamelFileLastModified": { "index": 1, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "long", "deprecated": false, "autowired": false, "secret": false, "description": "A Long value containing the last modified timestamp of the file.", "constantName": "org.apache.camel.component.file.azure.FilesConstants#FILE_LAST_MODIFIED" }, + "CamelFileLength": { "index": 0, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "long", "deprecated": false, "autowired": false, "secret": false, "description": "The size of the file in bytes, which the consumer sets. The producer uses it as the size of the file it creates when the body is a stream of unknown length.", "constantName": "org.apache.camel.component.file.azure.FilesConstants#FILE_LENGTH" }, + "CamelFileLastModified": { "index": 1, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "long", "deprecated": false, "autowired": false, "secret": false, "description": "The time that the file was last modified, in milliseconds since the epoch, as the file service lists it.", "constantName": "org.apache.camel.component.file.azure.FilesConstants#FILE_LAST_MODIFIED" }, "CamelFileNameOnly": { "index": 2, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "Only the file name (the name with no leading paths).", "constantName": "org.apache.camel.component.file.azure.FilesConstants#FILE_NAME_ONLY" }, - "CamelFileName": { "index": 3, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "(producer) Specifies the name of the file to write (relative to the endpoint directory). This name can be a String; a String with a file or simple Language expression; or an Expression object. If it's null then Camel will auto-generate a filename based on the message uniqu [...] - "CamelFileNameConsumed": { "index": 4, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The name of the file that has been consumed", "constantName": "org.apache.camel.component.file.azure.FilesConstants#FILE_NAME_CONSUMED" }, - "CamelFileAbsolute": { "index": 5, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "Boolean", "deprecated": false, "autowired": false, "secret": false, "description": "A boolean option specifying whether the consumed file denotes an absolute path or not. Should normally be false for relative paths. Absolute paths should normally not be used but we added to the move option to allow moving files to absolute paths. But can be [...] - "CamelFileAbsolutePath": { "index": 6, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The absolute path to the file. For relative files this path holds the relative path instead.", "constantName": "org.apache.camel.component.file.azure.FilesConstants#FILE_ABSOLUTE_PATH" }, - "CamelFilePath": { "index": 7, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The file path. For relative files this is the starting directory. For absolute files this is the absolute path.", "constantName": "org.apache.camel.component.file.azure.FilesConstants#FILE_PATH" }, - "CamelFileRelativePath": { "index": 8, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The relative path.", "constantName": "org.apache.camel.component.file.azure.FilesConstants#FILE_RELATIVE_PATH" }, - "CamelFileParent": { "index": 9, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The parent path.", "constantName": "org.apache.camel.component.file.azure.FilesConstants#FILE_PARENT" }, - "CamelFileNameProduced": { "index": 10, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The actual absolute filepath (path + name) for the output file that was written. This header is set by Camel and its purpose is providing end-users with the name of the file that was written.", "constantName": "org.apache.camel.component.file.azure.Files [...] - "CamelOverruleFileName": { "index": 11, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "Object", "deprecated": false, "autowired": false, "secret": false, "description": "Is used for overruling CamelFileName header and use the value instead (but only once, as the producer will remove this header after writing the file). The value can be only be a String. Notice that if the option fileName has been configured, then this is [...] - "CamelRemoteFileInputStream": { "index": 12, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "java.io.InputStream", "deprecated": false, "autowired": false, "secret": false, "description": "The remote file input stream.", "constantName": "org.apache.camel.component.file.azure.FilesConstants#REMOTE_FILE_INPUT_STREAM" }, - "CamelFileLocalWorkPath": { "index": 13, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "Path to the local work file, if local work directory is used.", "constantName": "org.apache.camel.component.file.azure.FilesConstants#FILE_LOCAL_WORK_PATH" }, - "CamelFileHost": { "index": 14, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The remote hostname.", "constantName": "org.apache.camel.component.file.azure.FilesConstants#FILE_HOST" }, + "CamelFileName": { "index": 3, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The name of the file, relative to the directory of the endpoint. The consumer sets it for the consumed file. The producer writes the file under this name, a String or an Expression, unless the fileName option is set; with neither, it uses the message ID.", "constantName": [...] + "CamelFileNameConsumed": { "index": 4, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The name of the consumed file, relative to the directory of the endpoint. Unlike CamelFileName, it keeps this value when the route changes CamelFileName.", "constantName": "org.apache.camel.component.file.azure.FilesConstants#FILE_NAME_CONSUMED" }, + "CamelFileAbsolute": { "index": 5, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "Boolean", "deprecated": false, "autowired": false, "secret": false, "description": "Whether the path of the consumed file in CamelFileAbsolutePath is absolute, that is, starts with \/ at the share root.", "constantName": "org.apache.camel.component.file.azure.FilesConstants#FILE_ABSOLUTE" }, + "CamelFileAbsolutePath": { "index": 6, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The path of the consumed file from the share root, without the share name, for example \/inbox\/order.xml.", "constantName": "org.apache.camel.component.file.azure.FilesConstants#FILE_ABSOLUTE_PATH" }, + "CamelFilePath": { "index": 7, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The path of the consumed file from the share root, the same value as CamelFileAbsolutePath.", "constantName": "org.apache.camel.component.file.azure.FilesConstants#FILE_PATH" }, + "CamelFileRelativePath": { "index": 8, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The path of the consumed file relative to the directory of the endpoint, for example 2026\/order.xml for a file in a subdirectory with recursive=true.", "constantName": "org.apache.camel.component.file.azure.FilesConstants#FILE_RELATIVE_PATH" }, + "CamelFileParent": { "index": 9, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The path of the directory that holds the consumed file, from the share root, for example \/inbox.", "constantName": "org.apache.camel.component.file.azure.FilesConstants#FILE_PARENT" }, + "CamelFileNameProduced": { "index": 10, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The path of the file that the producer wrote, from the share root, for example \/outbox\/order.xml.", "constantName": "org.apache.camel.component.file.azure.FilesConstants#FILE_NAME_PRODUCED" }, + "CamelOverruleFileName": { "index": 11, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "Object", "deprecated": false, "autowired": false, "secret": false, "description": "A file name, a String or an Expression, that the producer uses instead of CamelFileName for one write only: the producer removes this header after the write. The fileName option, if set, still takes precedence.", "constantName": "org.apache.camel.compone [...] + "CamelRemoteFileInputStream": { "index": 12, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "java.io.InputStream", "deprecated": false, "autowired": false, "secret": false, "description": "The input stream of the content of the consumed file, with streamDownload=true. The consumer closes it when the exchange is done.", "constantName": "org.apache.camel.component.file.azure.FilesConstants#REMOTE_FILE_INPUT_STREAM" }, + "CamelFileLocalWorkPath": { "index": 13, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The path of the local file in localWorkDirectory that holds the downloaded content of the consumed file. The consumer deletes this file when the exchange is done.", "constantName": "org.apache.camel.component.file.azure.FilesConstants#FILE_LOCAL_WORK_PATH" }, + "CamelFileHost": { "index": 14, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The host name of the file service of the storage account, for example myaccount.file.core.windows.net. The consumer sets it.", "constantName": "org.apache.camel.component.file.azure.FilesConstants#FILE_HOST" }, "CamelAzureFilesShareName": { "index": 15, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The name of the share the file was consumed from.", "constantName": "org.apache.camel.component.file.azure.FilesConstants#SHARE_NAME" } }, "bodyTypes": { @@ -54,23 +54,23 @@ "producerOut": { "carriers": [ "unchanged" ] } }, "properties": { - "account": { "index": 0, "kind": "path", "displayName": "Account", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.file.azure.FilesConfiguration", "configurationField": "configuration", "description": "The account to use" }, - "share": { "index": 1, "kind": "path", "displayName": "Share", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.file.azure.FilesConfiguration", "configurationField": "configuration", "description": "The share to use" }, + "account": { "index": 0, "kind": "path", "displayName": "Account", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.file.azure.FilesConfiguration", "configurationField": "configuration", "description": "The name of the storage account, for example myaccount, or the host name of its file service, for example myaccount.file.core. [...] + "share": { "index": 1, "kind": "path", "displayName": "Share", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.file.azure.FilesConfiguration", "configurationField": "configuration", "description": "The name of the file share in the storage account. A path after the share name in the endpoint URI is the directory, from the shar [...] "port": { "index": 2, "kind": "path", "displayName": "Port", "group": "common", "label": "", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.file.azure.FilesConfiguration", "configurationField": "configuration", "description": "Port of the FTP server" }, "directoryName": { "index": 3, "kind": "path", "displayName": "Directory Name", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.file.azure.FilesConfiguration", "configurationField": "configuration", "description": "The starting directory" }, - "credentialType": { "index": 4, "kind": "parameter", "displayName": "Credential Type", "group": "common", "label": "common", "required": false, "type": "enum", "javaType": "org.apache.camel.component.azure.common.CredentialType", "enum": [ "SHARED_ACCOUNT_KEY", "SHARED_KEY_CREDENTIAL", "AZURE_IDENTITY", "AZURE_SAS" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "SHARED_ACCOUNT_KEY", "configurationClass": "org.apache.camel.component.file.azure.FilesConfig [...] + "credentialType": { "index": 4, "kind": "parameter", "displayName": "Credential Type", "group": "common", "label": "common", "required": false, "type": "enum", "javaType": "org.apache.camel.component.azure.common.CredentialType", "enum": [ "SHARED_ACCOUNT_KEY", "SHARED_KEY_CREDENTIAL", "AZURE_IDENTITY", "AZURE_SAS" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "SHARED_ACCOUNT_KEY", "configurationClass": "org.apache.camel.component.file.azure.FilesConfig [...] "disconnect": { "index": 5, "kind": "parameter", "displayName": "Disconnect", "group": "common", "label": "common", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether or not to disconnect from remote FTP server right after use. Disconnect will only disconnect the current connection to the FTP server. If you have a consumer which you want to stop, then you need to stop th [...] "doneFileName": { "index": 6, "kind": "parameter", "displayName": "Done File Name", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "supportSimpleExpression": true, "description": "Producer: If provided, then Camel will write a 2nd done file when the original file has been written. The done file will be empty. This option configures what file name to use. Either you can spec [...] "fileName": { "index": 7, "kind": "parameter", "displayName": "File Name", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "supportSimpleExpression": true, "description": "Use Expression such as File Language to dynamically set the filename. For consumers, it's used as a filename filter: only a file with exactly this name is consumed, as the name is not a pattern (use antInc [...] "jailStartingDirectory": { "index": 8, "kind": "parameter", "displayName": "Jail Starting Directory", "group": "common", "label": "common", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Used for jailing (restricting) writing files to the starting directory (and sub) only. This is enabled by default to not allow Camel to write files to outside directories (to be more secured [...] - "sharedKey": { "index": 9, "kind": "parameter", "displayName": "Shared Key", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesConfiguration", "configurationField": "configuration", "description": "Shared key (storage account key)" }, + "sharedKey": { "index": 9, "kind": "parameter", "displayName": "Shared Key", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesConfiguration", "configurationField": "configuration", "description": "The access key of the storage account, for credentialType=SHARED_ACCOUNT_KEY. The compon [...] "delete": { "index": 10, "kind": "parameter", "displayName": "Delete", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "If true, the file will be deleted after it is processed successfully." }, "moveFailed": { "index": 11, "kind": "parameter", "displayName": "Move Failed", "group": "consumer", "label": "consumer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "supportSimpleExpression": true, "description": "Sets the move failure expression based on Simple language. For example, to move files into a .error subdirectory use: .error. Note: When moving the files to the fail location Camel will hand [...] "noop": { "index": 12, "kind": "parameter", "displayName": "Noop", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "If true, the file is not moved or deleted in any way. This option is good for readonly data, or for ETL type requirements. If noop=true, Camel will set idempotent=true as well, to avoid consuming the same files over and o [...] "preMove": { "index": 13, "kind": "parameter", "displayName": "Pre Move", "group": "consumer", "label": "consumer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "supportSimpleExpression": true, "description": "Expression (such as File Language) used to dynamically set the filename when moving it before processing. For example to move in-progress files into the order directory set this value to order." }, "preSort": { "index": 14, "kind": "parameter", "displayName": "Pre Sort", "group": "consumer", "label": "consumer", "required": false, "type": "enum", "javaType": "java.lang.String", "enum": [ "true", "false", "name", "-name", "modified", "-modified", "size", "-size" ], "deprecated": false, "autowired": false, "secret": false, "description": "When pre-sort is enabled then the consumer will sort the file and directory names during polling, that was retrieved from the file system. You [...] "recursive": { "index": 15, "kind": "parameter", "displayName": "Recursive", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "If a directory, will look for files in all the sub-directories as well." }, - "resumeDownload": { "index": 16, "kind": "parameter", "displayName": "Resume Download", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Configures whether resume download is enabled. In addition the options localWorkDirectory must be configured so downloaded files are stored in a local directory, which is required to support resuming [...] + "resumeDownload": { "index": 16, "kind": "parameter", "displayName": "Resume Download", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the consumer resumes a download that failed, instead of downloading the whole file again. It needs localWorkDirectory: the consumer keeps the partial .inprogress file of a failed download ther [...] "sendEmptyMessageWhenIdle": { "index": 17, "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." }, "streamDownload": { "index": 18, "kind": "parameter", "displayName": "Stream Download", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.file.azure.FilesConfiguration", "configurationField": "configuration", "description": "Sets the download method to use when not using a local working directory. If se [...] "bridgeErrorHandler": { "index": 19, "kind": "parameter", "displayName": "Bridge Error Handler", "group": "consumer (advanced)", "label": "consumer,advanced", "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 (if possible) occurred while the Camel consumer is trying to pickup incoming [...] @@ -143,18 +143,18 @@ "startScheduler": { "index": 86, "kind": "parameter", "displayName": "Start Scheduler", "group": "scheduler", "label": "consumer,scheduler", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Whether the scheduler should be auto started." }, "timeUnit": { "index": 87, "kind": "parameter", "displayName": "Time Unit", "group": "scheduler", "label": "consumer,scheduler", "required": false, "type": "enum", "javaType": "java.util.concurrent.TimeUnit", "enum": [ "NANOSECONDS", "MICROSECONDS", "MILLISECONDS", "SECONDS", "MINUTES", "HOURS", "DAYS" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "MILLISECONDS", "description": "Time unit for initialDelay and delay options." }, "useFixedDelay": { "index": 88, "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." }, - "sdd": { "index": 89, "kind": "parameter", "displayName": "Sdd", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "part of service SAS token" }, - "se": { "index": 90, "kind": "parameter", "displayName": "Se", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "part of SAS token" }, - "si": { "index": 91, "kind": "parameter", "displayName": "Si", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "part of service SAS token" }, - "sig": { "index": 92, "kind": "parameter", "displayName": "Sig", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "part of SAS token" }, - "sip": { "index": 93, "kind": "parameter", "displayName": "Sip", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "part of SAS token" }, - "sp": { "index": 94, "kind": "parameter", "displayName": "Sp", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "part of SAS token" }, - "spr": { "index": 95, "kind": "parameter", "displayName": "Spr", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "part of SAS token" }, - "sr": { "index": 96, "kind": "parameter", "displayName": "Sr", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "part of service SAS token" }, - "srt": { "index": 97, "kind": "parameter", "displayName": "Srt", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "part of SAS token" }, - "ss": { "index": 98, "kind": "parameter", "displayName": "Ss", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "part of account SAS token" }, - "st": { "index": 99, "kind": "parameter", "displayName": "St", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "part of SAS token" }, - "sv": { "index": 100, "kind": "parameter", "displayName": "Sv", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "part of SAS token" }, + "sdd": { "index": 89, "kind": "parameter", "displayName": "Sdd", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "The signed directory depth (sdd) of a service SAS token for credentialType=AZURE_SAS. The component adds it to t [...] + "se": { "index": 90, "kind": "parameter", "displayName": "Se", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "The signed expiry (se) of the SAS token for credentialType=AZURE_SAS: the UTC time in ISO 8601 format after which [...] + "si": { "index": 91, "kind": "parameter", "displayName": "Si", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "The signed identifier (si) of a service SAS token for credentialType=AZURE_SAS: the name of a stored access policy [...] + "sig": { "index": 92, "kind": "parameter", "displayName": "Sig", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "The signature (sig) of the SAS token for credentialType=AZURE_SAS, Base64 encoded. It can be given URL-encoded, [...] + "sip": { "index": 93, "kind": "parameter", "displayName": "Sip", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "The signed IP (sip) of the SAS token for credentialType=AZURE_SAS: the IP address or range of IP addresses that [...] + "sp": { "index": 94, "kind": "parameter", "displayName": "Sp", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "The signed permissions (sp) of the SAS token for credentialType=AZURE_SAS, for example rwdlc for read, write, dele [...] + "spr": { "index": 95, "kind": "parameter", "displayName": "Spr", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "The signed protocol (spr) of the SAS token for credentialType=AZURE_SAS: https, or https,http. The component alw [...] + "sr": { "index": 96, "kind": "parameter", "displayName": "Sr", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "The signed resource (sr) of a service SAS token for credentialType=AZURE_SAS: s for a share or f for a file. Not u [...] + "srt": { "index": 97, "kind": "parameter", "displayName": "Srt", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "The signed resource types (srt) of an account SAS token for credentialType=AZURE_SAS: s for service, c for conta [...] + "ss": { "index": 98, "kind": "parameter", "displayName": "Ss", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "The signed services (ss) of an account SAS token for credentialType=AZURE_SAS, for example f. The value must inclu [...] + "st": { "index": 99, "kind": "parameter", "displayName": "St", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "The signed start (st) of the SAS token for credentialType=AZURE_SAS: the UTC time in ISO 8601 format from which th [...] + "sv": { "index": 100, "kind": "parameter", "displayName": "Sv", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "The signed version (sv) of the SAS token for credentialType=AZURE_SAS: the storage service version that signs it, [...] "shuffle": { "index": 101, "kind": "parameter", "displayName": "Shuffle", "group": "sort", "label": "consumer,sort", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "To shuffle the list of files (sort in random order)" }, "sortBy": { "index": 102, "kind": "parameter", "displayName": "Sort By", "group": "sort", "label": "consumer,sort", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Built-in sort by using the File Language. Supports nested sorts, so you can have a sort by file name and as a 2nd group sort by modified date." }, "sorter": { "index": 103, "kind": "parameter", "displayName": "Sorter", "group": "sort", "label": "consumer,sort", "required": false, "type": "object", "javaType": "java.util.Comparator<org.apache.camel.component.file.GenericFile<com.azure.storage.file.share.models.ShareFileItem>>", "deprecated": false, "autowired": false, "secret": false, "description": "Pluggable sorter as a java.util.Comparator class that compares org.apache.camel.component.file.GenericFile objects." } diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/azure-files-component.adoc b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/azure-files-component.adoc index d35205788de3..c156698f40e6 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/azure-files-component.adoc +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/azure-files-component.adoc @@ -2,7 +2,7 @@ :doctitle: Azure Files :shortname: azure-files :artifactid: camel-azure-files -:description: Send and receive files to Azure storage file share +:description: Read files from and write files to a file share in Azure Files. :since: 3.22 :supportlevel: Preview :tabs-sync-option: diff --git a/components/camel-azure/camel-azure-files/src/generated/resources/META-INF/org/apache/camel/component/file/azure/azure-files.json b/components/camel-azure/camel-azure-files/src/generated/resources/META-INF/org/apache/camel/component/file/azure/azure-files.json index 96ce2056fe5a..bb8b4dd6c48d 100644 --- a/components/camel-azure/camel-azure-files/src/generated/resources/META-INF/org/apache/camel/component/file/azure/azure-files.json +++ b/components/camel-azure/camel-azure-files/src/generated/resources/META-INF/org/apache/camel/component/file/azure/azure-files.json @@ -3,7 +3,7 @@ "kind": "component", "name": "azure-files", "title": "Azure Files", - "description": "Send and receive files to Azure storage file share", + "description": "Read files from and write files to a file share in Azure Files.", "deprecated": false, "firstVersion": "3.22.0", "label": "cloud,file", @@ -31,21 +31,21 @@ "healthCheckProducerEnabled": { "index": 4, "kind": "property", "displayName": "Health Check Producer Enabled", "group": "health", "label": "health", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Used for enabling or disabling all producer based health checks from this component. Notice: Camel has by default disabled all producer based health-checks. You can turn on producer [...] }, "headers": { - "CamelFileLength": { "index": 0, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "long", "deprecated": false, "autowired": false, "secret": false, "description": "A long value containing the file size.", "constantName": "org.apache.camel.component.file.azure.FilesConstants#FILE_LENGTH" }, - "CamelFileLastModified": { "index": 1, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "long", "deprecated": false, "autowired": false, "secret": false, "description": "A Long value containing the last modified timestamp of the file.", "constantName": "org.apache.camel.component.file.azure.FilesConstants#FILE_LAST_MODIFIED" }, + "CamelFileLength": { "index": 0, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "long", "deprecated": false, "autowired": false, "secret": false, "description": "The size of the file in bytes, which the consumer sets. The producer uses it as the size of the file it creates when the body is a stream of unknown length.", "constantName": "org.apache.camel.component.file.azure.FilesConstants#FILE_LENGTH" }, + "CamelFileLastModified": { "index": 1, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "long", "deprecated": false, "autowired": false, "secret": false, "description": "The time that the file was last modified, in milliseconds since the epoch, as the file service lists it.", "constantName": "org.apache.camel.component.file.azure.FilesConstants#FILE_LAST_MODIFIED" }, "CamelFileNameOnly": { "index": 2, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "Only the file name (the name with no leading paths).", "constantName": "org.apache.camel.component.file.azure.FilesConstants#FILE_NAME_ONLY" }, - "CamelFileName": { "index": 3, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "(producer) Specifies the name of the file to write (relative to the endpoint directory). This name can be a String; a String with a file or simple Language expression; or an Expression object. If it's null then Camel will auto-generate a filename based on the message uniqu [...] - "CamelFileNameConsumed": { "index": 4, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The name of the file that has been consumed", "constantName": "org.apache.camel.component.file.azure.FilesConstants#FILE_NAME_CONSUMED" }, - "CamelFileAbsolute": { "index": 5, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "Boolean", "deprecated": false, "autowired": false, "secret": false, "description": "A boolean option specifying whether the consumed file denotes an absolute path or not. Should normally be false for relative paths. Absolute paths should normally not be used but we added to the move option to allow moving files to absolute paths. But can be [...] - "CamelFileAbsolutePath": { "index": 6, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The absolute path to the file. For relative files this path holds the relative path instead.", "constantName": "org.apache.camel.component.file.azure.FilesConstants#FILE_ABSOLUTE_PATH" }, - "CamelFilePath": { "index": 7, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The file path. For relative files this is the starting directory. For absolute files this is the absolute path.", "constantName": "org.apache.camel.component.file.azure.FilesConstants#FILE_PATH" }, - "CamelFileRelativePath": { "index": 8, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The relative path.", "constantName": "org.apache.camel.component.file.azure.FilesConstants#FILE_RELATIVE_PATH" }, - "CamelFileParent": { "index": 9, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The parent path.", "constantName": "org.apache.camel.component.file.azure.FilesConstants#FILE_PARENT" }, - "CamelFileNameProduced": { "index": 10, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The actual absolute filepath (path + name) for the output file that was written. This header is set by Camel and its purpose is providing end-users with the name of the file that was written.", "constantName": "org.apache.camel.component.file.azure.Files [...] - "CamelOverruleFileName": { "index": 11, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "Object", "deprecated": false, "autowired": false, "secret": false, "description": "Is used for overruling CamelFileName header and use the value instead (but only once, as the producer will remove this header after writing the file). The value can be only be a String. Notice that if the option fileName has been configured, then this is [...] - "CamelRemoteFileInputStream": { "index": 12, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "java.io.InputStream", "deprecated": false, "autowired": false, "secret": false, "description": "The remote file input stream.", "constantName": "org.apache.camel.component.file.azure.FilesConstants#REMOTE_FILE_INPUT_STREAM" }, - "CamelFileLocalWorkPath": { "index": 13, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "Path to the local work file, if local work directory is used.", "constantName": "org.apache.camel.component.file.azure.FilesConstants#FILE_LOCAL_WORK_PATH" }, - "CamelFileHost": { "index": 14, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The remote hostname.", "constantName": "org.apache.camel.component.file.azure.FilesConstants#FILE_HOST" }, + "CamelFileName": { "index": 3, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The name of the file, relative to the directory of the endpoint. The consumer sets it for the consumed file. The producer writes the file under this name, a String or an Expression, unless the fileName option is set; with neither, it uses the message ID.", "constantName": [...] + "CamelFileNameConsumed": { "index": 4, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The name of the consumed file, relative to the directory of the endpoint. Unlike CamelFileName, it keeps this value when the route changes CamelFileName.", "constantName": "org.apache.camel.component.file.azure.FilesConstants#FILE_NAME_CONSUMED" }, + "CamelFileAbsolute": { "index": 5, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "Boolean", "deprecated": false, "autowired": false, "secret": false, "description": "Whether the path of the consumed file in CamelFileAbsolutePath is absolute, that is, starts with \/ at the share root.", "constantName": "org.apache.camel.component.file.azure.FilesConstants#FILE_ABSOLUTE" }, + "CamelFileAbsolutePath": { "index": 6, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The path of the consumed file from the share root, without the share name, for example \/inbox\/order.xml.", "constantName": "org.apache.camel.component.file.azure.FilesConstants#FILE_ABSOLUTE_PATH" }, + "CamelFilePath": { "index": 7, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The path of the consumed file from the share root, the same value as CamelFileAbsolutePath.", "constantName": "org.apache.camel.component.file.azure.FilesConstants#FILE_PATH" }, + "CamelFileRelativePath": { "index": 8, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The path of the consumed file relative to the directory of the endpoint, for example 2026\/order.xml for a file in a subdirectory with recursive=true.", "constantName": "org.apache.camel.component.file.azure.FilesConstants#FILE_RELATIVE_PATH" }, + "CamelFileParent": { "index": 9, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The path of the directory that holds the consumed file, from the share root, for example \/inbox.", "constantName": "org.apache.camel.component.file.azure.FilesConstants#FILE_PARENT" }, + "CamelFileNameProduced": { "index": 10, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The path of the file that the producer wrote, from the share root, for example \/outbox\/order.xml.", "constantName": "org.apache.camel.component.file.azure.FilesConstants#FILE_NAME_PRODUCED" }, + "CamelOverruleFileName": { "index": 11, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "Object", "deprecated": false, "autowired": false, "secret": false, "description": "A file name, a String or an Expression, that the producer uses instead of CamelFileName for one write only: the producer removes this header after the write. The fileName option, if set, still takes precedence.", "constantName": "org.apache.camel.compone [...] + "CamelRemoteFileInputStream": { "index": 12, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "java.io.InputStream", "deprecated": false, "autowired": false, "secret": false, "description": "The input stream of the content of the consumed file, with streamDownload=true. The consumer closes it when the exchange is done.", "constantName": "org.apache.camel.component.file.azure.FilesConstants#REMOTE_FILE_INPUT_STREAM" }, + "CamelFileLocalWorkPath": { "index": 13, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The path of the local file in localWorkDirectory that holds the downloaded content of the consumed file. The consumer deletes this file when the exchange is done.", "constantName": "org.apache.camel.component.file.azure.FilesConstants#FILE_LOCAL_WORK_PATH" }, + "CamelFileHost": { "index": 14, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The host name of the file service of the storage account, for example myaccount.file.core.windows.net. The consumer sets it.", "constantName": "org.apache.camel.component.file.azure.FilesConstants#FILE_HOST" }, "CamelAzureFilesShareName": { "index": 15, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The name of the share the file was consumed from.", "constantName": "org.apache.camel.component.file.azure.FilesConstants#SHARE_NAME" } }, "bodyTypes": { @@ -54,23 +54,23 @@ "producerOut": { "carriers": [ "unchanged" ] } }, "properties": { - "account": { "index": 0, "kind": "path", "displayName": "Account", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.file.azure.FilesConfiguration", "configurationField": "configuration", "description": "The account to use" }, - "share": { "index": 1, "kind": "path", "displayName": "Share", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.file.azure.FilesConfiguration", "configurationField": "configuration", "description": "The share to use" }, + "account": { "index": 0, "kind": "path", "displayName": "Account", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.file.azure.FilesConfiguration", "configurationField": "configuration", "description": "The name of the storage account, for example myaccount, or the host name of its file service, for example myaccount.file.core. [...] + "share": { "index": 1, "kind": "path", "displayName": "Share", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.file.azure.FilesConfiguration", "configurationField": "configuration", "description": "The name of the file share in the storage account. A path after the share name in the endpoint URI is the directory, from the shar [...] "port": { "index": 2, "kind": "path", "displayName": "Port", "group": "common", "label": "", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.file.azure.FilesConfiguration", "configurationField": "configuration", "description": "Port of the FTP server" }, "directoryName": { "index": 3, "kind": "path", "displayName": "Directory Name", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.file.azure.FilesConfiguration", "configurationField": "configuration", "description": "The starting directory" }, - "credentialType": { "index": 4, "kind": "parameter", "displayName": "Credential Type", "group": "common", "label": "common", "required": false, "type": "enum", "javaType": "org.apache.camel.component.azure.common.CredentialType", "enum": [ "SHARED_ACCOUNT_KEY", "SHARED_KEY_CREDENTIAL", "AZURE_IDENTITY", "AZURE_SAS" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "SHARED_ACCOUNT_KEY", "configurationClass": "org.apache.camel.component.file.azure.FilesConfig [...] + "credentialType": { "index": 4, "kind": "parameter", "displayName": "Credential Type", "group": "common", "label": "common", "required": false, "type": "enum", "javaType": "org.apache.camel.component.azure.common.CredentialType", "enum": [ "SHARED_ACCOUNT_KEY", "SHARED_KEY_CREDENTIAL", "AZURE_IDENTITY", "AZURE_SAS" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "SHARED_ACCOUNT_KEY", "configurationClass": "org.apache.camel.component.file.azure.FilesConfig [...] "disconnect": { "index": 5, "kind": "parameter", "displayName": "Disconnect", "group": "common", "label": "common", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether or not to disconnect from remote FTP server right after use. Disconnect will only disconnect the current connection to the FTP server. If you have a consumer which you want to stop, then you need to stop th [...] "doneFileName": { "index": 6, "kind": "parameter", "displayName": "Done File Name", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "supportSimpleExpression": true, "description": "Producer: If provided, then Camel will write a 2nd done file when the original file has been written. The done file will be empty. This option configures what file name to use. Either you can spec [...] "fileName": { "index": 7, "kind": "parameter", "displayName": "File Name", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "supportSimpleExpression": true, "description": "Use Expression such as File Language to dynamically set the filename. For consumers, it's used as a filename filter: only a file with exactly this name is consumed, as the name is not a pattern (use antInc [...] "jailStartingDirectory": { "index": 8, "kind": "parameter", "displayName": "Jail Starting Directory", "group": "common", "label": "common", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Used for jailing (restricting) writing files to the starting directory (and sub) only. This is enabled by default to not allow Camel to write files to outside directories (to be more secured [...] - "sharedKey": { "index": 9, "kind": "parameter", "displayName": "Shared Key", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesConfiguration", "configurationField": "configuration", "description": "Shared key (storage account key)" }, + "sharedKey": { "index": 9, "kind": "parameter", "displayName": "Shared Key", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesConfiguration", "configurationField": "configuration", "description": "The access key of the storage account, for credentialType=SHARED_ACCOUNT_KEY. The compon [...] "delete": { "index": 10, "kind": "parameter", "displayName": "Delete", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "If true, the file will be deleted after it is processed successfully." }, "moveFailed": { "index": 11, "kind": "parameter", "displayName": "Move Failed", "group": "consumer", "label": "consumer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "supportSimpleExpression": true, "description": "Sets the move failure expression based on Simple language. For example, to move files into a .error subdirectory use: .error. Note: When moving the files to the fail location Camel will hand [...] "noop": { "index": 12, "kind": "parameter", "displayName": "Noop", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "If true, the file is not moved or deleted in any way. This option is good for readonly data, or for ETL type requirements. If noop=true, Camel will set idempotent=true as well, to avoid consuming the same files over and o [...] "preMove": { "index": 13, "kind": "parameter", "displayName": "Pre Move", "group": "consumer", "label": "consumer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "supportSimpleExpression": true, "description": "Expression (such as File Language) used to dynamically set the filename when moving it before processing. For example to move in-progress files into the order directory set this value to order." }, "preSort": { "index": 14, "kind": "parameter", "displayName": "Pre Sort", "group": "consumer", "label": "consumer", "required": false, "type": "enum", "javaType": "java.lang.String", "enum": [ "true", "false", "name", "-name", "modified", "-modified", "size", "-size" ], "deprecated": false, "autowired": false, "secret": false, "description": "When pre-sort is enabled then the consumer will sort the file and directory names during polling, that was retrieved from the file system. You [...] "recursive": { "index": 15, "kind": "parameter", "displayName": "Recursive", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "If a directory, will look for files in all the sub-directories as well." }, - "resumeDownload": { "index": 16, "kind": "parameter", "displayName": "Resume Download", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Configures whether resume download is enabled. In addition the options localWorkDirectory must be configured so downloaded files are stored in a local directory, which is required to support resuming [...] + "resumeDownload": { "index": 16, "kind": "parameter", "displayName": "Resume Download", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the consumer resumes a download that failed, instead of downloading the whole file again. It needs localWorkDirectory: the consumer keeps the partial .inprogress file of a failed download ther [...] "sendEmptyMessageWhenIdle": { "index": 17, "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." }, "streamDownload": { "index": 18, "kind": "parameter", "displayName": "Stream Download", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.file.azure.FilesConfiguration", "configurationField": "configuration", "description": "Sets the download method to use when not using a local working directory. If se [...] "bridgeErrorHandler": { "index": 19, "kind": "parameter", "displayName": "Bridge Error Handler", "group": "consumer (advanced)", "label": "consumer,advanced", "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 (if possible) occurred while the Camel consumer is trying to pickup incoming [...] @@ -143,18 +143,18 @@ "startScheduler": { "index": 86, "kind": "parameter", "displayName": "Start Scheduler", "group": "scheduler", "label": "consumer,scheduler", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Whether the scheduler should be auto started." }, "timeUnit": { "index": 87, "kind": "parameter", "displayName": "Time Unit", "group": "scheduler", "label": "consumer,scheduler", "required": false, "type": "enum", "javaType": "java.util.concurrent.TimeUnit", "enum": [ "NANOSECONDS", "MICROSECONDS", "MILLISECONDS", "SECONDS", "MINUTES", "HOURS", "DAYS" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "MILLISECONDS", "description": "Time unit for initialDelay and delay options." }, "useFixedDelay": { "index": 88, "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." }, - "sdd": { "index": 89, "kind": "parameter", "displayName": "Sdd", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "part of service SAS token" }, - "se": { "index": 90, "kind": "parameter", "displayName": "Se", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "part of SAS token" }, - "si": { "index": 91, "kind": "parameter", "displayName": "Si", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "part of service SAS token" }, - "sig": { "index": 92, "kind": "parameter", "displayName": "Sig", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "part of SAS token" }, - "sip": { "index": 93, "kind": "parameter", "displayName": "Sip", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "part of SAS token" }, - "sp": { "index": 94, "kind": "parameter", "displayName": "Sp", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "part of SAS token" }, - "spr": { "index": 95, "kind": "parameter", "displayName": "Spr", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "part of SAS token" }, - "sr": { "index": 96, "kind": "parameter", "displayName": "Sr", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "part of service SAS token" }, - "srt": { "index": 97, "kind": "parameter", "displayName": "Srt", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "part of SAS token" }, - "ss": { "index": 98, "kind": "parameter", "displayName": "Ss", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "part of account SAS token" }, - "st": { "index": 99, "kind": "parameter", "displayName": "St", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "part of SAS token" }, - "sv": { "index": 100, "kind": "parameter", "displayName": "Sv", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "part of SAS token" }, + "sdd": { "index": 89, "kind": "parameter", "displayName": "Sdd", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "The signed directory depth (sdd) of a service SAS token for credentialType=AZURE_SAS. The component adds it to t [...] + "se": { "index": 90, "kind": "parameter", "displayName": "Se", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "The signed expiry (se) of the SAS token for credentialType=AZURE_SAS: the UTC time in ISO 8601 format after which [...] + "si": { "index": 91, "kind": "parameter", "displayName": "Si", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "The signed identifier (si) of a service SAS token for credentialType=AZURE_SAS: the name of a stored access policy [...] + "sig": { "index": 92, "kind": "parameter", "displayName": "Sig", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "The signature (sig) of the SAS token for credentialType=AZURE_SAS, Base64 encoded. It can be given URL-encoded, [...] + "sip": { "index": 93, "kind": "parameter", "displayName": "Sip", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "The signed IP (sip) of the SAS token for credentialType=AZURE_SAS: the IP address or range of IP addresses that [...] + "sp": { "index": 94, "kind": "parameter", "displayName": "Sp", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "The signed permissions (sp) of the SAS token for credentialType=AZURE_SAS, for example rwdlc for read, write, dele [...] + "spr": { "index": 95, "kind": "parameter", "displayName": "Spr", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "The signed protocol (spr) of the SAS token for credentialType=AZURE_SAS: https, or https,http. The component alw [...] + "sr": { "index": 96, "kind": "parameter", "displayName": "Sr", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "The signed resource (sr) of a service SAS token for credentialType=AZURE_SAS: s for a share or f for a file. Not u [...] + "srt": { "index": 97, "kind": "parameter", "displayName": "Srt", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "The signed resource types (srt) of an account SAS token for credentialType=AZURE_SAS: s for service, c for conta [...] + "ss": { "index": 98, "kind": "parameter", "displayName": "Ss", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "The signed services (ss) of an account SAS token for credentialType=AZURE_SAS, for example f. The value must inclu [...] + "st": { "index": 99, "kind": "parameter", "displayName": "St", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "The signed start (st) of the SAS token for credentialType=AZURE_SAS: the UTC time in ISO 8601 format from which th [...] + "sv": { "index": 100, "kind": "parameter", "displayName": "Sv", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.file.azure.FilesToken", "configurationField": "token", "description": "The signed version (sv) of the SAS token for credentialType=AZURE_SAS: the storage service version that signs it, [...] "shuffle": { "index": 101, "kind": "parameter", "displayName": "Shuffle", "group": "sort", "label": "consumer,sort", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "To shuffle the list of files (sort in random order)" }, "sortBy": { "index": 102, "kind": "parameter", "displayName": "Sort By", "group": "sort", "label": "consumer,sort", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Built-in sort by using the File Language. Supports nested sorts, so you can have a sort by file name and as a 2nd group sort by modified date." }, "sorter": { "index": 103, "kind": "parameter", "displayName": "Sorter", "group": "sort", "label": "consumer,sort", "required": false, "type": "object", "javaType": "java.util.Comparator<org.apache.camel.component.file.GenericFile<com.azure.storage.file.share.models.ShareFileItem>>", "deprecated": false, "autowired": false, "secret": false, "description": "Pluggable sorter as a java.util.Comparator class that compares org.apache.camel.component.file.GenericFile objects." } diff --git a/components/camel-azure/camel-azure-files/src/main/docs/azure-files-component.adoc b/components/camel-azure/camel-azure-files/src/main/docs/azure-files-component.adoc index d35205788de3..c156698f40e6 100644 --- a/components/camel-azure/camel-azure-files/src/main/docs/azure-files-component.adoc +++ b/components/camel-azure/camel-azure-files/src/main/docs/azure-files-component.adoc @@ -2,7 +2,7 @@ :doctitle: Azure Files :shortname: azure-files :artifactid: camel-azure-files -:description: Send and receive files to Azure storage file share +:description: Read files from and write files to a file share in Azure Files. :since: 3.22 :supportlevel: Preview :tabs-sync-option: diff --git a/components/camel-azure/camel-azure-files/src/main/java/org/apache/camel/component/file/azure/FilesConfiguration.java b/components/camel-azure/camel-azure-files/src/main/java/org/apache/camel/component/file/azure/FilesConfiguration.java index a0376d5a4c46..8ac0c7286054 100644 --- a/components/camel-azure/camel-azure-files/src/main/java/org/apache/camel/component/file/azure/FilesConfiguration.java +++ b/components/camel-azure/camel-azure-files/src/main/java/org/apache/camel/component/file/azure/FilesConfiguration.java @@ -33,19 +33,35 @@ public class FilesConfiguration extends RemoteFileConfiguration { public static final int DEFAULT_HTTPS_PORT = 443; public static final String DEFAULT_INTERNET_DOMAIN = "file.core.windows.net"; - @UriParam(label = "common", description = "Shared key (storage account key)", security = "secret") + @UriParam(label = "common", security = "secret", + description = "The access key of the storage account, for credentialType=SHARED_ACCOUNT_KEY. The component" + + " signs the requests with this key and the account option as the account name, so the endpoint" + + " URI must give the account name, not the host name. A + in the key can stay unencoded in the" + + " endpoint URI.") private String sharedKey; - @UriPath(name = "account", description = "The account to use") + @UriPath(name = "account", + description = "The name of the storage account, for example myaccount, or the host name of its file service," + + " for example myaccount.file.core.windows.net. With a name alone, the component connects to" + + " that name with the .file.core.windows.net suffix, always over HTTPS.") @Metadata(required = true) private String account; - @UriPath(name = "share", description = "The share to use") + @UriPath(name = "share", + description = "The name of the file share in the storage account. A path after the share name in the endpoint" + + " URI is the directory, from the share root, that the consumer polls and that the producer" + + " writes to. Without it, the share root is used.") @Metadata(required = true) private String share; @UriParam(label = "common", enums = "SHARED_ACCOUNT_KEY,SHARED_KEY_CREDENTIAL,AZURE_IDENTITY,AZURE_SAS", - defaultValue = "SHARED_ACCOUNT_KEY", description = "Determines the credential strategy to adopt") + defaultValue = "SHARED_ACCOUNT_KEY", + description = "How the component authenticates: SHARED_ACCOUNT_KEY with the sharedKey option, AZURE_SAS with" + + " the SAS token options (sv, sig, se and the others), or AZURE_IDENTITY with the" + + " DefaultAzureCredential of the Azure Identity library and the backup intent, which needs the" + + " Storage File Data Privileged Reader or Contributor role. SHARED_KEY_CREDENTIAL is not" + + " supported: with it, or with SHARED_ACCOUNT_KEY and no sharedKey, the requests carry no" + + " credentials.") private CredentialType credentialType = SHARED_ACCOUNT_KEY; public FilesConfiguration() { diff --git a/components/camel-azure/camel-azure-files/src/main/java/org/apache/camel/component/file/azure/FilesConstants.java b/components/camel-azure/camel-azure-files/src/main/java/org/apache/camel/component/file/azure/FilesConstants.java index c770d05ac4ae..26f4e4f207d1 100644 --- a/components/camel-azure/camel-azure-files/src/main/java/org/apache/camel/component/file/azure/FilesConstants.java +++ b/components/camel-azure/camel-azure-files/src/main/java/org/apache/camel/component/file/azure/FilesConstants.java @@ -22,61 +22,75 @@ import org.apache.camel.spi.Metadata; public final class FilesConstants { - @Metadata(label = "consumer", description = "A `long` value containing the file size.", javaType = "long") + @Metadata(label = "consumer", + description = "The size of the file in bytes, which the consumer sets. The producer uses it as the size of the" + + " file it creates when the body is a stream of unknown length.", + javaType = "long") public static final String FILE_LENGTH = Exchange.FILE_LENGTH; - @Metadata(label = "consumer", description = "A `Long` value containing the last modified timestamp of the file.", + @Metadata(label = "consumer", + description = "The time that the file was last modified, in milliseconds since the epoch, as the file service" + + " lists it.", javaType = "long") public static final String FILE_LAST_MODIFIED = Exchange.FILE_LAST_MODIFIED; @Metadata(label = "consumer", description = "Only the file name (the name with no leading paths).", javaType = "String") public static final String FILE_NAME_ONLY = Exchange.FILE_NAME_ONLY; - @Metadata(description = "(producer) Specifies the name of the file to write (relative to the endpoint" - + " directory). This name can be a `String`; a `String` with a" - + " file or simple Language expression; or an Expression object. If it's" - + " `null` then Camel will auto-generate a filename based on the message" - + " unique ID. (consumer) Name of the consumed file as a relative file path with offset from the" - + " starting directory configured on the endpoint.", + @Metadata(description = "The name of the file, relative to the directory of the endpoint. The consumer sets it for the" + + " consumed file. The producer writes the file under this name, a String or an Expression," + + " unless the fileName option is set; with neither, it uses the message ID.", javaType = "String") public static final String FILE_NAME = Exchange.FILE_NAME; - @Metadata(label = "consumer", description = "The name of the file that has been consumed", javaType = "String") + @Metadata(label = "consumer", + description = "The name of the consumed file, relative to the directory of the endpoint. Unlike CamelFileName," + + " it keeps this value when the route changes CamelFileName.", + javaType = "String") public static final String FILE_NAME_CONSUMED = Exchange.FILE_NAME_CONSUMED; - @Metadata(label = "consumer", description = "A `boolean` option specifying whether the consumed file denotes an" - + " absolute path or not. Should normally be `false` for relative paths." - + " Absolute paths should normally not be used but we added to the move" - + " option to allow moving files to absolute paths. But can be used" - + " elsewhere as well.", + @Metadata(label = "consumer", + description = "Whether the path of the consumed file in CamelFileAbsolutePath is absolute, that is, starts with" + + " / at the share root.", javaType = "Boolean") public static final String FILE_ABSOLUTE = "CamelFileAbsolute"; - @Metadata(label = "consumer", description = "The absolute path to the file. For relative files this path holds the" - + " relative path instead.", + @Metadata(label = "consumer", + description = "The path of the consumed file from the share root, without the share name, for example" + + " /inbox/order.xml.", javaType = "String") public static final String FILE_ABSOLUTE_PATH = "CamelFileAbsolutePath"; - @Metadata(label = "consumer", description = "The file path. For relative files this is the starting directory." - + " For absolute files this is the absolute path.", + @Metadata(label = "consumer", + description = "The path of the consumed file from the share root, the same value as CamelFileAbsolutePath.", javaType = "String") public static final String FILE_PATH = Exchange.FILE_PATH; - @Metadata(label = "consumer", description = "The relative path.", javaType = "String") + @Metadata(label = "consumer", + description = "The path of the consumed file relative to the directory of the endpoint, for example" + + " 2026/order.xml for a file in a subdirectory with recursive=true.", + javaType = "String") public static final String FILE_RELATIVE_PATH = "CamelFileRelativePath"; - @Metadata(description = "The parent path.", javaType = "String") + @Metadata(description = "The path of the directory that holds the consumed file, from the share root, for example" + + " /inbox.", + javaType = "String") public static final String FILE_PARENT = Exchange.FILE_PARENT; - @Metadata(label = "producer", description = "The actual absolute filepath (path + name) for the output file that was" - + " written. This header is set by Camel and its purpose is providing" - + " end-users with the name of the file that was written.", + @Metadata(label = "producer", + description = "The path of the file that the producer wrote, from the share root, for example" + + " /outbox/order.xml.", javaType = "String") public static final String FILE_NAME_PRODUCED = Exchange.FILE_NAME_PRODUCED; - @Metadata(label = "producer", description = "Is used for overruling `CamelFileName` header and use the" - + " value instead (but only once, as the producer will remove this header" - + " after writing the file). The value can be only be a String. Notice that" - + " if the option `fileName` has been configured, then this is still being" - + " evaluated.", + @Metadata(label = "producer", + description = "A file name, a String or an Expression, that the producer uses instead of CamelFileName for one" + + " write only: the producer removes this header after the write. The fileName option, if set," + + " still takes precedence.", javaType = "Object") public static final String OVERRULE_FILE_NAME = Exchange.OVERRULE_FILE_NAME; - @Metadata(description = "The remote file input stream.", javaType = "java.io.InputStream") + @Metadata(description = "The input stream of the content of the consumed file, with streamDownload=true. The consumer" + + " closes it when the exchange is done.", + javaType = "java.io.InputStream") public static final String REMOTE_FILE_INPUT_STREAM = RemoteFileComponent.REMOTE_FILE_INPUT_STREAM; - @Metadata(description = "Path to the local work file, if local work directory is used.", javaType = "String") + @Metadata(description = "The path of the local file in localWorkDirectory that holds the downloaded content of the" + + " consumed file. The consumer deletes this file when the exchange is done.", + javaType = "String") public static final String FILE_LOCAL_WORK_PATH = Exchange.FILE_LOCAL_WORK_PATH; - @Metadata(description = "The remote hostname.", javaType = "String") + @Metadata(description = "The host name of the file service of the storage account, for example" + + " myaccount.file.core.windows.net. The consumer sets it.", + javaType = "String") public static final String FILE_HOST = "CamelFileHost"; @Metadata(label = "consumer", description = "The name of the share the file was consumed from.", javaType = "String") public static final String SHARE_NAME = "CamelAzureFilesShareName"; diff --git a/components/camel-azure/camel-azure-files/src/main/java/org/apache/camel/component/file/azure/FilesEndpoint.java b/components/camel-azure/camel-azure-files/src/main/java/org/apache/camel/component/file/azure/FilesEndpoint.java index 13d434f28404..f2d6bff1a75e 100644 --- a/components/camel-azure/camel-azure-files/src/main/java/org/apache/camel/component/file/azure/FilesEndpoint.java +++ b/components/camel-azure/camel-azure-files/src/main/java/org/apache/camel/component/file/azure/FilesEndpoint.java @@ -40,7 +40,7 @@ import org.apache.camel.spi.UriParam; import org.apache.camel.util.ObjectHelper; /** - * Send and receive files to Azure storage file share + * Read files from and write files to a file share in Azure Files. */ @UriEndpoint(firstVersion = "3.22.0", scheme = FilesComponent.SCHEME, extendsScheme = "file", title = "Azure Files", syntax = FilesComponent.SCHEME + ":account/share", category = { @@ -78,7 +78,11 @@ public class FilesEndpoint extends RemoteFileEndpoint<ShareFileItem> implements protected FilesConfiguration configuration; @UriParam protected FilesToken token = new FilesToken(); - @UriParam(label = "consumer") + @UriParam(label = "consumer", + description = "Whether the consumer resumes a download that failed, instead of downloading the whole file" + + " again. It needs localWorkDirectory: the consumer keeps the partial .inprogress file of a failed" + + " download there and fetches only the rest of the file in the next attempt. The route fails to" + + " start if localWorkDirectory is not set.") protected boolean resumeDownload; public FilesEndpoint() { @@ -161,11 +165,6 @@ public class FilesEndpoint extends RemoteFileEndpoint<ShareFileItem> implements return resumeDownload; } - /** - * Configures whether resume download is enabled. In addition the options <tt>localWorkDirectory</tt> must be - * configured so downloaded files are stored in a local directory, which is required to support resuming of - * downloads. - */ public void setResumeDownload(boolean resumeDownload) { this.resumeDownload = resumeDownload; } diff --git a/components/camel-azure/camel-azure-files/src/main/java/org/apache/camel/component/file/azure/FilesToken.java b/components/camel-azure/camel-azure-files/src/main/java/org/apache/camel/component/file/azure/FilesToken.java index e9f7284fcb67..458239ae8ea8 100644 --- a/components/camel-azure/camel-azure-files/src/main/java/org/apache/camel/component/file/azure/FilesToken.java +++ b/components/camel-azure/camel-azure-files/src/main/java/org/apache/camel/component/file/azure/FilesToken.java @@ -36,29 +36,57 @@ import org.apache.camel.spi.UriParams; @UriParams final class FilesToken { - @UriParam(label = "security", description = "part of SAS token", security = "secret") + @UriParam(label = "security", security = "secret", + description = "The signed version (sv) of the SAS token for credentialType=AZURE_SAS: the storage service " + + "version that signs it, for example 2022-11-02. Azure requires it in every SAS token.") private String sv; - @UriParam(label = "security", description = "part of account SAS token", security = "secret") + @UriParam(label = "security", security = "secret", + description = "The signed services (ss) of an account SAS token for credentialType=AZURE_SAS, for example f. " + + "The value must include f, the file service. Not used in a service SAS token.") private String ss; - @UriParam(label = "security", description = "part of SAS token", security = "secret") + @UriParam(label = "security", security = "secret", + description = "The signed resource types (srt) of an account SAS token for credentialType=AZURE_SAS: s for " + + "service, c for container (share or directory) and o for object (file), for example sco. Not " + + "used in a service SAS token.") private String srt; - @UriParam(label = "security", description = "part of SAS token", security = "secret") + @UriParam(label = "security", security = "secret", + description = "The signed permissions (sp) of the SAS token for credentialType=AZURE_SAS, for example rwdlc " + + "for read, write, delete, list and create.") private String sp; - @UriParam(label = "security", description = "part of SAS token", security = "secret") + @UriParam(label = "security", security = "secret", + description = "The signed expiry (se) of the SAS token for credentialType=AZURE_SAS: the UTC time in ISO 8601 " + + "format after which the token is no longer valid, for example 2023-06-18T22:29:13Z.") private String se; - @UriParam(label = "security", description = "part of SAS token", security = "secret") + @UriParam(label = "security", security = "secret", + description = "The signed start (st) of the SAS token for credentialType=AZURE_SAS: the UTC time in ISO 8601 " + + "format from which the token is valid. If the token has no start time, it is valid from the time " + + "that the file service receives the request.") private String st; - @UriParam(label = "security", description = "part of SAS token", security = "secret") + @UriParam(label = "security", security = "secret", + description = "The signed protocol (spr) of the SAS token for credentialType=AZURE_SAS: https, or https,http. " + + "The component always connects with HTTPS.") private String spr; - @UriParam(label = "security", description = "part of SAS token", security = "secret") + @UriParam(label = "security", security = "secret", + description = "The signature (sig) of the SAS token for credentialType=AZURE_SAS, Base64 encoded. It can be " + + "given URL-encoded, as it appears in the SAS token.") private String sig; - @UriParam(label = "security", description = "part of service SAS token", security = "secret") + @UriParam(label = "security", security = "secret", + description = "The signed identifier (si) of a service SAS token for credentialType=AZURE_SAS: the name of a " + + "stored access policy on the share, which can hold the permissions and validity times of the " + + "token.") private String si; - @UriParam(label = "security", description = "part of service SAS token", security = "secret") + @UriParam(label = "security", security = "secret", + description = "The signed resource (sr) of a service SAS token for credentialType=AZURE_SAS: s for a share or " + + "f for a file. Not used in an account SAS token.") private String sr; - @UriParam(label = "security", description = "part of service SAS token", security = "secret") + @UriParam(label = "security", security = "secret", + description = "The signed directory depth (sdd) of a service SAS token for credentialType=AZURE_SAS. The " + + "component adds it to the token as given.") private String sdd; - @UriParam(label = "security", description = "part of SAS token", security = "secret") + @UriParam(label = "security", security = "secret", + description = "The signed IP (sip) of the SAS token for credentialType=AZURE_SAS: the IP address or range of " + + "IP addresses that requests with the token must come from, for example 168.1.5.65 or " + + "168.1.5.60-168.1.5.70.") private String sip; public void setSv(String sv) { diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java index 448dd66f1faa..4aaef6f79d77 100644 --- a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java +++ b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java @@ -894,7 +894,7 @@ public interface ComponentsBuilderFactory { } /** * Azure Files (camel-azure-files) - * Send and receive files to Azure storage file share + * Read files from and write files to a file share in Azure Files. * * Category: cloud,file * Since: 3.22 diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AzureFilesComponentBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AzureFilesComponentBuilderFactory.java index 72d89f600cbe..87750459376d 100644 --- a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AzureFilesComponentBuilderFactory.java +++ b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AzureFilesComponentBuilderFactory.java @@ -24,7 +24,7 @@ import org.apache.camel.builder.component.ComponentBuilder; import org.apache.camel.component.file.azure.FilesComponent; /** - * Send and receive files to Azure storage file share + * Read files from and write files to a file share in Azure Files. * * Generated by camel build tools - do NOT edit this file! */ @@ -33,7 +33,7 @@ public interface AzureFilesComponentBuilderFactory { /** * Azure Files (camel-azure-files) - * Send and receive files to Azure storage file share + * Read files from and write files to a file share in Azure Files. * * Category: cloud,file * Since: 3.22 diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java index cb32146d9516..59fb6ed4b477 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java @@ -860,7 +860,7 @@ public class EndpointHeaderBuilders { } /** * Azure Files (camel-azure-files) - * Send and receive files to Azure storage file share + * Read files from and write files to a file share in Azure Files. * * Category: cloud,file * Since: 3.22 diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java index 3fbbb24d2b77..dbeb2178a583 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java @@ -2866,7 +2866,7 @@ public class StaticEndpointBuilders { } /** * Azure Files (camel-azure-files) - * Send and receive files to Azure storage file share + * Read files from and write files to a file share in Azure Files. * * Category: cloud,file * Since: 3.22 @@ -2875,10 +2875,16 @@ public class StaticEndpointBuilders { * Syntax: <code>azure-files:account/share</code> * * Path parameter: account (required) - * The account to use + * The name of the storage account, for example myaccount, or the host name + * of its file service, for example myaccount.file.core.windows.net. With a + * name alone, the component connects to that name with the + * .file.core.windows.net suffix, always over HTTPS. * * Path parameter: share (required) - * The share to use + * The name of the file share in the storage account. A path after the share + * name in the endpoint URI is the directory, from the share root, that the + * consumer polls and that the producer writes to. Without it, the share + * root is used. * * Path parameter: port * Port of the FTP server @@ -2894,7 +2900,7 @@ public class StaticEndpointBuilders { } /** * Azure Files (camel-azure-files) - * Send and receive files to Azure storage file share + * Read files from and write files to a file share in Azure Files. * * Category: cloud,file * Since: 3.22 @@ -2903,10 +2909,16 @@ public class StaticEndpointBuilders { * Syntax: <code>azure-files:account/share</code> * * Path parameter: account (required) - * The account to use + * The name of the storage account, for example myaccount, or the host name + * of its file service, for example myaccount.file.core.windows.net. With a + * name alone, the component connects to that name with the + * .file.core.windows.net suffix, always over HTTPS. * * Path parameter: share (required) - * The share to use + * The name of the file share in the storage account. A path after the share + * name in the endpoint URI is the directory, from the share root, that the + * consumer polls and that the producer writes to. Without it, the share + * root is used. * * Path parameter: port * Port of the FTP server diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/FilesEndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/FilesEndpointBuilderFactory.java index 984424d71cef..cb5f1a227e3a 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/FilesEndpointBuilderFactory.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/FilesEndpointBuilderFactory.java @@ -27,7 +27,7 @@ import org.apache.camel.builder.EndpointProducerBuilder; import org.apache.camel.builder.endpoint.AbstractEndpointBuilder; /** - * Send and receive files to Azure storage file share + * Read files from and write files to a file share in Azure Files. * * Generated by camel build tools - do NOT edit this file! */ @@ -44,7 +44,14 @@ public interface FilesEndpointBuilderFactory { return (AdvancedFilesEndpointConsumerBuilder) this; } /** - * Determines the credential strategy to adopt. + * How the component authenticates: SHARED_ACCOUNT_KEY with the + * sharedKey option, AZURE_SAS with the SAS token options (sv, sig, se + * and the others), or AZURE_IDENTITY with the DefaultAzureCredential of + * the Azure Identity library and the backup intent, which needs the + * Storage File Data Privileged Reader or Contributor role. + * SHARED_KEY_CREDENTIAL is not supported: with it, or with + * SHARED_ACCOUNT_KEY and no sharedKey, the requests carry no + * credentials. * * The option is a: * <code>org.apache.camel.component.azure.common.CredentialType</code> @@ -61,7 +68,14 @@ public interface FilesEndpointBuilderFactory { return this; } /** - * Determines the credential strategy to adopt. + * How the component authenticates: SHARED_ACCOUNT_KEY with the + * sharedKey option, AZURE_SAS with the SAS token options (sv, sig, se + * and the others), or AZURE_IDENTITY with the DefaultAzureCredential of + * the Azure Identity library and the backup intent, which needs the + * Storage File Data Privileged Reader or Contributor role. + * SHARED_KEY_CREDENTIAL is not supported: with it, or with + * SHARED_ACCOUNT_KEY and no sharedKey, the requests carry no + * credentials. * * The option will be converted to a * <code>org.apache.camel.component.azure.common.CredentialType</code> @@ -213,7 +227,11 @@ public interface FilesEndpointBuilderFactory { return this; } /** - * Shared key (storage account key). + * The access key of the storage account, for + * credentialType=SHARED_ACCOUNT_KEY. The component signs the requests + * with this key and the account option as the account name, so the + * endpoint URI must give the account name, not the host name. A + in + * the key can stay unencoded in the endpoint URI. * * The option is a: <code>java.lang.String</code> type. * @@ -382,10 +400,11 @@ public interface FilesEndpointBuilderFactory { return this; } /** - * Configures whether resume download is enabled. In addition the - * options localWorkDirectory must be configured so downloaded files are - * stored in a local directory, which is required to support resuming of - * downloads. + * Whether the consumer resumes a download that failed, instead of + * downloading the whole file again. It needs localWorkDirectory: the + * consumer keeps the partial .inprogress file of a failed download + * there and fetches only the rest of the file in the next attempt. The + * route fails to start if localWorkDirectory is not set. * * The option is a: <code>boolean</code> type. * @@ -400,10 +419,11 @@ public interface FilesEndpointBuilderFactory { return this; } /** - * Configures whether resume download is enabled. In addition the - * options localWorkDirectory must be configured so downloaded files are - * stored in a local directory, which is required to support resuming of - * downloads. + * Whether the consumer resumes a download that failed, instead of + * downloading the whole file again. It needs localWorkDirectory: the + * consumer keeps the partial .inprogress file of a failed download + * there and fetches only the rest of the file in the next attempt. The + * route fails to start if localWorkDirectory is not set. * * The option will be converted to a <code>boolean</code> type. * @@ -1822,7 +1842,9 @@ public interface FilesEndpointBuilderFactory { return this; } /** - * part of service SAS token. + * The signed directory depth (sdd) of a service SAS token for + * credentialType=AZURE_SAS. The component adds it to the token as + * given. * * The option is a: <code>java.lang.String</code> type. * @@ -1836,7 +1858,9 @@ public interface FilesEndpointBuilderFactory { return this; } /** - * part of SAS token. + * The signed expiry (se) of the SAS token for credentialType=AZURE_SAS: + * the UTC time in ISO 8601 format after which the token is no longer + * valid, for example 2023-06-18T22:29:13Z. * * The option is a: <code>java.lang.String</code> type. * @@ -1850,7 +1874,10 @@ public interface FilesEndpointBuilderFactory { return this; } /** - * part of service SAS token. + * The signed identifier (si) of a service SAS token for + * credentialType=AZURE_SAS: the name of a stored access policy on the + * share, which can hold the permissions and validity times of the + * token. * * The option is a: <code>java.lang.String</code> type. * @@ -1864,7 +1891,9 @@ public interface FilesEndpointBuilderFactory { return this; } /** - * part of SAS token. + * The signature (sig) of the SAS token for credentialType=AZURE_SAS, + * Base64 encoded. It can be given URL-encoded, as it appears in the SAS + * token. * * The option is a: <code>java.lang.String</code> type. * @@ -1878,7 +1907,9 @@ public interface FilesEndpointBuilderFactory { return this; } /** - * part of SAS token. + * The signed IP (sip) of the SAS token for credentialType=AZURE_SAS: + * the IP address or range of IP addresses that requests with the token + * must come from, for example 168.1.5.65 or 168.1.5.60-168.1.5.70. * * The option is a: <code>java.lang.String</code> type. * @@ -1892,7 +1923,9 @@ public interface FilesEndpointBuilderFactory { return this; } /** - * part of SAS token. + * The signed permissions (sp) of the SAS token for + * credentialType=AZURE_SAS, for example rwdlc for read, write, delete, + * list and create. * * The option is a: <code>java.lang.String</code> type. * @@ -1906,7 +1939,9 @@ public interface FilesEndpointBuilderFactory { return this; } /** - * part of SAS token. + * The signed protocol (spr) of the SAS token for + * credentialType=AZURE_SAS: https, or https,http. The component always + * connects with HTTPS. * * The option is a: <code>java.lang.String</code> type. * @@ -1920,7 +1955,9 @@ public interface FilesEndpointBuilderFactory { return this; } /** - * part of service SAS token. + * The signed resource (sr) of a service SAS token for + * credentialType=AZURE_SAS: s for a share or f for a file. Not used in + * an account SAS token. * * The option is a: <code>java.lang.String</code> type. * @@ -1934,7 +1971,10 @@ public interface FilesEndpointBuilderFactory { return this; } /** - * part of SAS token. + * The signed resource types (srt) of an account SAS token for + * credentialType=AZURE_SAS: s for service, c for container (share or + * directory) and o for object (file), for example sco. Not used in a + * service SAS token. * * The option is a: <code>java.lang.String</code> type. * @@ -1948,7 +1988,9 @@ public interface FilesEndpointBuilderFactory { return this; } /** - * part of account SAS token. + * The signed services (ss) of an account SAS token for + * credentialType=AZURE_SAS, for example f. The value must include f, + * the file service. Not used in a service SAS token. * * The option is a: <code>java.lang.String</code> type. * @@ -1962,7 +2004,10 @@ public interface FilesEndpointBuilderFactory { return this; } /** - * part of SAS token. + * The signed start (st) of the SAS token for credentialType=AZURE_SAS: + * the UTC time in ISO 8601 format from which the token is valid. If the + * token has no start time, it is valid from the time that the file + * service receives the request. * * The option is a: <code>java.lang.String</code> type. * @@ -1976,7 +2021,9 @@ public interface FilesEndpointBuilderFactory { return this; } /** - * part of SAS token. + * The signed version (sv) of the SAS token for + * credentialType=AZURE_SAS: the storage service version that signs it, + * for example 2022-11-02. Azure requires it in every SAS token. * * The option is a: <code>java.lang.String</code> type. * @@ -2641,7 +2688,14 @@ public interface FilesEndpointBuilderFactory { } /** - * Determines the credential strategy to adopt. + * How the component authenticates: SHARED_ACCOUNT_KEY with the + * sharedKey option, AZURE_SAS with the SAS token options (sv, sig, se + * and the others), or AZURE_IDENTITY with the DefaultAzureCredential of + * the Azure Identity library and the backup intent, which needs the + * Storage File Data Privileged Reader or Contributor role. + * SHARED_KEY_CREDENTIAL is not supported: with it, or with + * SHARED_ACCOUNT_KEY and no sharedKey, the requests carry no + * credentials. * * The option is a: * <code>org.apache.camel.component.azure.common.CredentialType</code> @@ -2658,7 +2712,14 @@ public interface FilesEndpointBuilderFactory { return this; } /** - * Determines the credential strategy to adopt. + * How the component authenticates: SHARED_ACCOUNT_KEY with the + * sharedKey option, AZURE_SAS with the SAS token options (sv, sig, se + * and the others), or AZURE_IDENTITY with the DefaultAzureCredential of + * the Azure Identity library and the backup intent, which needs the + * Storage File Data Privileged Reader or Contributor role. + * SHARED_KEY_CREDENTIAL is not supported: with it, or with + * SHARED_ACCOUNT_KEY and no sharedKey, the requests carry no + * credentials. * * The option will be converted to a * <code>org.apache.camel.component.azure.common.CredentialType</code> @@ -2810,7 +2871,11 @@ public interface FilesEndpointBuilderFactory { return this; } /** - * Shared key (storage account key). + * The access key of the storage account, for + * credentialType=SHARED_ACCOUNT_KEY. The component signs the requests + * with this key and the account option as the account name, so the + * endpoint URI must give the account name, not the host name. A + in + * the key can stay unencoded in the endpoint URI. * * The option is a: <code>java.lang.String</code> type. * @@ -3014,7 +3079,9 @@ public interface FilesEndpointBuilderFactory { return this; } /** - * part of service SAS token. + * The signed directory depth (sdd) of a service SAS token for + * credentialType=AZURE_SAS. The component adds it to the token as + * given. * * The option is a: <code>java.lang.String</code> type. * @@ -3028,7 +3095,9 @@ public interface FilesEndpointBuilderFactory { return this; } /** - * part of SAS token. + * The signed expiry (se) of the SAS token for credentialType=AZURE_SAS: + * the UTC time in ISO 8601 format after which the token is no longer + * valid, for example 2023-06-18T22:29:13Z. * * The option is a: <code>java.lang.String</code> type. * @@ -3042,7 +3111,10 @@ public interface FilesEndpointBuilderFactory { return this; } /** - * part of service SAS token. + * The signed identifier (si) of a service SAS token for + * credentialType=AZURE_SAS: the name of a stored access policy on the + * share, which can hold the permissions and validity times of the + * token. * * The option is a: <code>java.lang.String</code> type. * @@ -3056,7 +3128,9 @@ public interface FilesEndpointBuilderFactory { return this; } /** - * part of SAS token. + * The signature (sig) of the SAS token for credentialType=AZURE_SAS, + * Base64 encoded. It can be given URL-encoded, as it appears in the SAS + * token. * * The option is a: <code>java.lang.String</code> type. * @@ -3070,7 +3144,9 @@ public interface FilesEndpointBuilderFactory { return this; } /** - * part of SAS token. + * The signed IP (sip) of the SAS token for credentialType=AZURE_SAS: + * the IP address or range of IP addresses that requests with the token + * must come from, for example 168.1.5.65 or 168.1.5.60-168.1.5.70. * * The option is a: <code>java.lang.String</code> type. * @@ -3084,7 +3160,9 @@ public interface FilesEndpointBuilderFactory { return this; } /** - * part of SAS token. + * The signed permissions (sp) of the SAS token for + * credentialType=AZURE_SAS, for example rwdlc for read, write, delete, + * list and create. * * The option is a: <code>java.lang.String</code> type. * @@ -3098,7 +3176,9 @@ public interface FilesEndpointBuilderFactory { return this; } /** - * part of SAS token. + * The signed protocol (spr) of the SAS token for + * credentialType=AZURE_SAS: https, or https,http. The component always + * connects with HTTPS. * * The option is a: <code>java.lang.String</code> type. * @@ -3112,7 +3192,9 @@ public interface FilesEndpointBuilderFactory { return this; } /** - * part of service SAS token. + * The signed resource (sr) of a service SAS token for + * credentialType=AZURE_SAS: s for a share or f for a file. Not used in + * an account SAS token. * * The option is a: <code>java.lang.String</code> type. * @@ -3126,7 +3208,10 @@ public interface FilesEndpointBuilderFactory { return this; } /** - * part of SAS token. + * The signed resource types (srt) of an account SAS token for + * credentialType=AZURE_SAS: s for service, c for container (share or + * directory) and o for object (file), for example sco. Not used in a + * service SAS token. * * The option is a: <code>java.lang.String</code> type. * @@ -3140,7 +3225,9 @@ public interface FilesEndpointBuilderFactory { return this; } /** - * part of account SAS token. + * The signed services (ss) of an account SAS token for + * credentialType=AZURE_SAS, for example f. The value must include f, + * the file service. Not used in a service SAS token. * * The option is a: <code>java.lang.String</code> type. * @@ -3154,7 +3241,10 @@ public interface FilesEndpointBuilderFactory { return this; } /** - * part of SAS token. + * The signed start (st) of the SAS token for credentialType=AZURE_SAS: + * the UTC time in ISO 8601 format from which the token is valid. If the + * token has no start time, it is valid from the time that the file + * service receives the request. * * The option is a: <code>java.lang.String</code> type. * @@ -3168,7 +3258,9 @@ public interface FilesEndpointBuilderFactory { return this; } /** - * part of SAS token. + * The signed version (sv) of the SAS token for + * credentialType=AZURE_SAS: the storage service version that signs it, + * for example 2022-11-02. Azure requires it in every SAS token. * * The option is a: <code>java.lang.String</code> type. * @@ -3647,7 +3739,14 @@ public interface FilesEndpointBuilderFactory { } /** - * Determines the credential strategy to adopt. + * How the component authenticates: SHARED_ACCOUNT_KEY with the + * sharedKey option, AZURE_SAS with the SAS token options (sv, sig, se + * and the others), or AZURE_IDENTITY with the DefaultAzureCredential of + * the Azure Identity library and the backup intent, which needs the + * Storage File Data Privileged Reader or Contributor role. + * SHARED_KEY_CREDENTIAL is not supported: with it, or with + * SHARED_ACCOUNT_KEY and no sharedKey, the requests carry no + * credentials. * * The option is a: * <code>org.apache.camel.component.azure.common.CredentialType</code> @@ -3664,7 +3763,14 @@ public interface FilesEndpointBuilderFactory { return this; } /** - * Determines the credential strategy to adopt. + * How the component authenticates: SHARED_ACCOUNT_KEY with the + * sharedKey option, AZURE_SAS with the SAS token options (sv, sig, se + * and the others), or AZURE_IDENTITY with the DefaultAzureCredential of + * the Azure Identity library and the backup intent, which needs the + * Storage File Data Privileged Reader or Contributor role. + * SHARED_KEY_CREDENTIAL is not supported: with it, or with + * SHARED_ACCOUNT_KEY and no sharedKey, the requests carry no + * credentials. * * The option will be converted to a * <code>org.apache.camel.component.azure.common.CredentialType</code> @@ -3816,7 +3922,11 @@ public interface FilesEndpointBuilderFactory { return this; } /** - * Shared key (storage account key). + * The access key of the storage account, for + * credentialType=SHARED_ACCOUNT_KEY. The component signs the requests + * with this key and the account option as the account name, so the + * endpoint URI must give the account name, not the host name. A + in + * the key can stay unencoded in the endpoint URI. * * The option is a: <code>java.lang.String</code> type. * @@ -3830,7 +3940,9 @@ public interface FilesEndpointBuilderFactory { return this; } /** - * part of service SAS token. + * The signed directory depth (sdd) of a service SAS token for + * credentialType=AZURE_SAS. The component adds it to the token as + * given. * * The option is a: <code>java.lang.String</code> type. * @@ -3844,7 +3956,9 @@ public interface FilesEndpointBuilderFactory { return this; } /** - * part of SAS token. + * The signed expiry (se) of the SAS token for credentialType=AZURE_SAS: + * the UTC time in ISO 8601 format after which the token is no longer + * valid, for example 2023-06-18T22:29:13Z. * * The option is a: <code>java.lang.String</code> type. * @@ -3858,7 +3972,10 @@ public interface FilesEndpointBuilderFactory { return this; } /** - * part of service SAS token. + * The signed identifier (si) of a service SAS token for + * credentialType=AZURE_SAS: the name of a stored access policy on the + * share, which can hold the permissions and validity times of the + * token. * * The option is a: <code>java.lang.String</code> type. * @@ -3872,7 +3989,9 @@ public interface FilesEndpointBuilderFactory { return this; } /** - * part of SAS token. + * The signature (sig) of the SAS token for credentialType=AZURE_SAS, + * Base64 encoded. It can be given URL-encoded, as it appears in the SAS + * token. * * The option is a: <code>java.lang.String</code> type. * @@ -3886,7 +4005,9 @@ public interface FilesEndpointBuilderFactory { return this; } /** - * part of SAS token. + * The signed IP (sip) of the SAS token for credentialType=AZURE_SAS: + * the IP address or range of IP addresses that requests with the token + * must come from, for example 168.1.5.65 or 168.1.5.60-168.1.5.70. * * The option is a: <code>java.lang.String</code> type. * @@ -3900,7 +4021,9 @@ public interface FilesEndpointBuilderFactory { return this; } /** - * part of SAS token. + * The signed permissions (sp) of the SAS token for + * credentialType=AZURE_SAS, for example rwdlc for read, write, delete, + * list and create. * * The option is a: <code>java.lang.String</code> type. * @@ -3914,7 +4037,9 @@ public interface FilesEndpointBuilderFactory { return this; } /** - * part of SAS token. + * The signed protocol (spr) of the SAS token for + * credentialType=AZURE_SAS: https, or https,http. The component always + * connects with HTTPS. * * The option is a: <code>java.lang.String</code> type. * @@ -3928,7 +4053,9 @@ public interface FilesEndpointBuilderFactory { return this; } /** - * part of service SAS token. + * The signed resource (sr) of a service SAS token for + * credentialType=AZURE_SAS: s for a share or f for a file. Not used in + * an account SAS token. * * The option is a: <code>java.lang.String</code> type. * @@ -3942,7 +4069,10 @@ public interface FilesEndpointBuilderFactory { return this; } /** - * part of SAS token. + * The signed resource types (srt) of an account SAS token for + * credentialType=AZURE_SAS: s for service, c for container (share or + * directory) and o for object (file), for example sco. Not used in a + * service SAS token. * * The option is a: <code>java.lang.String</code> type. * @@ -3956,7 +4086,9 @@ public interface FilesEndpointBuilderFactory { return this; } /** - * part of account SAS token. + * The signed services (ss) of an account SAS token for + * credentialType=AZURE_SAS, for example f. The value must include f, + * the file service. Not used in a service SAS token. * * The option is a: <code>java.lang.String</code> type. * @@ -3970,7 +4102,10 @@ public interface FilesEndpointBuilderFactory { return this; } /** - * part of SAS token. + * The signed start (st) of the SAS token for credentialType=AZURE_SAS: + * the UTC time in ISO 8601 format from which the token is valid. If the + * token has no start time, it is valid from the time that the file + * service receives the request. * * The option is a: <code>java.lang.String</code> type. * @@ -3984,7 +4119,9 @@ public interface FilesEndpointBuilderFactory { return this; } /** - * part of SAS token. + * The signed version (sv) of the SAS token for + * credentialType=AZURE_SAS: the storage service version that signs it, + * for example 2022-11-02. Azure requires it in every SAS token. * * The option is a: <code>java.lang.String</code> type. * @@ -4207,7 +4344,7 @@ public interface FilesEndpointBuilderFactory { public interface FilesBuilders { /** * Azure Files (camel-azure-files) - * Send and receive files to Azure storage file share + * Read files from and write files to a file share in Azure Files. * * Category: cloud,file * Since: 3.22 @@ -4220,7 +4357,7 @@ public interface FilesEndpointBuilderFactory { } /** * Azure Files (camel-azure-files) - * Send and receive files to Azure storage file share + * Read files from and write files to a file share in Azure Files. * * Category: cloud,file * Since: 3.22 @@ -4229,10 +4366,17 @@ public interface FilesEndpointBuilderFactory { * Syntax: <code>azure-files:account/share</code> * * Path parameter: account (required) - * The account to use + * The name of the storage account, for example myaccount, or the host + * name of its file service, for example + * myaccount.file.core.windows.net. With a name alone, the component + * connects to that name with the .file.core.windows.net suffix, always + * over HTTPS. * * Path parameter: share (required) - * The share to use + * The name of the file share in the storage account. A path after the + * share name in the endpoint URI is the directory, from the share root, + * that the consumer polls and that the producer writes to. Without it, + * the share root is used. * * Path parameter: port * Port of the FTP server @@ -4248,7 +4392,7 @@ public interface FilesEndpointBuilderFactory { } /** * Azure Files (camel-azure-files) - * Send and receive files to Azure storage file share + * Read files from and write files to a file share in Azure Files. * * Category: cloud,file * Since: 3.22 @@ -4257,10 +4401,17 @@ public interface FilesEndpointBuilderFactory { * Syntax: <code>azure-files:account/share</code> * * Path parameter: account (required) - * The account to use + * The name of the storage account, for example myaccount, or the host + * name of its file service, for example + * myaccount.file.core.windows.net. With a name alone, the component + * connects to that name with the .file.core.windows.net suffix, always + * over HTTPS. * * Path parameter: share (required) - * The share to use + * The name of the file share in the storage account. A path after the + * share name in the endpoint URI is the directory, from the share root, + * that the consumer polls and that the producer writes to. Without it, + * the share root is used. * * Path parameter: port * Port of the FTP server @@ -4289,7 +4440,9 @@ public interface FilesEndpointBuilderFactory { public static final FilesHeaderNameBuilder INSTANCE = new FilesHeaderNameBuilder(); /** - * A long value containing the file size. + * The size of the file in bytes, which the consumer sets. The producer + * uses it as the size of the file it creates when the body is a stream + * of unknown length. * * The option is a: {@code long} type. * @@ -4301,7 +4454,8 @@ public interface FilesEndpointBuilderFactory { return "CamelFileLength"; } /** - * A Long value containing the last modified timestamp of the file. + * The time that the file was last modified, in milliseconds since the + * epoch, as the file service lists it. * * The option is a: {@code long} type. * @@ -4325,12 +4479,10 @@ public interface FilesEndpointBuilderFactory { return "CamelFileNameOnly"; } /** - * (producer) Specifies the name of the file to write (relative to the - * endpoint directory). This name can be a String; a String with a file - * or simple Language expression; or an Expression object. If it's null - * then Camel will auto-generate a filename based on the message unique - * ID. (consumer) Name of the consumed file as a relative file path with - * offset from the starting directory configured on the endpoint. + * The name of the file, relative to the directory of the endpoint. The + * consumer sets it for the consumed file. The producer writes the file + * under this name, a String or an Expression, unless the fileName + * option is set; with neither, it uses the message ID. * * The option is a: {@code String} type. * @@ -4342,7 +4494,9 @@ public interface FilesEndpointBuilderFactory { return "CamelFileName"; } /** - * The name of the file that has been consumed. + * The name of the consumed file, relative to the directory of the + * endpoint. Unlike CamelFileName, it keeps this value when the route + * changes CamelFileName. * * The option is a: {@code String} type. * @@ -4354,11 +4508,8 @@ public interface FilesEndpointBuilderFactory { return "CamelFileNameConsumed"; } /** - * A boolean option specifying whether the consumed file denotes an - * absolute path or not. Should normally be false for relative paths. - * Absolute paths should normally not be used but we added to the move - * option to allow moving files to absolute paths. But can be used - * elsewhere as well. + * Whether the path of the consumed file in CamelFileAbsolutePath is + * absolute, that is, starts with / at the share root. * * The option is a: {@code Boolean} type. * @@ -4370,8 +4521,8 @@ public interface FilesEndpointBuilderFactory { return "CamelFileAbsolute"; } /** - * The absolute path to the file. For relative files this path holds the - * relative path instead. + * The path of the consumed file from the share root, without the share + * name, for example /inbox/order.xml. * * The option is a: {@code String} type. * @@ -4383,8 +4534,8 @@ public interface FilesEndpointBuilderFactory { return "CamelFileAbsolutePath"; } /** - * The file path. For relative files this is the starting directory. For - * absolute files this is the absolute path. + * The path of the consumed file from the share root, the same value as + * CamelFileAbsolutePath. * * The option is a: {@code String} type. * @@ -4396,7 +4547,9 @@ public interface FilesEndpointBuilderFactory { return "CamelFilePath"; } /** - * The relative path. + * The path of the consumed file relative to the directory of the + * endpoint, for example 2026/order.xml for a file in a subdirectory + * with recursive=true. * * The option is a: {@code String} type. * @@ -4408,7 +4561,8 @@ public interface FilesEndpointBuilderFactory { return "CamelFileRelativePath"; } /** - * The parent path. + * The path of the directory that holds the consumed file, from the + * share root, for example /inbox. * * The option is a: {@code String} type. * @@ -4420,9 +4574,8 @@ public interface FilesEndpointBuilderFactory { return "CamelFileParent"; } /** - * The actual absolute filepath (path + name) for the output file that - * was written. This header is set by Camel and its purpose is providing - * end-users with the name of the file that was written. + * The path of the file that the producer wrote, from the share root, + * for example /outbox/order.xml. * * The option is a: {@code String} type. * @@ -4434,11 +4587,10 @@ public interface FilesEndpointBuilderFactory { return "CamelFileNameProduced"; } /** - * Is used for overruling CamelFileName header and use the value instead - * (but only once, as the producer will remove this header after writing - * the file). The value can be only be a String. Notice that if the - * option fileName has been configured, then this is still being - * evaluated. + * A file name, a String or an Expression, that the producer uses + * instead of CamelFileName for one write only: the producer removes + * this header after the write. The fileName option, if set, still takes + * precedence. * * The option is a: {@code Object} type. * @@ -4450,7 +4602,9 @@ public interface FilesEndpointBuilderFactory { return "CamelOverruleFileName"; } /** - * The remote file input stream. + * The input stream of the content of the consumed file, with + * streamDownload=true. The consumer closes it when the exchange is + * done. * * The option is a: {@code java.io.InputStream} type. * @@ -4462,7 +4616,9 @@ public interface FilesEndpointBuilderFactory { return "CamelRemoteFileInputStream"; } /** - * Path to the local work file, if local work directory is used. + * The path of the local file in localWorkDirectory that holds the + * downloaded content of the consumed file. The consumer deletes this + * file when the exchange is done. * * The option is a: {@code String} type. * @@ -4474,7 +4630,8 @@ public interface FilesEndpointBuilderFactory { return "CamelFileLocalWorkPath"; } /** - * The remote hostname. + * The host name of the file service of the storage account, for example + * myaccount.file.core.windows.net. The consumer sets it. * * The option is a: {@code String} type. * diff --git a/tasks/component-descriptions.md b/tasks/component-descriptions.md index e48c8fbf0976..b2e656f9b875 100644 --- a/tasks/component-descriptions.md +++ b/tasks/component-descriptions.md @@ -111,7 +111,7 @@ or removes its row. | camel-azure-cosmosdb | azure-cosmosdb | yes | | camel-azure-eventgrid | azure-eventgrid | | | camel-azure-eventhubs | azure-eventhubs | | -| camel-azure-files | azure-files | | +| camel-azure-files | azure-files | yes | | camel-azure-functions | azure-functions | | | camel-azure-iothub | azure-iothub | yes | | camel-azure-key-vault | azure-key-vault | yes |
