This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit b716549c5cff407064c3b40502535c0b648d46c4
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Tue Feb 22 14:17:47 2022 +0100

    CAMEL-17691 - Camel Google Secret Manager: Add more operations - docs
---
 .../main/docs/google-secret-manager-component.adoc | 31 +++++++++++++++++++++-
 1 file changed, 30 insertions(+), 1 deletion(-)

diff --git 
a/components/camel-google/camel-google-secrets-manager/src/main/docs/google-secret-manager-component.adoc
 
b/components/camel-google/camel-google-secrets-manager/src/main/docs/google-secret-manager-component.adoc
index 2af2a08..73dbc05 100644
--- 
a/components/camel-google/camel-google-secrets-manager/src/main/docs/google-secret-manager-component.adoc
+++ 
b/components/camel-google/camel-google-secrets-manager/src/main/docs/google-secret-manager-component.adoc
@@ -109,6 +109,35 @@ from("direct:start")
     .log("body:${body}")
 
--------------------------------------------------------------------------------
 
-This will create a secret named "test" with a value of "hello".
+- getSecretVersion: This operation will retrieve a secret value with latest 
version in the Secret Manager service
+
+[source,java]
+--------------------------------------------------------------------------------
+from("direct:start")
+    .setHeader("GoogleSecretManagerConstants.SECRET_ID, constant("test"))
+    
.to("google-functions://myProject?serviceAccountKey=/home/user/Downloads/my-key.json&operation=getSecretVersion")
+    .log("body:${body}")
+--------------------------------------------------------------------------------
+
+This will log the value of the secret "test".
+
+- deleteSecret: This operation will delete a secret
+
+[source,java]
+--------------------------------------------------------------------------------
+from("direct:start")
+    .setHeader("GoogleSecretManagerConstants.SECRET_ID, constant("test"))
+    
.to("google-functions://myProject?serviceAccountKey=/home/user/Downloads/my-key.json&operation=deleteSecret")
+--------------------------------------------------------------------------------
+
+- listSecrets: This operation will return the secrets list for the project 
myProject
+
+[source,java]
+--------------------------------------------------------------------------------
+from("direct:start")
+    .setHeader("GoogleSecretManagerConstants.SECRET_ID, constant("test"))
+    
.to("google-functions://myProject?serviceAccountKey=/home/user/Downloads/my-key.json&operation=listSecrets")
+--------------------------------------------------------------------------------
+
 
 include::spring-boot:partial$starter.adoc[]

Reply via email to