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 8a78f11666acee7c83b90394596354076cf8daae Author: Claus Ibsen <[email protected]> AuthorDate: Fri Nov 27 18:24:18 2026 +0100 CAMEL-23832: camel-huaweicloud-smn - improve the component and option descriptions This commit rewrites the component description and the texts of all 14 endpoint options of hwcloud-smn (there are no headers: the component reads and sets exchange properties). The old endpoint and region texts suggested that endpoint makes region unneeded, while the URN of the topic always takes the region. The texts now name the supported service and operations, the unit and the exchange property of messageTtl, and that accessKey and secretKey win over serviceKeys. Documentation only, no behavior change. The component JSON, the catalog copy, the doc page header and the DSL are regenerated. camel-huaweicloud-smn 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/hwcloud-smn.json | 30 ++++---- .../camel/catalog/docs/hwcloud-smn-component.adoc | 4 +- .../component/huaweicloud/smn/hwcloud-smn.json | 30 ++++---- .../src/main/docs/hwcloud-smn-component.adoc | 4 +- .../smn/SimpleNotificationEndpoint.java | 56 +++++++++++---- .../component/ComponentsBuilderFactory.java | 4 +- .../dsl/HwcloudSmnComponentBuilderFactory.java | 7 +- .../builder/endpoint/StaticEndpointBuilders.java | 14 ++-- .../SimpleNotificationEndpointBuilderFactory.java | 80 ++++++++++++++-------- tasks/component-descriptions.md | 2 +- 10 files changed, 140 insertions(+), 91 deletions(-) diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/hwcloud-smn.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/hwcloud-smn.json index df6ce22aca9b..756b679bb963 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/hwcloud-smn.json +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/hwcloud-smn.json @@ -3,7 +3,7 @@ "kind": "component", "name": "hwcloud-smn", "title": "Huawei Simple Message Notification (SMN)", - "description": "To broadcast messages and connect cloud services through notifications on Huawei Cloud", + "description": "Publish messages to topics of Huawei Cloud Simple Message Notification (SMN).", "deprecated": false, "firstVersion": "3.8.0", "label": "cloud,messaging", @@ -32,20 +32,20 @@ "producerOut": { "carriers": [ "unchanged" ], "description": "Unchanged, with the ids of the message and of the request in the CamelHwCloudSmnMessageId and CamelHwCloudSmnRequestId exchange properties. The message id is also in the deprecated CamelHwCloudSmnMesssageId exchange property" } }, "properties": { - "smnService": { "index": 0, "kind": "path", "displayName": "Service name", "group": "producer", "label": "producer", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Name of SMN service to invoke" }, - "accessKey": { "index": 1, "kind": "parameter", "displayName": "API access key (AK)", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "description": "Access key for the cloud user" }, - "endpoint": { "index": 2, "kind": "parameter", "displayName": "Service endpoint", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Fully qualified smn service url. Carries higher precedence than region parameter based client initialization" }, - "messageTtl": { "index": 3, "kind": "parameter", "displayName": "Message TTL", "group": "producer", "label": "", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 3600, "description": "TTL for published message" }, - "operation": { "index": 4, "kind": "parameter", "displayName": "Operation name", "group": "producer", "label": "producer", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Name of operation to perform" }, - "projectId": { "index": 5, "kind": "parameter", "displayName": "Project ID", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Cloud project ID" }, - "proxyHost": { "index": 6, "kind": "parameter", "displayName": "Proxy server host", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Proxy server ip\/hostname" }, - "proxyPassword": { "index": 7, "kind": "parameter", "displayName": "Proxy password", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "description": "Proxy authentication password" }, - "proxyPort": { "index": 8, "kind": "parameter", "displayName": "Proxy server port", "group": "producer", "label": "", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "description": "Proxy server port" }, - "proxyUser": { "index": 9, "kind": "parameter", "displayName": "Proxy user", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "description": "Proxy authentication user" }, - "region": { "index": 10, "kind": "parameter", "displayName": "Service region", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "SMN service region. This is lower precedence than endpoint based configuration" }, - "secretKey": { "index": 11, "kind": "parameter", "displayName": "API secret key (SK)", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "description": "Secret key for the cloud user" }, - "serviceKeys": { "index": 12, "kind": "parameter", "displayName": "Service Configuration", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.huaweicloud.common.models.ServiceKeys", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "description": "Configuration object for cloud service authentication" }, + "smnService": { "index": 0, "kind": "path", "displayName": "Service name", "group": "producer", "label": "producer", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The SMN service that the producer calls. Only publishMessageService is supported." }, + "accessKey": { "index": 1, "kind": "parameter", "displayName": "API access key (AK)", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "description": "The access key ID (AK) of the Huawei Cloud credentials. If not set, the accessKey of the serviceKeys option is used." }, + "endpoint": { "index": 2, "kind": "parameter", "displayName": "Service endpoint", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The endpoint URL of SMN, for example https:\/\/smn.cn-north-4.myhuaweicloud.com. When set, the client uses it instead of the endpoint of the region option. The region option is still needed for the URN of the topic." }, + "messageTtl": { "index": 3, "kind": "parameter", "displayName": "Message TTL", "group": "producer", "label": "", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 3600, "description": "The time to live of the published message in seconds, after which SMN no longer delivers it. SMN accepts at most 86400 (one day). The CamelHwCloudSmnMessageTtl exchange property replaces this option." }, + "operation": { "index": 4, "kind": "parameter", "displayName": "Operation name", "group": "producer", "label": "producer", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The operation that the producer performs: publishAsTextMessage or publishAsTemplatedMessage. The CamelHwCloudSmnOperation exchange property replaces this option." }, + "projectId": { "index": 5, "kind": "parameter", "displayName": "Project ID", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The ID of the Huawei Cloud project of the topic. The producer uses it in the URN of the topic and in the credentials of the requests." }, + "proxyHost": { "index": 6, "kind": "parameter", "displayName": "Proxy server host", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The host name or IP address of the proxy server. The producer uses a proxy only when this option is set." }, + "proxyPassword": { "index": 7, "kind": "parameter", "displayName": "Proxy password", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "description": "The password to authenticate with the proxy server. It is used only when the proxyHost and proxyUser options are set." }, + "proxyPort": { "index": 8, "kind": "parameter", "displayName": "Proxy server port", "group": "producer", "label": "", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "description": "The port of the proxy server. It is used only when the proxyHost option is set." }, + "proxyUser": { "index": 9, "kind": "parameter", "displayName": "Proxy user", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "description": "The user name to authenticate with the proxy server. It is used only when the proxyHost option is set." }, + "region": { "index": 10, "kind": "parameter", "displayName": "Service region", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The region ID of SMN, for example cn-north-4. The producer uses it in the URN of the topic, and to find the endpoint of SMN when the endpoint option is not set." }, + "secretKey": { "index": 11, "kind": "parameter", "displayName": "API secret key (SK)", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "description": "The secret access key (SK) of the Huawei Cloud credentials. If not set, the secretKey of the serviceKeys option is used." }, + "serviceKeys": { "index": 12, "kind": "parameter", "displayName": "Service Configuration", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.huaweicloud.common.models.ServiceKeys", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "description": "The AK\/SK pair as an org.apache.camel.component.huaweicloud.common.models.ServiceKeys. Its accessKey and its secretKey are each used when the option o [...] "lazyStartProducer": { "index": 13, "kind": "parameter", "displayName": "Lazy Start Producer", "group": "producer (advanced)", "label": "producer,advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a produ [...] - "ignoreSslVerification": { "index": 14, "kind": "parameter", "displayName": "SSL Verification Ignored", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "security": "insecure:ssl", "defaultValue": false, "description": "Ignore SSL verification" } + "ignoreSslVerification": { "index": 14, "kind": "parameter", "displayName": "SSL Verification Ignored", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "security": "insecure:ssl", "defaultValue": false, "description": "Whether to skip the verification of the TLS certificate of the server. This makes the connection insecure: use it only for testing." } } } diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/hwcloud-smn-component.adoc b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/hwcloud-smn-component.adoc index 57640fa861a1..541ba22b69f3 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/hwcloud-smn-component.adoc +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/hwcloud-smn-component.adoc @@ -2,7 +2,7 @@ :doctitle: Huawei Simple Message Notification (SMN) :shortname: hwcloud-smn :artifactid: camel-huaweicloud-smn -:description: To broadcast messages and connect cloud services through notifications on Huawei Cloud +:description: Publish messages to topics of Huawei Cloud Simple Message Notification (SMN). :since: 3.8 :supportlevel: Stable :tabs-sync-option: @@ -210,5 +210,3 @@ from("direct:triggerRoute") .setProperty(SmnProperties.NOTIFICATION_TTL, constant(60)) .to("hwcloud-smn:publishMessageService?operation=publishAsTextMessage&projectId=9071a38e7f6a4ba7b7bcbeb7d4ea6efc®ion=cn-north-4&serviceKeys=#myServiceKeyConfig") ---- - - diff --git a/components/camel-huawei/camel-huaweicloud-smn/src/generated/resources/META-INF/org/apache/camel/component/huaweicloud/smn/hwcloud-smn.json b/components/camel-huawei/camel-huaweicloud-smn/src/generated/resources/META-INF/org/apache/camel/component/huaweicloud/smn/hwcloud-smn.json index df6ce22aca9b..756b679bb963 100644 --- a/components/camel-huawei/camel-huaweicloud-smn/src/generated/resources/META-INF/org/apache/camel/component/huaweicloud/smn/hwcloud-smn.json +++ b/components/camel-huawei/camel-huaweicloud-smn/src/generated/resources/META-INF/org/apache/camel/component/huaweicloud/smn/hwcloud-smn.json @@ -3,7 +3,7 @@ "kind": "component", "name": "hwcloud-smn", "title": "Huawei Simple Message Notification (SMN)", - "description": "To broadcast messages and connect cloud services through notifications on Huawei Cloud", + "description": "Publish messages to topics of Huawei Cloud Simple Message Notification (SMN).", "deprecated": false, "firstVersion": "3.8.0", "label": "cloud,messaging", @@ -32,20 +32,20 @@ "producerOut": { "carriers": [ "unchanged" ], "description": "Unchanged, with the ids of the message and of the request in the CamelHwCloudSmnMessageId and CamelHwCloudSmnRequestId exchange properties. The message id is also in the deprecated CamelHwCloudSmnMesssageId exchange property" } }, "properties": { - "smnService": { "index": 0, "kind": "path", "displayName": "Service name", "group": "producer", "label": "producer", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Name of SMN service to invoke" }, - "accessKey": { "index": 1, "kind": "parameter", "displayName": "API access key (AK)", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "description": "Access key for the cloud user" }, - "endpoint": { "index": 2, "kind": "parameter", "displayName": "Service endpoint", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Fully qualified smn service url. Carries higher precedence than region parameter based client initialization" }, - "messageTtl": { "index": 3, "kind": "parameter", "displayName": "Message TTL", "group": "producer", "label": "", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 3600, "description": "TTL for published message" }, - "operation": { "index": 4, "kind": "parameter", "displayName": "Operation name", "group": "producer", "label": "producer", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Name of operation to perform" }, - "projectId": { "index": 5, "kind": "parameter", "displayName": "Project ID", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Cloud project ID" }, - "proxyHost": { "index": 6, "kind": "parameter", "displayName": "Proxy server host", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Proxy server ip\/hostname" }, - "proxyPassword": { "index": 7, "kind": "parameter", "displayName": "Proxy password", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "description": "Proxy authentication password" }, - "proxyPort": { "index": 8, "kind": "parameter", "displayName": "Proxy server port", "group": "producer", "label": "", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "description": "Proxy server port" }, - "proxyUser": { "index": 9, "kind": "parameter", "displayName": "Proxy user", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "description": "Proxy authentication user" }, - "region": { "index": 10, "kind": "parameter", "displayName": "Service region", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "SMN service region. This is lower precedence than endpoint based configuration" }, - "secretKey": { "index": 11, "kind": "parameter", "displayName": "API secret key (SK)", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "description": "Secret key for the cloud user" }, - "serviceKeys": { "index": 12, "kind": "parameter", "displayName": "Service Configuration", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.huaweicloud.common.models.ServiceKeys", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "description": "Configuration object for cloud service authentication" }, + "smnService": { "index": 0, "kind": "path", "displayName": "Service name", "group": "producer", "label": "producer", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The SMN service that the producer calls. Only publishMessageService is supported." }, + "accessKey": { "index": 1, "kind": "parameter", "displayName": "API access key (AK)", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "description": "The access key ID (AK) of the Huawei Cloud credentials. If not set, the accessKey of the serviceKeys option is used." }, + "endpoint": { "index": 2, "kind": "parameter", "displayName": "Service endpoint", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The endpoint URL of SMN, for example https:\/\/smn.cn-north-4.myhuaweicloud.com. When set, the client uses it instead of the endpoint of the region option. The region option is still needed for the URN of the topic." }, + "messageTtl": { "index": 3, "kind": "parameter", "displayName": "Message TTL", "group": "producer", "label": "", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 3600, "description": "The time to live of the published message in seconds, after which SMN no longer delivers it. SMN accepts at most 86400 (one day). The CamelHwCloudSmnMessageTtl exchange property replaces this option." }, + "operation": { "index": 4, "kind": "parameter", "displayName": "Operation name", "group": "producer", "label": "producer", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The operation that the producer performs: publishAsTextMessage or publishAsTemplatedMessage. The CamelHwCloudSmnOperation exchange property replaces this option." }, + "projectId": { "index": 5, "kind": "parameter", "displayName": "Project ID", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The ID of the Huawei Cloud project of the topic. The producer uses it in the URN of the topic and in the credentials of the requests." }, + "proxyHost": { "index": 6, "kind": "parameter", "displayName": "Proxy server host", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The host name or IP address of the proxy server. The producer uses a proxy only when this option is set." }, + "proxyPassword": { "index": 7, "kind": "parameter", "displayName": "Proxy password", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "description": "The password to authenticate with the proxy server. It is used only when the proxyHost and proxyUser options are set." }, + "proxyPort": { "index": 8, "kind": "parameter", "displayName": "Proxy server port", "group": "producer", "label": "", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "description": "The port of the proxy server. It is used only when the proxyHost option is set." }, + "proxyUser": { "index": 9, "kind": "parameter", "displayName": "Proxy user", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "description": "The user name to authenticate with the proxy server. It is used only when the proxyHost option is set." }, + "region": { "index": 10, "kind": "parameter", "displayName": "Service region", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The region ID of SMN, for example cn-north-4. The producer uses it in the URN of the topic, and to find the endpoint of SMN when the endpoint option is not set." }, + "secretKey": { "index": 11, "kind": "parameter", "displayName": "API secret key (SK)", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "description": "The secret access key (SK) of the Huawei Cloud credentials. If not set, the secretKey of the serviceKeys option is used." }, + "serviceKeys": { "index": 12, "kind": "parameter", "displayName": "Service Configuration", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.huaweicloud.common.models.ServiceKeys", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "description": "The AK\/SK pair as an org.apache.camel.component.huaweicloud.common.models.ServiceKeys. Its accessKey and its secretKey are each used when the option o [...] "lazyStartProducer": { "index": 13, "kind": "parameter", "displayName": "Lazy Start Producer", "group": "producer (advanced)", "label": "producer,advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a produ [...] - "ignoreSslVerification": { "index": 14, "kind": "parameter", "displayName": "SSL Verification Ignored", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "security": "insecure:ssl", "defaultValue": false, "description": "Ignore SSL verification" } + "ignoreSslVerification": { "index": 14, "kind": "parameter", "displayName": "SSL Verification Ignored", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "security": "insecure:ssl", "defaultValue": false, "description": "Whether to skip the verification of the TLS certificate of the server. This makes the connection insecure: use it only for testing." } } } diff --git a/components/camel-huawei/camel-huaweicloud-smn/src/main/docs/hwcloud-smn-component.adoc b/components/camel-huawei/camel-huaweicloud-smn/src/main/docs/hwcloud-smn-component.adoc index 57640fa861a1..541ba22b69f3 100644 --- a/components/camel-huawei/camel-huaweicloud-smn/src/main/docs/hwcloud-smn-component.adoc +++ b/components/camel-huawei/camel-huaweicloud-smn/src/main/docs/hwcloud-smn-component.adoc @@ -2,7 +2,7 @@ :doctitle: Huawei Simple Message Notification (SMN) :shortname: hwcloud-smn :artifactid: camel-huaweicloud-smn -:description: To broadcast messages and connect cloud services through notifications on Huawei Cloud +:description: Publish messages to topics of Huawei Cloud Simple Message Notification (SMN). :since: 3.8 :supportlevel: Stable :tabs-sync-option: @@ -210,5 +210,3 @@ from("direct:triggerRoute") .setProperty(SmnProperties.NOTIFICATION_TTL, constant(60)) .to("hwcloud-smn:publishMessageService?operation=publishAsTextMessage&projectId=9071a38e7f6a4ba7b7bcbeb7d4ea6efc®ion=cn-north-4&serviceKeys=#myServiceKeyConfig") ---- - - diff --git a/components/camel-huawei/camel-huaweicloud-smn/src/main/java/org/apache/camel/component/huaweicloud/smn/SimpleNotificationEndpoint.java b/components/camel-huawei/camel-huaweicloud-smn/src/main/java/org/apache/camel/component/huaweicloud/smn/SimpleNotificationEndpoint.java index 617a8e7af81d..5194c4092f24 100644 --- a/components/camel-huawei/camel-huaweicloud-smn/src/main/java/org/apache/camel/component/huaweicloud/smn/SimpleNotificationEndpoint.java +++ b/components/camel-huawei/camel-huaweicloud-smn/src/main/java/org/apache/camel/component/huaweicloud/smn/SimpleNotificationEndpoint.java @@ -32,7 +32,7 @@ import org.apache.camel.spi.UriPath; import org.apache.camel.support.DefaultEndpoint; /** - * To broadcast messages and connect cloud services through notifications on Huawei Cloud + * Publish messages to topics of Huawei Cloud Simple Message Notification (SMN). */ @UriEndpoint(firstVersion = "3.8.0", scheme = "hwcloud-smn", title = "Huawei Simple Message Notification (SMN)", syntax = "hwcloud-smn:smnService", @@ -56,62 +56,88 @@ import org.apache.camel.support.DefaultEndpoint; + " property")) public class SimpleNotificationEndpoint extends DefaultEndpoint { - @UriPath(description = "Name of SMN service to invoke", displayName = "Service name", label = "producer") + @UriPath(description = "The SMN service that the producer calls. Only publishMessageService is supported.", + displayName = "Service name", label = "producer") @Metadata(required = true) private String smnService; - @UriParam(description = "Name of operation to perform", displayName = "Operation name", label = "producer") + @UriParam(description = "The operation that the producer performs: publishAsTextMessage or publishAsTemplatedMessage. The" + + " CamelHwCloudSmnOperation exchange property replaces this option.", + displayName = "Operation name", label = "producer") @Metadata(required = true) private String operation; - @UriParam(description = "Configuration object for cloud service authentication", displayName = "Service Configuration", + @UriParam(description = "The AK/SK pair as an org.apache.camel.component.huaweicloud.common.models.ServiceKeys. Its" + + " accessKey and its secretKey are each used when the option of the same name is not set.", + displayName = "Service Configuration", security = "secret") @Metadata(required = false) private ServiceKeys serviceKeys; - @UriParam(description = "Access key for the cloud user", displayName = "API access key (AK)", security = "secret") + @UriParam(description = "The access key ID (AK) of the Huawei Cloud credentials. If not set, the accessKey of the" + + " serviceKeys option is used.", + displayName = "API access key (AK)", security = "secret") @Metadata(required = true) private String accessKey; - @UriParam(description = "Secret key for the cloud user", displayName = "API secret key (SK)", security = "secret") + @UriParam(description = "The secret access key (SK) of the Huawei Cloud credentials. If not set, the secretKey of the" + + " serviceKeys option is used.", + displayName = "API secret key (SK)", security = "secret") @Metadata(required = true) private String secretKey; - @UriParam(description = "Cloud project ID", displayName = "Project ID") + @UriParam(description = "The ID of the Huawei Cloud project of the topic. The producer uses it in the URN of the topic" + + " and in the credentials of the requests.", + displayName = "Project ID") @Metadata(required = true) private String projectId; - @UriParam(description = "Proxy server ip/hostname", displayName = "Proxy server host") + @UriParam(description = "The host name or IP address of the proxy server. The producer uses a proxy only when this option" + + " is set.", + displayName = "Proxy server host") @Metadata(required = false) private String proxyHost; - @UriParam(description = "Proxy server port", displayName = "Proxy server port") + @UriParam(description = "The port of the proxy server. It is used only when the proxyHost option is set.", + displayName = "Proxy server port") @Metadata(required = false) private int proxyPort; - @UriParam(description = "Proxy authentication user", displayName = "Proxy user", security = "secret") + @UriParam(description = "The user name to authenticate with the proxy server. It is used only when the proxyHost option" + + " is set.", + displayName = "Proxy user", security = "secret") @Metadata(required = false) private String proxyUser; - @UriParam(description = "Proxy authentication password", displayName = "Proxy password", security = "secret") + @UriParam(description = "The password to authenticate with the proxy server. It is used only when the proxyHost and" + + " proxyUser options are set.", + displayName = "Proxy password", security = "secret") @Metadata(required = false) private String proxyPassword; - @UriParam(description = "SMN service region. This is lower precedence than endpoint based configuration", + @UriParam(description = "The region ID of SMN, for example cn-north-4. The producer uses it in the URN of the topic, and to" + + " find the endpoint of SMN when the endpoint option is not set.", displayName = "Service region") @Metadata(required = true) private String region; - @UriParam(description = "Fully qualified smn service url. Carries higher precedence than region parameter based client initialization", + @UriParam(description = "The endpoint URL of SMN, for example https://smn.cn-north-4.myhuaweicloud.com. When set, the client" + + " uses it instead of the endpoint of the region option. The region option is still needed for" + + " the URN of the topic.", displayName = "Service endpoint") @Metadata(required = false) private String endpoint; - @UriParam(description = "TTL for published message", displayName = "Message TTL", defaultValue = "3600") + @UriParam(description = "The time to live of the published message in seconds, after which SMN no longer delivers it. SMN" + + " accepts at most 86400 (one day). The CamelHwCloudSmnMessageTtl exchange property replaces" + + " this option.", + displayName = "Message TTL", defaultValue = "3600") @Metadata(required = false) private int messageTtl = 3600; - @UriParam(description = "Ignore SSL verification", displayName = "SSL Verification Ignored", defaultValue = "false", + @UriParam(description = "Whether to skip the verification of the TLS certificate of the server. This makes the connection" + + " insecure: use it only for testing.", + displayName = "SSL Verification Ignored", defaultValue = "false", label = "security", security = "insecure:ssl") @Metadata(required = false) private boolean ignoreSslVerification; 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 d415e9ed4618..68099ce6ca18 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 @@ -2588,8 +2588,8 @@ public interface ComponentsBuilderFactory { } /** * Huawei Simple Message Notification (SMN) (camel-huaweicloud-smn) - * To broadcast messages and connect cloud services through notifications on - * Huawei Cloud + * Publish messages to topics of Huawei Cloud Simple Message Notification + * (SMN). * * Category: cloud,messaging * Since: 3.8 diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/HwcloudSmnComponentBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/HwcloudSmnComponentBuilderFactory.java index 216604429aec..a1efd4f7a49e 100644 --- a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/HwcloudSmnComponentBuilderFactory.java +++ b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/HwcloudSmnComponentBuilderFactory.java @@ -24,8 +24,7 @@ import org.apache.camel.builder.component.ComponentBuilder; import org.apache.camel.component.huaweicloud.smn.SimpleNotificationComponent; /** - * To broadcast messages and connect cloud services through notifications on - * Huawei Cloud + * Publish messages to topics of Huawei Cloud Simple Message Notification (SMN). * * Generated by camel build tools - do NOT edit this file! */ @@ -34,8 +33,8 @@ public interface HwcloudSmnComponentBuilderFactory { /** * Huawei Simple Message Notification (SMN) (camel-huaweicloud-smn) - * To broadcast messages and connect cloud services through notifications on - * Huawei Cloud + * Publish messages to topics of Huawei Cloud Simple Message Notification + * (SMN). * * Category: cloud,messaging * Since: 3.8 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 ceefbe36da1e..1f52de3a8239 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 @@ -8667,8 +8667,8 @@ public class StaticEndpointBuilders { } /** * Huawei Simple Message Notification (SMN) (camel-huaweicloud-smn) - * To broadcast messages and connect cloud services through notifications on - * Huawei Cloud + * Publish messages to topics of Huawei Cloud Simple Message Notification + * (SMN). * * Category: cloud,messaging * Since: 3.8 @@ -8677,7 +8677,8 @@ public class StaticEndpointBuilders { * Syntax: <code>hwcloud-smn:smnService</code> * * Path parameter: smnService (required) - * Name of SMN service to invoke + * The SMN service that the producer calls. Only publishMessageService is + * supported. * * @param path smnService * @return the dsl builder @@ -8687,8 +8688,8 @@ public class StaticEndpointBuilders { } /** * Huawei Simple Message Notification (SMN) (camel-huaweicloud-smn) - * To broadcast messages and connect cloud services through notifications on - * Huawei Cloud + * Publish messages to topics of Huawei Cloud Simple Message Notification + * (SMN). * * Category: cloud,messaging * Since: 3.8 @@ -8697,7 +8698,8 @@ public class StaticEndpointBuilders { * Syntax: <code>hwcloud-smn:smnService</code> * * Path parameter: smnService (required) - * Name of SMN service to invoke + * The SMN service that the producer calls. Only publishMessageService is + * supported. * * @param componentName to use a custom component name for the endpoint * instead of the default name diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SimpleNotificationEndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SimpleNotificationEndpointBuilderFactory.java index bdc556cfd76c..9181e11388e4 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SimpleNotificationEndpointBuilderFactory.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SimpleNotificationEndpointBuilderFactory.java @@ -27,8 +27,7 @@ import org.apache.camel.builder.EndpointProducerBuilder; import org.apache.camel.builder.endpoint.AbstractEndpointBuilder; /** - * To broadcast messages and connect cloud services through notifications on - * Huawei Cloud + * Publish messages to topics of Huawei Cloud Simple Message Notification (SMN). * * Generated by camel build tools - do NOT edit this file! */ @@ -46,7 +45,8 @@ public interface SimpleNotificationEndpointBuilderFactory { } /** - * Access key for the cloud user. + * The access key ID (AK) of the Huawei Cloud credentials. If not set, + * the accessKey of the serviceKeys option is used. * * The option is a: <code>java.lang.String</code> type. * @@ -61,8 +61,10 @@ public interface SimpleNotificationEndpointBuilderFactory { return this; } /** - * Fully qualified smn service url. Carries higher precedence than - * region parameter based client initialization. + * The endpoint URL of SMN, for example + * https://smn.cn-north-4.myhuaweicloud.com. When set, the client uses + * it instead of the endpoint of the region option. The region option is + * still needed for the URN of the topic. * * The option is a: <code>java.lang.String</code> type. * @@ -76,7 +78,9 @@ public interface SimpleNotificationEndpointBuilderFactory { return this; } /** - * TTL for published message. + * The time to live of the published message in seconds, after which SMN + * no longer delivers it. SMN accepts at most 86400 (one day). The + * CamelHwCloudSmnMessageTtl exchange property replaces this option. * * The option is a: <code>int</code> type. * @@ -91,7 +95,9 @@ public interface SimpleNotificationEndpointBuilderFactory { return this; } /** - * TTL for published message. + * The time to live of the published message in seconds, after which SMN + * no longer delivers it. SMN accepts at most 86400 (one day). The + * CamelHwCloudSmnMessageTtl exchange property replaces this option. * * The option will be converted to a <code>int</code> type. * @@ -106,7 +112,9 @@ public interface SimpleNotificationEndpointBuilderFactory { return this; } /** - * Name of operation to perform. + * The operation that the producer performs: publishAsTextMessage or + * publishAsTemplatedMessage. The CamelHwCloudSmnOperation exchange + * property replaces this option. * * The option is a: <code>java.lang.String</code> type. * @@ -121,7 +129,8 @@ public interface SimpleNotificationEndpointBuilderFactory { return this; } /** - * Cloud project ID. + * The ID of the Huawei Cloud project of the topic. The producer uses it + * in the URN of the topic and in the credentials of the requests. * * The option is a: <code>java.lang.String</code> type. * @@ -136,7 +145,8 @@ public interface SimpleNotificationEndpointBuilderFactory { return this; } /** - * Proxy server ip/hostname. + * The host name or IP address of the proxy server. The producer uses a + * proxy only when this option is set. * * The option is a: <code>java.lang.String</code> type. * @@ -150,7 +160,8 @@ public interface SimpleNotificationEndpointBuilderFactory { return this; } /** - * Proxy authentication password. + * The password to authenticate with the proxy server. It is used only + * when the proxyHost and proxyUser options are set. * * The option is a: <code>java.lang.String</code> type. * @@ -164,7 +175,8 @@ public interface SimpleNotificationEndpointBuilderFactory { return this; } /** - * Proxy server port. + * The port of the proxy server. It is used only when the proxyHost + * option is set. * * The option is a: <code>int</code> type. * @@ -178,7 +190,8 @@ public interface SimpleNotificationEndpointBuilderFactory { return this; } /** - * Proxy server port. + * The port of the proxy server. It is used only when the proxyHost + * option is set. * * The option will be converted to a <code>int</code> type. * @@ -192,7 +205,8 @@ public interface SimpleNotificationEndpointBuilderFactory { return this; } /** - * Proxy authentication user. + * The user name to authenticate with the proxy server. It is used only + * when the proxyHost option is set. * * The option is a: <code>java.lang.String</code> type. * @@ -206,8 +220,9 @@ public interface SimpleNotificationEndpointBuilderFactory { return this; } /** - * SMN service region. This is lower precedence than endpoint based - * configuration. + * The region ID of SMN, for example cn-north-4. The producer uses it in + * the URN of the topic, and to find the endpoint of SMN when the + * endpoint option is not set. * * The option is a: <code>java.lang.String</code> type. * @@ -222,7 +237,8 @@ public interface SimpleNotificationEndpointBuilderFactory { return this; } /** - * Secret key for the cloud user. + * The secret access key (SK) of the Huawei Cloud credentials. If not + * set, the secretKey of the serviceKeys option is used. * * The option is a: <code>java.lang.String</code> type. * @@ -237,7 +253,10 @@ public interface SimpleNotificationEndpointBuilderFactory { return this; } /** - * Configuration object for cloud service authentication. + * The AK/SK pair as an + * org.apache.camel.component.huaweicloud.common.models.ServiceKeys. Its + * accessKey and its secretKey are each used when the option of the same + * name is not set. * * The option is a: * <code>org.apache.camel.component.huaweicloud.common.models.ServiceKeys</code> type. @@ -252,7 +271,10 @@ public interface SimpleNotificationEndpointBuilderFactory { return this; } /** - * Configuration object for cloud service authentication. + * The AK/SK pair as an + * org.apache.camel.component.huaweicloud.common.models.ServiceKeys. Its + * accessKey and its secretKey are each used when the option of the same + * name is not set. * * The option will be converted to a * <code>org.apache.camel.component.huaweicloud.common.models.ServiceKeys</code> type. @@ -267,7 +289,8 @@ public interface SimpleNotificationEndpointBuilderFactory { return this; } /** - * Ignore SSL verification. + * Whether to skip the verification of the TLS certificate of the + * server. This makes the connection insecure: use it only for testing. * * The option is a: <code>boolean</code> type. * @@ -282,7 +305,8 @@ public interface SimpleNotificationEndpointBuilderFactory { return this; } /** - * Ignore SSL verification. + * Whether to skip the verification of the TLS certificate of the + * server. This makes the connection insecure: use it only for testing. * * The option will be converted to a <code>boolean</code> type. * @@ -359,8 +383,8 @@ public interface SimpleNotificationEndpointBuilderFactory { public interface SimpleNotificationBuilders { /** * Huawei Simple Message Notification (SMN) (camel-huaweicloud-smn) - * To broadcast messages and connect cloud services through - * notifications on Huawei Cloud + * Publish messages to topics of Huawei Cloud Simple Message + * Notification (SMN). * * Category: cloud,messaging * Since: 3.8 @@ -369,7 +393,8 @@ public interface SimpleNotificationEndpointBuilderFactory { * Syntax: <code>hwcloud-smn:smnService</code> * * Path parameter: smnService (required) - * Name of SMN service to invoke + * The SMN service that the producer calls. Only publishMessageService + * is supported. * * @param path smnService * @return the dsl builder @@ -379,8 +404,8 @@ public interface SimpleNotificationEndpointBuilderFactory { } /** * Huawei Simple Message Notification (SMN) (camel-huaweicloud-smn) - * To broadcast messages and connect cloud services through - * notifications on Huawei Cloud + * Publish messages to topics of Huawei Cloud Simple Message + * Notification (SMN). * * Category: cloud,messaging * Since: 3.8 @@ -389,7 +414,8 @@ public interface SimpleNotificationEndpointBuilderFactory { * Syntax: <code>hwcloud-smn:smnService</code> * * Path parameter: smnService (required) - * Name of SMN service to invoke + * The SMN service that the producer calls. Only publishMessageService + * is supported. * * @param componentName to use a custom component name for the endpoint * instead of the default name diff --git a/tasks/component-descriptions.md b/tasks/component-descriptions.md index 9512a99a2ef7..04521938590c 100644 --- a/tasks/component-descriptions.md +++ b/tasks/component-descriptions.md @@ -210,7 +210,7 @@ or removes its row. | camel-huaweicloud-iam | hwcloud-iam | | | camel-huaweicloud-imagerecognition | hwcloud-imagerecognition | yes | | camel-huaweicloud-obs | hwcloud-obs | | -| camel-huaweicloud-smn | hwcloud-smn | | +| camel-huaweicloud-smn | hwcloud-smn | yes | | camel-huggingface | huggingface | yes | | camel-ibm-cos | ibm-cos | | | camel-ibm-secrets-manager | ibm-secrets-manager | |
