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 1aac9ce  Regen for commit 087017533265178806cbe41b75d04cfa19ea929a 
(#5812)
1aac9ce is described below

commit 1aac9ce4de11c170b1867cfc1c294d2cb434b859
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Thu Jul 8 13:36:43 2021 +0200

    Regen for commit 087017533265178806cbe41b75d04cfa19ea929a (#5812)
    
    Signed-off-by: GitHub <nore...@github.com>
    
    Co-authored-by: davsclaus <davscl...@users.noreply.github.com>
---
 .../modules/ROOT/pages/hwcloud-obs-component.adoc  | 35 ++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/docs/components/modules/ROOT/pages/hwcloud-obs-component.adoc 
b/docs/components/modules/ROOT/pages/hwcloud-obs-component.adoc
index dcc3976..60630fd 100644
--- a/docs/components/modules/ROOT/pages/hwcloud-obs-component.adoc
+++ b/docs/components/modules/ROOT/pages/hwcloud-obs-component.adoc
@@ -136,6 +136,41 @@ If any of the above properties are set, they will override 
their corresponding q
 - getBucketMetadata - `bucketName` parameter is *required*
 - listObjects - `bucketName` parameter is *required*
 
+=== Passing Options Through Exchange Body
+There are many options that can be submited to the `createBucket` and 
`listObjects` operations, so they can be passed through the exchange body.
+
+If you would like to configure all the 
https://support.huaweicloud.com/intl/en-us/api-obs/obs_04_0021.html[parameters] 
when creating a bucket, you can pass a 
https://obssdk-intl.obs.ap-southeast-1.myhuaweicloud.com/apidoc/en/java/com/obs/services/model/CreateBucketRequest.html[CreateBucketRequest]
 object or a Json string into the exchange body. If the exchange body is empty, 
a new bucket will be created using the bucketName and bucketLocation (if 
provided) passed through the endpoint uri.
+
+[source,java]
+----
+from("direct:triggerRoute")
+ .setBody(new CreateBucketRequest("Bucket name", "Bucket location"))
+ 
.to("hwcloud-obs:createBucket?region=cn-north-4&authenticationKey=********&secretKey=********")
+----
+
+[source,java]
+----
+from("direct:triggerRoute")
+ .setBody("{\"bucketName\":\"Bucket name\",\"location\":\"Bucket location\"}")
+ 
.to("hwcloud-obs:createBucket?region=cn-north-4&authenticationKey=********&secretKey=********")
+----
+
+If you would like to configure all the 
https://support.huaweicloud.com/intl/en-us/api-obs/obs_04_0022.html[parameters] 
when listing objects, you can pass a 
https://obssdk-intl.obs.ap-southeast-1.myhuaweicloud.com/apidoc/en/java/com/obs/services/model/ListObjectsRequest.html[ListObjectsRequest]
 object or a Json string into the exchange body. If the exchange body is empty, 
objects will be listed based on the bucketName passed through the endpoint uri.
+
+[source,java]
+----
+from("direct:triggerRoute")
+ .setBody(new ListObjectsRequest("Bucket name", 1000))
+ 
.to("hwcloud-obs:listObjects?region=cn-north-4&authenticationKey=********&secretKey=********")
+----
+
+[source,java]
+----
+from("direct:triggerRoute")
+ .setBody("{\"bucketName\":\"Bucket name\",\"maxKeys\":1000"}")
+ 
.to("hwcloud-obs:listObjects?region=cn-north-4&authenticationKey=********&secretKey=********")
+----
+
 
 == Using ServiceKey Configuration Bean
 

Reply via email to