This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 5e92380d225c CAMEL-23832: camel-huaweicloud-functiongraph - improve
the component and option descriptions (#30971)
5e92380d225c is described below
commit 5e92380d225c2733af6e0defee5e2f46b0e8cda2
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Nov 27 14:55:46 2026 +0100
CAMEL-23832: camel-huaweicloud-functiongraph - improve the component and
option descriptions (#30971)
This commit rewrites the component description and the texts of all 14
endpoint options of hwcloud-functiongraph. The
new texts say how each value is used (the URN of the function, the client,
the credentials) and which exchange property
replaces it. The old endpoint and region texts suggested that endpoint
makes region unneeded, while the URN of the
function always takes the region. The proxy texts now say when the proxy is
used, and the serviceKeys text that it
replaces the accessKey and secretKey options.
Documentation only, no behavior change. The component JSON, the catalog
copy, the doc page header and the DSL are
regenerated. camel-huaweicloud-functiongraph 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]>
---
.../catalog/components/hwcloud-functiongraph.json | 30 ++++-----
.../docs/hwcloud-functiongraph-component.adoc | 4 +-
.../org/apache/camel/hwcloud-functiongraph.json | 30 ++++-----
.../main/docs/hwcloud-functiongraph-component.adoc | 4 +-
.../org/apache/camel/FunctionGraphEndpoint.java | 56 ++++++++++++-----
.../component/ComponentsBuilderFactory.java | 2 +-
...wcloudFunctiongraphComponentBuilderFactory.java | 4 +-
.../builder/endpoint/StaticEndpointBuilders.java | 12 ++--
.../dsl/FunctionGraphEndpointBuilderFactory.java | 73 +++++++++++++++-------
tasks/component-descriptions.md | 2 +-
10 files changed, 135 insertions(+), 82 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/hwcloud-functiongraph.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/hwcloud-functiongraph.json
index 62bd87233eed..14f4097f8fd1 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/hwcloud-functiongraph.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/hwcloud-functiongraph.json
@@ -3,7 +3,7 @@
"kind": "component",
"name": "hwcloud-functiongraph",
"title": "Huawei FunctionGraph",
- "description": "To call serverless functions on Huawei Cloud",
+ "description": "Invoke serverless functions in Huawei Cloud
FunctionGraph.",
"deprecated": false,
"firstVersion": "3.11.0",
"label": "cloud,serverless",
@@ -32,20 +32,20 @@
"producerOut": { "carriers": [ "text", "null" ], "description": "The
result of the function as text. When the result is a JSON object with a
top-level body field, such as the result of a function behind an API Gateway
trigger, the body field: a string as it is, an object or an array as JSON, and
no body when the field is null. Otherwise the whole result as it is. No body
when the function gives no result. With the CamelHwCloudFgXCffLogType exchange
property set, the log of the call i [...]
},
"properties": {
- "operation": { "index": 0, "kind": "path", "displayName": "Operation",
"group": "producer", "label": "producer", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "description": "Operation to be performed" },
- "endpoint": { "index": 1, "kind": "parameter", "displayName": "Service
endpoint", "group": "producer", "label": "", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "description": "FunctionGraph url. Carries higher
precedence than region parameter based client initialization" },
- "functionName": { "index": 2, "kind": "parameter", "displayName":
"Function name", "group": "producer", "label": "", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "description": "Name of the function to invoke" },
- "functionPackage": { "index": 3, "kind": "parameter", "displayName":
"Function package", "group": "producer", "label": "", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": "default", "description":
"Functions that can be logically grouped together" },
- "projectId": { "index": 4, "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" },
- "region": { "index": 5, "kind": "parameter", "displayName": "Service
region", "group": "producer", "label": "", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "description": "FunctionGraph service region. This is lower
precedence than endpoint based configuration" },
- "serviceKeys": { "index": 6, "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" },
+ "operation": { "index": 0, "kind": "path", "displayName": "Operation",
"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. Only
invokeFunction is supported. The CamelHwCloudFgOperation exchange property
replaces this option." },
+ "endpoint": { "index": 1, "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 FunctionGraph, for
example https:\/\/functiongraph.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 [...]
+ "functionName": { "index": 2, "kind": "parameter", "displayName":
"Function name", "group": "producer", "label": "", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "description": "The name of the function to invoke. The
producer always invokes the latest version of the function. The
CamelHwCloudFgFunction exchange property replaces this option, and one of them
must be set." },
+ "functionPackage": { "index": 3, "kind": "parameter", "displayName":
"Function package", "group": "producer", "label": "", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": "default", "description":
"The package of the function, which is part of the URN of the function. The
CamelHwCloudFgPackage exchange property replaces this option." },
+ "projectId": { "index": 4, "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
function. The producer uses it in the URN of the function and in the
credentials of the requests." },
+ "region": { "index": 5, "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 FunctionGraph, for example
cn-north-4. The producer uses it in the URN of the function, and to build the
client when the endpoint option is not set." },
+ "serviceKeys": { "index": 6, "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. When set, its
accessKey and secretKey replace the accessKey and [...]
"lazyStartProducer": { "index": 7, "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 produc [...]
- "proxyHost": { "index": 8, "kind": "parameter", "displayName": "Proxy
server host", "group": "proxy", "label": "proxy", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "description": "Proxy server ip\/hostname" },
- "proxyPassword": { "index": 9, "kind": "parameter", "displayName": "Proxy
password", "group": "proxy", "label": "proxy", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": true, "security": "secret", "description": "Proxy
authentication password" },
- "proxyPort": { "index": 10, "kind": "parameter", "displayName": "Proxy
server port", "group": "proxy", "label": "proxy", "required": false, "type":
"integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "description": "Proxy server port" },
- "proxyUser": { "index": 11, "kind": "parameter", "displayName": "Proxy
user", "group": "proxy", "label": "proxy", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "description": "Proxy authentication
user" },
- "accessKey": { "index": 12, "kind": "parameter", "displayName": "API
access key (AK)", "group": "security", "label": "security", "required": true,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": true, "security": "secret", "description":
"Access key for the cloud user" },
- "ignoreSslVerification": { "index": 13, "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"
},
- "secretKey": { "index": 14, "kind": "parameter", "displayName": "API
secret key (SK)", "group": "security", "label": "security", "required": true,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": true, "security": "secret", "description":
"Secret key for the cloud user" }
+ "proxyHost": { "index": 8, "kind": "parameter", "displayName": "Proxy
server host", "group": "proxy", "label": "proxy", "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 both this option and the
proxyPort option are set." },
+ "proxyPassword": { "index": 9, "kind": "parameter", "displayName": "Proxy
password", "group": "proxy", "label": "proxy", "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 proxyUser option
is set." },
+ "proxyPort": { "index": 10, "kind": "parameter", "displayName": "Proxy
server port", "group": "proxy", "label": "proxy", "required": false, "type":
"integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "description": "The port of the proxy server. The producer
uses a proxy only when both this option and the proxyHost option are set." },
+ "proxyUser": { "index": 11, "kind": "parameter", "displayName": "Proxy
user", "group": "proxy", "label": "proxy", "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 and
proxyPort options are set." },
+ "accessKey": { "index": 12, "kind": "parameter", "displayName": "API
access key (AK)", "group": "security", "label": "security", "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. It is not used when the
serviceKeys option is set." },
+ "ignoreSslVerification": { "index": 13, "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." },
+ "secretKey": { "index": 14, "kind": "parameter", "displayName": "API
secret key (SK)", "group": "security", "label": "security", "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. It is not used when the
serviceKeys option is set." }
}
}
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/hwcloud-functiongraph-component.adoc
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/hwcloud-functiongraph-component.adoc
index 243daa75a167..b9ad5d7b2df1 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/hwcloud-functiongraph-component.adoc
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/hwcloud-functiongraph-component.adoc
@@ -2,7 +2,7 @@
:doctitle: Huawei FunctionGraph
:shortname: hwcloud-functiongraph
:artifactid: camel-huaweicloud-functiongraph
-:description: To call serverless functions on Huawei Cloud
+:description: Invoke serverless functions in Huawei Cloud FunctionGraph.
:since: 3.11
:supportlevel: Stable
:tabs-sync-option:
@@ -163,5 +163,3 @@ YAML::
serviceKeys: "#myServiceKeyConfig"
----
====
-
-
diff --git
a/components/camel-huawei/camel-huaweicloud-functiongraph/src/generated/resources/META-INF/org/apache/camel/hwcloud-functiongraph.json
b/components/camel-huawei/camel-huaweicloud-functiongraph/src/generated/resources/META-INF/org/apache/camel/hwcloud-functiongraph.json
index 62bd87233eed..14f4097f8fd1 100644
---
a/components/camel-huawei/camel-huaweicloud-functiongraph/src/generated/resources/META-INF/org/apache/camel/hwcloud-functiongraph.json
+++
b/components/camel-huawei/camel-huaweicloud-functiongraph/src/generated/resources/META-INF/org/apache/camel/hwcloud-functiongraph.json
@@ -3,7 +3,7 @@
"kind": "component",
"name": "hwcloud-functiongraph",
"title": "Huawei FunctionGraph",
- "description": "To call serverless functions on Huawei Cloud",
+ "description": "Invoke serverless functions in Huawei Cloud
FunctionGraph.",
"deprecated": false,
"firstVersion": "3.11.0",
"label": "cloud,serverless",
@@ -32,20 +32,20 @@
"producerOut": { "carriers": [ "text", "null" ], "description": "The
result of the function as text. When the result is a JSON object with a
top-level body field, such as the result of a function behind an API Gateway
trigger, the body field: a string as it is, an object or an array as JSON, and
no body when the field is null. Otherwise the whole result as it is. No body
when the function gives no result. With the CamelHwCloudFgXCffLogType exchange
property set, the log of the call i [...]
},
"properties": {
- "operation": { "index": 0, "kind": "path", "displayName": "Operation",
"group": "producer", "label": "producer", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "description": "Operation to be performed" },
- "endpoint": { "index": 1, "kind": "parameter", "displayName": "Service
endpoint", "group": "producer", "label": "", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "description": "FunctionGraph url. Carries higher
precedence than region parameter based client initialization" },
- "functionName": { "index": 2, "kind": "parameter", "displayName":
"Function name", "group": "producer", "label": "", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "description": "Name of the function to invoke" },
- "functionPackage": { "index": 3, "kind": "parameter", "displayName":
"Function package", "group": "producer", "label": "", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": "default", "description":
"Functions that can be logically grouped together" },
- "projectId": { "index": 4, "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" },
- "region": { "index": 5, "kind": "parameter", "displayName": "Service
region", "group": "producer", "label": "", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "description": "FunctionGraph service region. This is lower
precedence than endpoint based configuration" },
- "serviceKeys": { "index": 6, "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" },
+ "operation": { "index": 0, "kind": "path", "displayName": "Operation",
"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. Only
invokeFunction is supported. The CamelHwCloudFgOperation exchange property
replaces this option." },
+ "endpoint": { "index": 1, "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 FunctionGraph, for
example https:\/\/functiongraph.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 [...]
+ "functionName": { "index": 2, "kind": "parameter", "displayName":
"Function name", "group": "producer", "label": "", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "description": "The name of the function to invoke. The
producer always invokes the latest version of the function. The
CamelHwCloudFgFunction exchange property replaces this option, and one of them
must be set." },
+ "functionPackage": { "index": 3, "kind": "parameter", "displayName":
"Function package", "group": "producer", "label": "", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": "default", "description":
"The package of the function, which is part of the URN of the function. The
CamelHwCloudFgPackage exchange property replaces this option." },
+ "projectId": { "index": 4, "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
function. The producer uses it in the URN of the function and in the
credentials of the requests." },
+ "region": { "index": 5, "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 FunctionGraph, for example
cn-north-4. The producer uses it in the URN of the function, and to build the
client when the endpoint option is not set." },
+ "serviceKeys": { "index": 6, "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. When set, its
accessKey and secretKey replace the accessKey and [...]
"lazyStartProducer": { "index": 7, "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 produc [...]
- "proxyHost": { "index": 8, "kind": "parameter", "displayName": "Proxy
server host", "group": "proxy", "label": "proxy", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "description": "Proxy server ip\/hostname" },
- "proxyPassword": { "index": 9, "kind": "parameter", "displayName": "Proxy
password", "group": "proxy", "label": "proxy", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": true, "security": "secret", "description": "Proxy
authentication password" },
- "proxyPort": { "index": 10, "kind": "parameter", "displayName": "Proxy
server port", "group": "proxy", "label": "proxy", "required": false, "type":
"integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "description": "Proxy server port" },
- "proxyUser": { "index": 11, "kind": "parameter", "displayName": "Proxy
user", "group": "proxy", "label": "proxy", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "description": "Proxy authentication
user" },
- "accessKey": { "index": 12, "kind": "parameter", "displayName": "API
access key (AK)", "group": "security", "label": "security", "required": true,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": true, "security": "secret", "description":
"Access key for the cloud user" },
- "ignoreSslVerification": { "index": 13, "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"
},
- "secretKey": { "index": 14, "kind": "parameter", "displayName": "API
secret key (SK)", "group": "security", "label": "security", "required": true,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": true, "security": "secret", "description":
"Secret key for the cloud user" }
+ "proxyHost": { "index": 8, "kind": "parameter", "displayName": "Proxy
server host", "group": "proxy", "label": "proxy", "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 both this option and the
proxyPort option are set." },
+ "proxyPassword": { "index": 9, "kind": "parameter", "displayName": "Proxy
password", "group": "proxy", "label": "proxy", "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 proxyUser option
is set." },
+ "proxyPort": { "index": 10, "kind": "parameter", "displayName": "Proxy
server port", "group": "proxy", "label": "proxy", "required": false, "type":
"integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "description": "The port of the proxy server. The producer
uses a proxy only when both this option and the proxyHost option are set." },
+ "proxyUser": { "index": 11, "kind": "parameter", "displayName": "Proxy
user", "group": "proxy", "label": "proxy", "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 and
proxyPort options are set." },
+ "accessKey": { "index": 12, "kind": "parameter", "displayName": "API
access key (AK)", "group": "security", "label": "security", "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. It is not used when the
serviceKeys option is set." },
+ "ignoreSslVerification": { "index": 13, "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." },
+ "secretKey": { "index": 14, "kind": "parameter", "displayName": "API
secret key (SK)", "group": "security", "label": "security", "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. It is not used when the
serviceKeys option is set." }
}
}
diff --git
a/components/camel-huawei/camel-huaweicloud-functiongraph/src/main/docs/hwcloud-functiongraph-component.adoc
b/components/camel-huawei/camel-huaweicloud-functiongraph/src/main/docs/hwcloud-functiongraph-component.adoc
index 243daa75a167..b9ad5d7b2df1 100644
---
a/components/camel-huawei/camel-huaweicloud-functiongraph/src/main/docs/hwcloud-functiongraph-component.adoc
+++
b/components/camel-huawei/camel-huaweicloud-functiongraph/src/main/docs/hwcloud-functiongraph-component.adoc
@@ -2,7 +2,7 @@
:doctitle: Huawei FunctionGraph
:shortname: hwcloud-functiongraph
:artifactid: camel-huaweicloud-functiongraph
-:description: To call serverless functions on Huawei Cloud
+:description: Invoke serverless functions in Huawei Cloud FunctionGraph.
:since: 3.11
:supportlevel: Stable
:tabs-sync-option:
@@ -163,5 +163,3 @@ YAML::
serviceKeys: "#myServiceKeyConfig"
----
====
-
-
diff --git
a/components/camel-huawei/camel-huaweicloud-functiongraph/src/main/java/org/apache/camel/FunctionGraphEndpoint.java
b/components/camel-huawei/camel-huaweicloud-functiongraph/src/main/java/org/apache/camel/FunctionGraphEndpoint.java
index 89eb03cd4b44..2100b6addd11 100644
---
a/components/camel-huawei/camel-huaweicloud-functiongraph/src/main/java/org/apache/camel/FunctionGraphEndpoint.java
+++
b/components/camel-huawei/camel-huaweicloud-functiongraph/src/main/java/org/apache/camel/FunctionGraphEndpoint.java
@@ -33,7 +33,7 @@ import org.apache.camel.support.DefaultEndpoint;
import org.apache.camel.util.ObjectHelper;
/**
- * To call serverless functions on Huawei Cloud
+ * Invoke serverless functions in Huawei Cloud FunctionGraph.
*/
@UriEndpoint(firstVersion = "3.11.0", scheme = "hwcloud-functiongraph", title
= "Huawei FunctionGraph",
syntax = "hwcloud-functiongraph:operation",
@@ -53,67 +53,93 @@ import org.apache.camel.util.ObjectHelper;
+ " exchange property"))
public class FunctionGraphEndpoint extends DefaultEndpoint {
- @UriPath(description = "Operation to be performed", displayName =
"Operation", label = "producer")
+ @UriPath(description = "The operation that the producer performs. Only
invokeFunction is supported. The"
+ + " CamelHwCloudFgOperation exchange property
replaces this option.",
+ displayName = "Operation", label = "producer")
@Metadata(required = true)
private String operation;
- @UriParam(description = "FunctionGraph service region. This is lower
precedence than endpoint based configuration",
+ @UriParam(description = "The region ID of FunctionGraph, for example
cn-north-4. The producer uses it in the URN of the"
+ + " function, and to build the client when the
endpoint option is not set.",
displayName = "Service region")
@Metadata(required = true)
private String region;
- @UriParam(description = "Cloud project ID", displayName = "Project ID")
+ @UriParam(description = "The ID of the Huawei Cloud project of the
function. The producer uses it in the URN of the"
+ + " function and in the credentials of the
requests.",
+ displayName = "Project ID")
@Metadata(required = true)
private String projectId;
- @UriParam(description = "Functions that can be logically grouped together",
+ @UriParam(description = "The package of the function, which is part of the
URN of the function. The"
+ + " CamelHwCloudFgPackage exchange property
replaces this option.",
displayName = "Function package", defaultValue =
FunctionGraphConstants.DEFAULT_FUNCTION_PACKAGE)
@Metadata(required = false)
private String functionPackage;
- @UriParam(description = "Name of the function to invoke",
+ @UriParam(description = "The name of the function to invoke. The producer
always invokes the latest version of the"
+ + " function. The CamelHwCloudFgFunction exchange
property replaces this option, and one of"
+ + " them must be set.",
displayName = "Function name")
@Metadata(required = false)
private String functionName;
- @UriParam(description = "Proxy server ip/hostname", displayName = "Proxy
server host", label = "proxy")
+ @UriParam(description = "The host name or IP address of the proxy server.
The producer uses a proxy only when both this"
+ + " option and the proxyPort option are set.",
+ displayName = "Proxy server host", label = "proxy")
@Metadata(required = false)
private String proxyHost;
- @UriParam(description = "Proxy server port", displayName = "Proxy server
port", label = "proxy")
+ @UriParam(description = "The port of the proxy server. The producer uses a
proxy only when both this option and the"
+ + " proxyHost option are set.",
+ displayName = "Proxy server port", label = "proxy")
@Metadata(required = false)
private int proxyPort;
- @UriParam(description = "Proxy authentication user", displayName = "Proxy
user", security = "secret", label = "proxy")
+ @UriParam(description = "The user name to authenticate with the proxy
server. It is used only when the proxyHost and"
+ + " proxyPort options are set.",
+ displayName = "Proxy user", security = "secret", label = "proxy")
@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 proxyUser option"
+ + " is set.",
+ displayName = "Proxy password", security = "secret",
label = "proxy")
@Metadata(required = false)
private String proxyPassword;
- @UriParam(description = "Ignore SSL verification", displayName = "SSL
Verification Ignored",
+ @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;
- @UriParam(description = "FunctionGraph url. Carries higher precedence than
region parameter based client initialization",
+ @UriParam(description = "The endpoint URL of FunctionGraph, for example
https://functiongraph.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 function.",
displayName = "Service endpoint")
@Metadata(required = false)
private String endpoint;
- @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. When set,"
+ + " its accessKey and secretKey replace the
accessKey and secretKey options.",
+ 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. It is not used when the serviceKeys"
+ + " option is set.",
+ displayName = "API access key (AK)", security = "secret",
label = "security")
@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. It is not used when the serviceKeys"
+ + " option is set.",
+ displayName = "API secret key (SK)", security = "secret",
label = "security")
@Metadata(required = true)
private String secretKey;
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 2af8688dc8f8..15de362b6aa9 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
@@ -2515,7 +2515,7 @@ public interface ComponentsBuilderFactory {
}
/**
* Huawei FunctionGraph (camel-huaweicloud-functiongraph)
- * To call serverless functions on Huawei Cloud
+ * Invoke serverless functions in Huawei Cloud FunctionGraph.
*
* Category: cloud,serverless
* Since: 3.11
diff --git
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/HwcloudFunctiongraphComponentBuilderFactory.java
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/HwcloudFunctiongraphComponentBuilderFactory.java
index dba339935285..3a8cf85942a0 100644
---
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/HwcloudFunctiongraphComponentBuilderFactory.java
+++
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/HwcloudFunctiongraphComponentBuilderFactory.java
@@ -24,7 +24,7 @@ import org.apache.camel.builder.component.ComponentBuilder;
import org.apache.camel.FunctionGraphComponent;
/**
- * To call serverless functions on Huawei Cloud
+ * Invoke serverless functions in Huawei Cloud FunctionGraph.
*
* Generated by camel build tools - do NOT edit this file!
*/
@@ -33,7 +33,7 @@ public interface HwcloudFunctiongraphComponentBuilderFactory {
/**
* Huawei FunctionGraph (camel-huaweicloud-functiongraph)
- * To call serverless functions on Huawei Cloud
+ * Invoke serverless functions in Huawei Cloud FunctionGraph.
*
* Category: cloud,serverless
* Since: 3.11
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 4d00b51db84c..bdfd3601b28e 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
@@ -8278,7 +8278,7 @@ public class StaticEndpointBuilders {
}
/**
* Huawei FunctionGraph (camel-huaweicloud-functiongraph)
- * To call serverless functions on Huawei Cloud
+ * Invoke serverless functions in Huawei Cloud FunctionGraph.
*
* Category: cloud,serverless
* Since: 3.11
@@ -8287,7 +8287,9 @@ public class StaticEndpointBuilders {
* Syntax: <code>hwcloud-functiongraph:operation</code>
*
* Path parameter: operation (required)
- * Operation to be performed
+ * The operation that the producer performs. Only invokeFunction is
+ * supported. The CamelHwCloudFgOperation exchange property replaces this
+ * option.
*
* @param path operation
* @return the dsl builder
@@ -8297,7 +8299,7 @@ public class StaticEndpointBuilders {
}
/**
* Huawei FunctionGraph (camel-huaweicloud-functiongraph)
- * To call serverless functions on Huawei Cloud
+ * Invoke serverless functions in Huawei Cloud FunctionGraph.
*
* Category: cloud,serverless
* Since: 3.11
@@ -8306,7 +8308,9 @@ public class StaticEndpointBuilders {
* Syntax: <code>hwcloud-functiongraph:operation</code>
*
* Path parameter: operation (required)
- * Operation to be performed
+ * The operation that the producer performs. Only invokeFunction is
+ * supported. The CamelHwCloudFgOperation exchange property replaces this
+ * option.
*
* @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/FunctionGraphEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/FunctionGraphEndpointBuilderFactory.java
index 606863a76c84..af6e5480e211 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/FunctionGraphEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/FunctionGraphEndpointBuilderFactory.java
@@ -27,7 +27,7 @@ import org.apache.camel.builder.EndpointProducerBuilder;
import org.apache.camel.builder.endpoint.AbstractEndpointBuilder;
/**
- * To call serverless functions on Huawei Cloud
+ * Invoke serverless functions in Huawei Cloud FunctionGraph.
*
* Generated by camel build tools - do NOT edit this file!
*/
@@ -45,8 +45,10 @@ public interface FunctionGraphEndpointBuilderFactory {
}
/**
- * FunctionGraph url. Carries higher precedence than region parameter
- * based client initialization.
+ * The endpoint URL of FunctionGraph, for example
+ * https://functiongraph.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 function.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -60,7 +62,9 @@ public interface FunctionGraphEndpointBuilderFactory {
return this;
}
/**
- * Name of the function to invoke.
+ * The name of the function to invoke. The producer always invokes the
+ * latest version of the function. The CamelHwCloudFgFunction exchange
+ * property replaces this option, and one of them must be set.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -74,7 +78,9 @@ public interface FunctionGraphEndpointBuilderFactory {
return this;
}
/**
- * Functions that can be logically grouped together.
+ * The package of the function, which is part of the URN of the
+ * function. The CamelHwCloudFgPackage exchange property replaces this
+ * option.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -89,7 +95,8 @@ public interface FunctionGraphEndpointBuilderFactory {
return this;
}
/**
- * Cloud project ID.
+ * The ID of the Huawei Cloud project of the function. The producer
uses
+ * it in the URN of the function and in the credentials of the
requests.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -104,8 +111,9 @@ public interface FunctionGraphEndpointBuilderFactory {
return this;
}
/**
- * FunctionGraph service region. This is lower precedence than endpoint
- * based configuration.
+ * The region ID of FunctionGraph, for example cn-north-4. The producer
+ * uses it in the URN of the function, and to build the client when the
+ * endpoint option is not set.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -120,7 +128,10 @@ public interface FunctionGraphEndpointBuilderFactory {
return this;
}
/**
- * Configuration object for cloud service authentication.
+ * The AK/SK pair as an
+ * org.apache.camel.component.huaweicloud.common.models.ServiceKeys.
+ * When set, its accessKey and secretKey replace the accessKey and
+ * secretKey options.
*
* The option is a:
*
<code>org.apache.camel.component.huaweicloud.common.models.ServiceKeys</code>
type.
@@ -135,7 +146,10 @@ public interface FunctionGraphEndpointBuilderFactory {
return this;
}
/**
- * Configuration object for cloud service authentication.
+ * The AK/SK pair as an
+ * org.apache.camel.component.huaweicloud.common.models.ServiceKeys.
+ * When set, its accessKey and secretKey replace the accessKey and
+ * secretKey options.
*
* The option will be converted to a
*
<code>org.apache.camel.component.huaweicloud.common.models.ServiceKeys</code>
type.
@@ -150,7 +164,8 @@ public interface FunctionGraphEndpointBuilderFactory {
return this;
}
/**
- * Proxy server ip/hostname.
+ * The host name or IP address of the proxy server. The producer uses a
+ * proxy only when both this option and the proxyPort option are set.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -164,7 +179,8 @@ public interface FunctionGraphEndpointBuilderFactory {
return this;
}
/**
- * Proxy authentication password.
+ * The password to authenticate with the proxy server. It is used only
+ * when the proxyUser option is set.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -178,7 +194,8 @@ public interface FunctionGraphEndpointBuilderFactory {
return this;
}
/**
- * Proxy server port.
+ * The port of the proxy server. The producer uses a proxy only when
+ * both this option and the proxyHost option are set.
*
* The option is a: <code>int</code> type.
*
@@ -192,7 +209,8 @@ public interface FunctionGraphEndpointBuilderFactory {
return this;
}
/**
- * Proxy server port.
+ * The port of the proxy server. The producer uses a proxy only when
+ * both this option and the proxyHost option are set.
*
* The option will be converted to a <code>int</code> type.
*
@@ -206,7 +224,8 @@ public interface FunctionGraphEndpointBuilderFactory {
return this;
}
/**
- * Proxy authentication user.
+ * The user name to authenticate with the proxy server. It is used only
+ * when the proxyHost and proxyPort options are set.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -220,7 +239,8 @@ public interface FunctionGraphEndpointBuilderFactory {
return this;
}
/**
- * Access key for the cloud user.
+ * The access key ID (AK) of the Huawei Cloud credentials. It is not
+ * used when the serviceKeys option is set.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -235,7 +255,8 @@ public interface FunctionGraphEndpointBuilderFactory {
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.
*
@@ -250,7 +271,8 @@ public interface FunctionGraphEndpointBuilderFactory {
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.
*
@@ -265,7 +287,8 @@ public interface FunctionGraphEndpointBuilderFactory {
return this;
}
/**
- * Secret key for the cloud user.
+ * The secret access key (SK) of the Huawei Cloud credentials. It is
not
+ * used when the serviceKeys option is set.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -342,7 +365,7 @@ public interface FunctionGraphEndpointBuilderFactory {
public interface FunctionGraphBuilders {
/**
* Huawei FunctionGraph (camel-huaweicloud-functiongraph)
- * To call serverless functions on Huawei Cloud
+ * Invoke serverless functions in Huawei Cloud FunctionGraph.
*
* Category: cloud,serverless
* Since: 3.11
@@ -351,7 +374,9 @@ public interface FunctionGraphEndpointBuilderFactory {
* Syntax: <code>hwcloud-functiongraph:operation</code>
*
* Path parameter: operation (required)
- * Operation to be performed
+ * The operation that the producer performs. Only invokeFunction is
+ * supported. The CamelHwCloudFgOperation exchange property replaces
+ * this option.
*
* @param path operation
* @return the dsl builder
@@ -361,7 +386,7 @@ public interface FunctionGraphEndpointBuilderFactory {
}
/**
* Huawei FunctionGraph (camel-huaweicloud-functiongraph)
- * To call serverless functions on Huawei Cloud
+ * Invoke serverless functions in Huawei Cloud FunctionGraph.
*
* Category: cloud,serverless
* Since: 3.11
@@ -370,7 +395,9 @@ public interface FunctionGraphEndpointBuilderFactory {
* Syntax: <code>hwcloud-functiongraph:operation</code>
*
* Path parameter: operation (required)
- * Operation to be performed
+ * The operation that the producer performs. Only invokeFunction is
+ * supported. The CamelHwCloudFgOperation exchange property replaces
+ * this option.
*
* @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 dad7c6caf9cf..14c168e6da47 100644
--- a/tasks/component-descriptions.md
+++ b/tasks/component-descriptions.md
@@ -206,7 +206,7 @@ or removes its row.
| camel-http | http, https | |
| camel-huaweicloud-dms | hwcloud-dms | |
| camel-huaweicloud-frs | hwcloud-frs | |
-| camel-huaweicloud-functiongraph | hwcloud-functiongraph | |
+| camel-huaweicloud-functiongraph | hwcloud-functiongraph | yes |
| camel-huaweicloud-iam | hwcloud-iam | |
| camel-huaweicloud-imagerecognition | hwcloud-imagerecognition | |
| camel-huaweicloud-obs | hwcloud-obs | |