You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2022/10/04 07:40:58 UTC

[camel-kamelets] branch bigquery created (now f23e4e49)

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

acosentino pushed a change to branch bigquery
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git


      at f23e4e49 Google BigQuery Sink Kamelet: Use ServiceAccountKey parameter instead of forming a connectionFactoryBean

This branch includes the following new commits:

     new ccd38b5c Google BigQuery Sink Kamelet: Use ServiceAccountKey parameter instead of forming a connectionFactoryBean
     new f23e4e49 Google BigQuery Sink Kamelet: Use ServiceAccountKey parameter instead of forming a connectionFactoryBean

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[camel-kamelets] 02/02: Google BigQuery Sink Kamelet: Use ServiceAccountKey parameter instead of forming a connectionFactoryBean

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit f23e4e49130440c7ad25360d5e269fcd3541b999
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Oct 4 09:37:44 2022 +0200

    Google BigQuery Sink Kamelet: Use ServiceAccountKey parameter instead of forming a connectionFactoryBean
---
 .../kamelets/google-bigquery-sink.kamelet.yaml         | 18 ++++++------------
 1 file changed, 6 insertions(+), 12 deletions(-)

diff --git a/library/camel-kamelets/src/main/resources/kamelets/google-bigquery-sink.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/google-bigquery-sink.kamelet.yaml
index 30b3593b..e174b33d 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/google-bigquery-sink.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/google-bigquery-sink.kamelet.yaml
@@ -52,12 +52,12 @@ spec:
         title: Big Query Table Id
         description: The Big Query Table ID.
         type: string
-      credentialsFileLocation:
-        title: Google Cloud Platform Credential File
-        description: The credential for accessing Google Cloud Platform API services. This value must be a path to a service account key file.
-        type: string
+      serviceAccountKey:
+        title: Service Account Key
+        description: The service account key to use as credentials for the BigQuery Service. You must encode this value in base64.
+        type: binary
         x-descriptors:
-          - urn:camel:group:credentials
+        - urn:camel:group:credentials
   types:
     in:
       mediaType: application/json
@@ -67,12 +67,6 @@ spec:
     - "camel:google-bigquery"
     - "camel:jackson"
   template:
-    beans:
-      - name: connectionFactoryBean
-        type: "#class:org.apache.camel.component.google.bigquery.GoogleBigQueryConnectionFactory"
-        property:
-          - key: credentialsFileLocation
-            value: '{{credentialsFileLocation}}'
     from:
       uri: "kamelet:source"
       steps:
@@ -82,4 +76,4 @@ spec:
       - to:
           uri: "google-bigquery:{{projectId}}:{{dataset}}:{{table}}"
           parameters:
-            connectionFactory: "#bean:{{connectionFactoryBean}}"
+            serviceAccountKey: "base64:{{serviceAccountKey}}"


[camel-kamelets] 01/02: Google BigQuery Sink Kamelet: Use ServiceAccountKey parameter instead of forming a connectionFactoryBean

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit ccd38b5c118ad263674fa354557a5265bf6acd69
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Oct 4 09:36:54 2022 +0200

    Google BigQuery Sink Kamelet: Use ServiceAccountKey parameter instead of forming a connectionFactoryBean
---
 kamelets/google-bigquery-sink.kamelet.yaml | 18 ++++++------------
 1 file changed, 6 insertions(+), 12 deletions(-)

diff --git a/kamelets/google-bigquery-sink.kamelet.yaml b/kamelets/google-bigquery-sink.kamelet.yaml
index 30b3593b..e174b33d 100644
--- a/kamelets/google-bigquery-sink.kamelet.yaml
+++ b/kamelets/google-bigquery-sink.kamelet.yaml
@@ -52,12 +52,12 @@ spec:
         title: Big Query Table Id
         description: The Big Query Table ID.
         type: string
-      credentialsFileLocation:
-        title: Google Cloud Platform Credential File
-        description: The credential for accessing Google Cloud Platform API services. This value must be a path to a service account key file.
-        type: string
+      serviceAccountKey:
+        title: Service Account Key
+        description: The service account key to use as credentials for the BigQuery Service. You must encode this value in base64.
+        type: binary
         x-descriptors:
-          - urn:camel:group:credentials
+        - urn:camel:group:credentials
   types:
     in:
       mediaType: application/json
@@ -67,12 +67,6 @@ spec:
     - "camel:google-bigquery"
     - "camel:jackson"
   template:
-    beans:
-      - name: connectionFactoryBean
-        type: "#class:org.apache.camel.component.google.bigquery.GoogleBigQueryConnectionFactory"
-        property:
-          - key: credentialsFileLocation
-            value: '{{credentialsFileLocation}}'
     from:
       uri: "kamelet:source"
       steps:
@@ -82,4 +76,4 @@ spec:
       - to:
           uri: "google-bigquery:{{projectId}}:{{dataset}}:{{table}}"
           parameters:
-            connectionFactory: "#bean:{{connectionFactoryBean}}"
+            serviceAccountKey: "base64:{{serviceAccountKey}}"