You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2023/05/26 18:32:02 UTC

[camel] branch main updated: CAMEL-18078: Added doc about ValueInputOption

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 79eb76b3102 CAMEL-18078: Added doc about ValueInputOption
79eb76b3102 is described below

commit 79eb76b31021d2de0517dcd3d75ae00e114b1793
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Fri May 26 20:31:49 2023 +0200

    CAMEL-18078: Added doc about ValueInputOption
---
 .../src/main/docs/google-sheets-component.adoc               | 11 +++++++++++
 .../src/main/docs/google-sheets-stream-component.adoc        | 12 ++++++++++++
 2 files changed, 23 insertions(+)

diff --git a/components/camel-google/camel-google-sheets/src/main/docs/google-sheets-component.adoc b/components/camel-google/camel-google-sheets/src/main/docs/google-sheets-component.adoc
index a3947fc760c..2a9987d53e2 100644
--- a/components/camel-google/camel-google-sheets/src/main/docs/google-sheets-component.adoc
+++ b/components/camel-google/camel-google-sheets/src/main/docs/google-sheets-component.adoc
@@ -77,6 +77,17 @@ include::partial$component-endpoint-options.adoc[]
 // endpoint options: END
 
 
+== ValueInputOption
+
+Many of the APIs with Google sheets requires to include the following header,
+with one of the enum value:
+
+|====
+| *Header* | *Enum* | *Description*
+| `CamelGoogleSheets.ValueInputOption` | `RAW` | The values the user has entered will not be parsed and will be stored as-is.
+| `CamelGoogleSheets.ValueInputOption` | `USER_ENTERED` | The values will be parsed as if the user typed them into the UI. Numbers will stay as numbers, but strings may be converted to numbers, dates, etc. following the same rules that are applied when entering text into a cell via the Google Sheets UI.
+|====
+
 == More information
 
 For more information on the endpoints and options see API documentation
diff --git a/components/camel-google/camel-google-sheets/src/main/docs/google-sheets-stream-component.adoc b/components/camel-google/camel-google-sheets/src/main/docs/google-sheets-stream-component.adoc
index 20d912957f1..56b910e9fae 100644
--- a/components/camel-google/camel-google-sheets/src/main/docs/google-sheets-stream-component.adoc
+++ b/components/camel-google/camel-google-sheets/src/main/docs/google-sheets-stream-component.adoc
@@ -74,6 +74,18 @@ include::partial$component-endpoint-options.adoc[]
 include::partial$component-endpoint-headers.adoc[]
 // component headers: END
 
+== ValueInputOption
+
+Many of the APIs with Google sheets requires to include the following header,
+with one of the enum value:
+
+|====
+| *Header* | *Enum* | *Description*
+| `CamelGoogleSheets.ValueInputOption` | `RAW` | The values the user has entered will not be parsed and will be stored as-is.
+| `CamelGoogleSheets.ValueInputOption` | `USER_ENTERED` | The values will be parsed as if the user typed them into the UI. Numbers will stay as numbers, but strings may be converted to numbers, dates, etc. following the same rules that are applied when entering text into a cell via the Google Sheets UI.
+|====
+
+
 == More information
 
 For more information on the endpoints and options see API documentation