diff --git a/Home.md b/Home.md index 93a012c..6248f42 100644 --- a/Home.md +++ b/Home.md @@ -1,21 +1,36 @@ -# Deploy the Project on CamelX Platform +# Google Sheets Sink -Deploy on CamelX Platform in three steps +Send data to Google Sheets and update/append values on a spreadsheet. -## Step 1: Create a release -From the project space, click on **"Create a release"** +## Metadata -The new version is automatically available in the list +| Property | Value | +|----------|-------| +| Type | sink | +| Group | Google Sheets | +| Namespace | GCP | +| Support Level | Stable | +| Provider | Apache Software Foundation | -## Step 2: Deploy -Click on **"Deploy"** +## Properties -- **Version:** Select the desired release -- **Environment:** Choose `Development`, `Staging`, or `Production` -- **Configuration:** Select the configuration source -- **Resources:** Set CPU and Memory +| Name | Type | Required | Default | Description | +|------|------|----------|---------|-------------| +| `spreadsheetId` | string | ✓ | | The Spreadsheet ID to be used as identifier | +| `clientId` | string | ✓ | | Client ID of the sheets application | +| `clientSecret` | string | ✓ | | Client Secret of the sheets application | +| `accessToken` | string | ✓ | | OAuth 2 access token for google sheets application. This typically expires after an hour so refreshToken is recommended for long term usage. | +| `refreshToken` | string | ✓ | | OAuth 2 refresh token for google sheets application. Using this, the Google Calendar component can obtain a new accessToken whenever the current one expires - a necessity if the application is long-lived. | +| `applicationName` | string | | | Google Sheets application name | +| `operation` | string | | `append` | Operation to execute (update or append) | +| `range` | string | | | The cell range of rows and columns to write data to. | +| `majorDimension` | string | | `ROWS` | Specifies the major dimension that the given values should use (ROWS or COLUMNS). | +| `columnNames` | string | | `A` | Optional custom column names that map to cell coordinates based on their position. | +| `valueInputOption` | string | | `USER_ENTERED` | Controls how the entered values should be be interpreted when adding them. | -## Step 3: Expose -Enable **"Expose"** +## Dependencies -Choose an **API Gateway** (Internal, Public, etc.) +- `camel:core` +- `camel:jackson` +- `camel:kamelet` +- `camel:google-sheets`