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:49:45 UTC

[camel-kamelets] branch main updated (69c8002c -> 9aeb7bf0)

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

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


    from 69c8002c Azure Storage Blob Kamelets should specify which kind of credentials to use
     new 3712bc96 Google BigQuery Sink Kamelet: Use ServiceAccountKey parameter instead of forming a connectionFactoryBean
     new 0f65b28f Google BigQuery Sink Kamelet: Use ServiceAccountKey parameter instead of forming a connectionFactoryBean
     new 9aeb7bf0 Google BigQuery Sink Kamelet: Use ServiceAccountKey parameter instead of forming a connectionFactoryBean

The 3 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.


Summary of changes:
 kamelets/google-bigquery-sink.kamelet.yaml           | 20 +++++++-------------
 .../kamelets/google-bigquery-sink.kamelet.yaml       | 20 +++++++-------------
 2 files changed, 14 insertions(+), 26 deletions(-)


[camel-kamelets] 02/03: 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 main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 0f65b28f32c4f0dda51f05150933ec0a0ed09cd2
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/03: 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 main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 3712bc9632beed0fa5a97ee685f84b802efc9d51
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}}"


[camel-kamelets] 03/03: 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 main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 9aeb7bf0b363b7fc272a48e9a08e297cee5cd4b8
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Oct 4 09:47:04 2022 +0200

    Google BigQuery Sink Kamelet: Use ServiceAccountKey parameter instead of forming a connectionFactoryBean
---
 kamelets/google-bigquery-sink.kamelet.yaml                              | 2 +-
 .../src/main/resources/kamelets/google-bigquery-sink.kamelet.yaml       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/kamelets/google-bigquery-sink.kamelet.yaml b/kamelets/google-bigquery-sink.kamelet.yaml
index e174b33d..47b3c4f2 100644
--- a/kamelets/google-bigquery-sink.kamelet.yaml
+++ b/kamelets/google-bigquery-sink.kamelet.yaml
@@ -37,7 +37,7 @@ spec:
       - projectId
       - dataset
       - table
-      - credentialsFileLocation
+      - serviceAccountKey
     type: object
     properties:
       projectId:
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 e174b33d..47b3c4f2 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
@@ -37,7 +37,7 @@ spec:
       - projectId
       - dataset
       - table
-      - credentialsFileLocation
+      - serviceAccountKey
     type: object
     properties:
       projectId: