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 2021/12/17 17:28:39 UTC

[camel-kamelets] branch gcp-functions created (now 050aa7e)

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

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


      at 050aa7e  Added Google Cloud Functions Sink Kamelet

This branch includes the following new commits:

     new 8513e45  Added Google Cloud Functions Sink Kamelet
     new 0aaa45c  Added Google Cloud Functions Sink Kamelet
     new 40ddab7  Added Google Cloud Functions Sink Kamelet
     new a9973f8  Added Google Cloud Functions Sink Kamelet - Docs
     new a2f95b2  Added Google Cloud Functions Sink Kamelet - Templates
     new 68f46a1  Added Google Cloud Functions Sink Kamelet
     new 7f225e9  Added Google Cloud Functions Sink Kamelet
     new 0e8c809  Added Google Cloud Functions Sink Kamelet
     new 8a48676  Added Google Cloud Functions Sink Kamelet
     new b438fef  Added Google Cloud Functions Sink Kamelet
     new 050aa7e  Added Google Cloud Functions Sink Kamelet

The 11 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] 06/11: Added Google Cloud Functions Sink Kamelet

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

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

commit 68f46a11651ec04f0a106e7c6899e047150f57a4
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Dec 17 18:21:48 2021 +0100

    Added Google Cloud Functions Sink Kamelet
---
 kamelets/google-functions-sink.kamelet.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kamelets/google-functions-sink.kamelet.yaml b/kamelets/google-functions-sink.kamelet.yaml
index 9de189e..670367b 100644
--- a/kamelets/google-functions-sink.kamelet.yaml
+++ b/kamelets/google-functions-sink.kamelet.yaml
@@ -36,7 +36,7 @@ spec:
     required:
       - projectId
       - functionName
-      - location
+      - region
       - serviceAccountKey
     type: object
     properties:

[camel-kamelets] 10/11: Added Google Cloud Functions Sink Kamelet

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

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

commit b438fef3c45841e45ec24849f4b3b21bd089125d
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Dec 17 18:27:28 2021 +0100

    Added Google Cloud Functions Sink Kamelet
---
 .../src/main/resources/kamelets/google-functions-sink.kamelet.yaml      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/library/camel-kamelets/src/main/resources/kamelets/google-functions-sink.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/google-functions-sink.kamelet.yaml
index 670367b..e1ce74d 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/google-functions-sink.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/google-functions-sink.kamelet.yaml
@@ -21,7 +21,7 @@ metadata:
   annotations:
     camel.apache.org/kamelet.support.level: "Preview"
     camel.apache.org/catalog.version: "main-SNAPSHOT"
-    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjI1MDAiIHZpZXdCb3g9Ii0xLjYzMzIzNTQzIDcuMDMyNjA5MzMgMTMxLjI2NTc0NjgyIDExNC40MzkzOTA2NyIgd2lkdGg9IjI1MDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxsaW5lYXJHcmFkaWVudCBpZD0iYSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIHgxPSI2NCIgeDI9IjY0IiB5MT0iNy4wMzQiIHkyPSIxMjAuNzg5Ij48c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiM0Mzg3ZmQiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3 [...]
+    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjU2cHgiIGhlaWdodD0iMjMxcHgiIHZpZXdCb3g9IjAgMCAyNTYgMjMxIiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIj4KICAgIDxkZWZzPgogICAgICAgIDxwYXRoIGQ9Ik0yNTIuOTI1ODU0LDEwMy4yMzcwNzcgTDIwMC4zMjczNDQsMTEuNzU5NjY3IEMxOTYuMzAyNTc5LDQuNjIyMjU3MDMgMTg4LjgwMD [...]
     camel.apache.org/provider: "Apache Software Foundation"
     camel.apache.org/kamelet.group: "Google Functions"
   labels:

[camel-kamelets] 03/11: Added Google Cloud Functions Sink Kamelet

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

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

commit 40ddab77f78fb28caac0d1511bee73f5ea2371b9
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Dec 17 18:20:51 2021 +0100

    Added Google Cloud Functions Sink Kamelet
---
 docs/modules/ROOT/nav.adoc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc
index 11225af..52a4809 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -55,6 +55,7 @@
 * xref:ROOT:ftps-source.adoc[image:kamelets/ftps-source.svg[] FTPS Source]
 * xref:ROOT:github-source.adoc[image:kamelets/github-source.svg[] Github Source]
 * xref:ROOT:google-calendar-source.adoc[image:kamelets/google-calendar-source.svg[] Google Calendar Source]
+* xref:ROOT:google-functions-sink.adoc[image:kamelets/google-functions-sink.svg[] Google Functions Sink]
 * xref:ROOT:google-mail-source.adoc[image:kamelets/google-mail-source.svg[] Google Mail Source]
 * xref:ROOT:google-pubsub-sink.adoc[image:kamelets/google-pubsub-sink.svg[] Google Pubsub Sink]
 * xref:ROOT:google-pubsub-source.adoc[image:kamelets/google-pubsub-source.svg[] Google Pubsub Source]

[camel-kamelets] 11/11: Added Google Cloud Functions Sink Kamelet

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

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

commit 050aa7e906d6215ec36f8c8f8b7a8c9766109a52
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Dec 17 18:27:49 2021 +0100

    Added Google Cloud Functions Sink Kamelet
---
 .../assets/images/kamelets/google-functions-sink.svg | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)

diff --git a/docs/modules/ROOT/assets/images/kamelets/google-functions-sink.svg b/docs/modules/ROOT/assets/images/kamelets/google-functions-sink.svg
index 449dd6e..c8e8945 100644
--- a/docs/modules/ROOT/assets/images/kamelets/google-functions-sink.svg
+++ b/docs/modules/ROOT/assets/images/kamelets/google-functions-sink.svg
@@ -1 +1,19 @@
-<svg height="2500" viewBox="-1.63323543 7.03260933 131.26574682 114.43939067" width="2500" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><linearGradient id="a" gradientUnits="userSpaceOnUse" x1="64" x2="64" y1="7.034" y2="120.789"><stop offset="0" stop-color="#4387fd"/><stop offset="1" stop-color="#4683ea"/></linearGradient><path d="m27.79 115.217-26.25-45.468a11.499 11.499 0 0 1 0-11.499l26.25-45.467a11.5 11.5 0 0 1 9.96-5.75h52.5a11.5 11.5 0 0 1 9.959 5. [...]
\ No newline at end of file
+<?xml version="1.0" encoding="UTF-8"?>
+<svg width="256px" height="231px" viewBox="0 0 256 231" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid">
+    <defs>
+        <path d="M252.925854,103.237077 L200.327344,11.759667 C196.302579,4.62225703 188.80054,0.148424726 180.607902,0 L75.3908814,0 C67.1970912,0.14438548 59.6931984,4.61932363 55.6714398,11.759667 L3.05292985,102.997083 C-1.01764328,110.080373 -1.01764328,118.793146 3.05292985,125.876436 L55.6514404,217.87383 C59.6319755,225.112707 67.1159052,229.735134 75.370882,230.053486 L180.587903,230.053486 C188.842442,229.770144 196.339809,225.166896 200.327344,217.933829 L252.925854,126.456419 [...]
+    </defs>
+		<g>
+				<mask id="mask-2" fill="white">
+						<use xlink:href="#path-1"></use>
+				</mask>
+				<g fill-rule="nonzero"></g>
+				<path d="M252.925854,103.237077 L200.327344,11.759667 C196.302579,4.62225703 188.80054,0.148424726 180.607902,0 L75.3908814,0 C67.1970912,0.14438548 59.6931984,4.61932363 55.6714398,11.759667 L3.05292985,102.997083 C-1.01764328,110.080373 -1.01764328,118.793146 3.05292985,125.876436 L55.6514404,217.87383 C59.6319755,225.112707 67.1159052,229.735134 75.370882,230.053486 L180.587903,230.053486 C188.842442,229.770144 196.339809,225.166896 200.327344,217.933829 L252.925854,126.456419 C25 [...]
+				<path d="M187.167605,84.731603 L179.915711,92.6409485 L181.549379,139.638797 L174.676019,149.60019 L170.691462,145.615633 L174.357254,145.615633 L174.357254,129.318795 L156.765435,111.726976 L143.468746,118.373047 L99.3678929,74.1725271 L78.1302045,85.5484371 L75.500397,107.583037 L82.9515184,147.906753 L93.7496677,158.485752 L88.8287399,165.478649 L153.076098,231.236816 L179.915711,231.236816 C188.138614,230.95456 197.044276,225.565698 201.016528,218.360352 L244.795336,142.356934 L1 [...]
+				<polygon fill="#FFFFFF" fill-rule="nonzero" mask="url(#mask-2)" points="88.8287399 165.478649 99.3678929 154.939496 83.5691247 139.140728 83.5691247 89.9712953 99.3678929 74.1725271 88.8287399 63.6333741 67.730511 84.731603 67.730511 144.38042"></polygon>
+				<circle fill="#FFFFFF" fill-rule="nonzero" mask="url(#mask-2)" cx="105.1455" cy="114.556012" r="7.47104423"></circle>
+				<circle fill="#FFFFFF" fill-rule="nonzero" mask="url(#mask-2)" cx="127.498865" cy="114.556012" r="7.47104423"></circle>
+				<circle fill="#FFFFFF" fill-rule="nonzero" mask="url(#mask-2)" cx="149.852229" cy="114.556012" r="7.47104423"></circle>
+				<polygon fill="#FFFFFF" fill-rule="nonzero" mask="url(#mask-2)" points="166.069376 63.6333741 155.530223 74.1725271 171.328991 89.9712953 171.328991 139.140728 155.530223 154.939496 166.069376 165.478649 187.167605 144.38042 187.167605 84.731603"></polygon>
+		</g>
+</svg>

[camel-kamelets] 08/11: Added Google Cloud Functions Sink Kamelet

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

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

commit 0e8c809db397af81a52839a203a7f68fbda78698
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Dec 17 18:22:34 2021 +0100

    Added Google Cloud Functions Sink Kamelet
---
 docs/modules/ROOT/pages/google-functions-sink.adoc            | 8 +++++---
 templates/bindings/camel-k/google-functions-sink-binding.yaml | 1 +
 templates/bindings/core/google-functions-sink-binding.yaml    | 1 +
 3 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/docs/modules/ROOT/pages/google-functions-sink.adoc b/docs/modules/ROOT/pages/google-functions-sink.adoc
index 09e7637..4cabf4b 100644
--- a/docs/modules/ROOT/pages/google-functions-sink.adoc
+++ b/docs/modules/ROOT/pages/google-functions-sink.adoc
@@ -18,8 +18,8 @@ The following table summarizes the configuration options available for the `goog
 | Property| Name| Description| Type| Default| Example
 | *functionName {empty}* *| Function Name| The Function Name| string| | 
 | *projectId {empty}* *| Project Id| The Google Cloud Functions Project Id| string| | 
+| *region {empty}* *| Region| The Region where the Google Cloud Functions has been deployed| string| | 
 | *serviceAccountKey {empty}* *| Service Account Key| The Service account key that can be used as credentials for the Google Cloud Functions platform| string| | 
-| region| Region| The Region where the Google Cloud Functions has been deployed| string| | 
 |===
 
 NOTE: Fields marked with an asterisk ({empty}*) are mandatory.
@@ -62,6 +62,7 @@ spec:
     properties:
       functionName: "The Function Name"
       projectId: "The Project Id"
+      region: "The Region"
       serviceAccountKey: "The Service Account Key"
   
 ----
@@ -87,7 +88,7 @@ Configure and run the sink by using the following command:
 
 [source,shell]
 ----
-kamel bind channel:mychannel google-functions-sink -p "sink.functionName=The Function Name" -p "sink.projectId=The Project Id" -p "sink.serviceAccountKey=The Service Account Key"
+kamel bind channel:mychannel google-functions-sink -p "sink.functionName=The Function Name" -p "sink.projectId=The Project Id" -p "sink.region=The Region" -p "sink.serviceAccountKey=The Service Account Key"
 ----
 
 This command creates the KameletBinding in the current namespace on the cluster.
@@ -117,6 +118,7 @@ spec:
     properties:
       functionName: "The Function Name"
       projectId: "The Project Id"
+      region: "The Region"
       serviceAccountKey: "The Service Account Key"
   
 ----
@@ -144,7 +146,7 @@ Configure and run the sink by using the following command:
 
 [source,shell]
 ----
-kamel bind kafka.strimzi.io/v1beta1:KafkaTopic:my-topic google-functions-sink -p "sink.functionName=The Function Name" -p "sink.projectId=The Project Id" -p "sink.serviceAccountKey=The Service Account Key"
+kamel bind kafka.strimzi.io/v1beta1:KafkaTopic:my-topic google-functions-sink -p "sink.functionName=The Function Name" -p "sink.projectId=The Project Id" -p "sink.region=The Region" -p "sink.serviceAccountKey=The Service Account Key"
 ----
 
 This command creates the KameletBinding in the current namespace on the cluster.
diff --git a/templates/bindings/camel-k/google-functions-sink-binding.yaml b/templates/bindings/camel-k/google-functions-sink-binding.yaml
index 70e2f32..61f1950 100644
--- a/templates/bindings/camel-k/google-functions-sink-binding.yaml
+++ b/templates/bindings/camel-k/google-functions-sink-binding.yaml
@@ -16,5 +16,6 @@ spec:
     properties:
       functionName: "The Function Name"
       projectId: "The Project Id"
+      region: "The Region"
       serviceAccountKey: "The Service Account Key"
   
\ No newline at end of file
diff --git a/templates/bindings/core/google-functions-sink-binding.yaml b/templates/bindings/core/google-functions-sink-binding.yaml
index 8da065b..ad5c226 100644
--- a/templates/bindings/core/google-functions-sink-binding.yaml
+++ b/templates/bindings/core/google-functions-sink-binding.yaml
@@ -10,5 +10,6 @@
           parameters:
             functionName: "The Function Name"
             projectId: "The Project Id"
+            region: "The Region"
             serviceAccountKey: "The Service Account Key"
     
\ No newline at end of file

[camel-kamelets] 05/11: Added Google Cloud Functions Sink Kamelet - Templates

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

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

commit a2f95b2fad65eb436adcd6af3c3840289b204373
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Dec 17 18:21:16 2021 +0100

    Added Google Cloud Functions Sink Kamelet - Templates
---
 .../camel-k/google-functions-sink-binding.yaml       | 20 ++++++++++++++++++++
 .../bindings/core/google-functions-sink-binding.yaml | 14 ++++++++++++++
 2 files changed, 34 insertions(+)

diff --git a/templates/bindings/camel-k/google-functions-sink-binding.yaml b/templates/bindings/camel-k/google-functions-sink-binding.yaml
new file mode 100644
index 0000000..70e2f32
--- /dev/null
+++ b/templates/bindings/camel-k/google-functions-sink-binding.yaml
@@ -0,0 +1,20 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+  name: google-functions-sink-binding
+spec:
+  source:
+    ref:
+      kind: KafkaTopic
+      apiVersion: kafka.strimzi.io/v1beta1
+      name: my-topic
+  sink:
+    ref:
+      kind: Kamelet
+      apiVersion: camel.apache.org/v1alpha1
+      name: google-functions-sink
+    properties:
+      functionName: "The Function Name"
+      projectId: "The Project Id"
+      serviceAccountKey: "The Service Account Key"
+  
\ No newline at end of file
diff --git a/templates/bindings/core/google-functions-sink-binding.yaml b/templates/bindings/core/google-functions-sink-binding.yaml
new file mode 100644
index 0000000..8da065b
--- /dev/null
+++ b/templates/bindings/core/google-functions-sink-binding.yaml
@@ -0,0 +1,14 @@
+- route:
+    from:
+      uri: "kamelet:timer-source"
+      parameters:
+        period: 1000
+        message: "Hello Camel JBang"
+    steps:
+      - to:
+          uri: "kamelet:google-functions-sink"
+          parameters:
+            functionName: "The Function Name"
+            projectId: "The Project Id"
+            serviceAccountKey: "The Service Account Key"
+    
\ No newline at end of file

[camel-kamelets] 02/11: Added Google Cloud Functions Sink Kamelet

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

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

commit 0aaa45c4e99459dae1d1b8ea79cb8ed124295dbc
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Dec 17 18:20:18 2021 +0100

    Added Google Cloud Functions Sink Kamelet
---
 .../kamelets/google-functions-sink.kamelet.yaml    | 74 ++++++++++++++++++++++
 1 file changed, 74 insertions(+)

diff --git a/library/camel-kamelets/src/main/resources/kamelets/google-functions-sink.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/google-functions-sink.kamelet.yaml
new file mode 100644
index 0000000..9de189e
--- /dev/null
+++ b/library/camel-kamelets/src/main/resources/kamelets/google-functions-sink.kamelet.yaml
@@ -0,0 +1,74 @@
+# ---------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ---------------------------------------------------------------------------
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+  name: google-functions-sink
+  annotations:
+    camel.apache.org/kamelet.support.level: "Preview"
+    camel.apache.org/catalog.version: "main-SNAPSHOT"
+    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjI1MDAiIHZpZXdCb3g9Ii0xLjYzMzIzNTQzIDcuMDMyNjA5MzMgMTMxLjI2NTc0NjgyIDExNC40MzkzOTA2NyIgd2lkdGg9IjI1MDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxsaW5lYXJHcmFkaWVudCBpZD0iYSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIHgxPSI2NCIgeDI9IjY0IiB5MT0iNy4wMzQiIHkyPSIxMjAuNzg5Ij48c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiM0Mzg3ZmQiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3 [...]
+    camel.apache.org/provider: "Apache Software Foundation"
+    camel.apache.org/kamelet.group: "Google Functions"
+  labels:
+    camel.apache.org/kamelet.type: "sink"
+spec:
+  definition:
+    title: "Google Functions Sink"
+    description: |-
+      Send messages to Google Functions.
+
+      The serviceAccountKey property needs to be a path to a service account key file.
+    required:
+      - projectId
+      - functionName
+      - location
+      - serviceAccountKey
+    type: object
+    properties:
+      projectId:
+        title: Project Id
+        description: The Google Cloud Functions Project Id
+        type: string
+      region:
+        title: Region 
+        description: The Region where the Google Cloud Functions has been deployed
+        type: string
+      functionName:
+        title: Function Name
+        description: The Function Name
+        type: string
+      serviceAccountKey:
+        title: Service Account Key
+        description: The Service account key that can be used as credentials for the Google Cloud Functions platform
+        type: string
+        x-descriptors:
+        - urn:camel:group:credentials
+  dependencies:
+    - "camel:kamelet"
+    - "camel:google-functions"
+    - "camel:jackson"
+  flow:
+    from:
+      uri: kamelet:source
+      steps:
+      - to:
+          uri: "google-functions://{{functionName}}"
+          parameters:
+            serviceAccountKey: "{{serviceAccountKey}}"
+            project: "{{projectId}}"
+            location: "{{region}}"

[camel-kamelets] 07/11: Added Google Cloud Functions Sink Kamelet

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

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

commit 7f225e930af49c8c8283e5e9491ec97a8262cfa1
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Dec 17 18:22:09 2021 +0100

    Added Google Cloud Functions Sink Kamelet
---
 .../src/main/resources/kamelets/google-functions-sink.kamelet.yaml      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/library/camel-kamelets/src/main/resources/kamelets/google-functions-sink.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/google-functions-sink.kamelet.yaml
index 9de189e..670367b 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/google-functions-sink.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/google-functions-sink.kamelet.yaml
@@ -36,7 +36,7 @@ spec:
     required:
       - projectId
       - functionName
-      - location
+      - region
       - serviceAccountKey
     type: object
     properties:

[camel-kamelets] 09/11: Added Google Cloud Functions Sink Kamelet

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

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

commit 8a48676a8eb5a010adb242a1eef1e6ca761201a9
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Dec 17 18:27:01 2021 +0100

    Added Google Cloud Functions Sink Kamelet
---
 kamelets/google-functions-sink.kamelet.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kamelets/google-functions-sink.kamelet.yaml b/kamelets/google-functions-sink.kamelet.yaml
index 670367b..e1ce74d 100644
--- a/kamelets/google-functions-sink.kamelet.yaml
+++ b/kamelets/google-functions-sink.kamelet.yaml
@@ -21,7 +21,7 @@ metadata:
   annotations:
     camel.apache.org/kamelet.support.level: "Preview"
     camel.apache.org/catalog.version: "main-SNAPSHOT"
-    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjI1MDAiIHZpZXdCb3g9Ii0xLjYzMzIzNTQzIDcuMDMyNjA5MzMgMTMxLjI2NTc0NjgyIDExNC40MzkzOTA2NyIgd2lkdGg9IjI1MDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxsaW5lYXJHcmFkaWVudCBpZD0iYSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIHgxPSI2NCIgeDI9IjY0IiB5MT0iNy4wMzQiIHkyPSIxMjAuNzg5Ij48c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiM0Mzg3ZmQiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3 [...]
+    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjU2cHgiIGhlaWdodD0iMjMxcHgiIHZpZXdCb3g9IjAgMCAyNTYgMjMxIiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIj4KICAgIDxkZWZzPgogICAgICAgIDxwYXRoIGQ9Ik0yNTIuOTI1ODU0LDEwMy4yMzcwNzcgTDIwMC4zMjczNDQsMTEuNzU5NjY3IEMxOTYuMzAyNTc5LDQuNjIyMjU3MDMgMTg4LjgwMD [...]
     camel.apache.org/provider: "Apache Software Foundation"
     camel.apache.org/kamelet.group: "Google Functions"
   labels:

[camel-kamelets] 04/11: Added Google Cloud Functions Sink Kamelet - Docs

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

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

commit a9973f87b3355737ef982b70cdc5b9938836d2cd
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Dec 17 18:21:06 2021 +0100

    Added Google Cloud Functions Sink Kamelet - Docs
---
 .../images/kamelets/google-functions-sink.svg      |   1 +
 docs/modules/ROOT/pages/google-functions-sink.adoc | 156 +++++++++++++++++++++
 2 files changed, 157 insertions(+)

diff --git a/docs/modules/ROOT/assets/images/kamelets/google-functions-sink.svg b/docs/modules/ROOT/assets/images/kamelets/google-functions-sink.svg
new file mode 100644
index 0000000..449dd6e
--- /dev/null
+++ b/docs/modules/ROOT/assets/images/kamelets/google-functions-sink.svg
@@ -0,0 +1 @@
+<svg height="2500" viewBox="-1.63323543 7.03260933 131.26574682 114.43939067" width="2500" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><linearGradient id="a" gradientUnits="userSpaceOnUse" x1="64" x2="64" y1="7.034" y2="120.789"><stop offset="0" stop-color="#4387fd"/><stop offset="1" stop-color="#4683ea"/></linearGradient><path d="m27.79 115.217-26.25-45.468a11.499 11.499 0 0 1 0-11.499l26.25-45.467a11.5 11.5 0 0 1 9.96-5.75h52.5a11.5 11.5 0 0 1 9.959 5. [...]
\ No newline at end of file
diff --git a/docs/modules/ROOT/pages/google-functions-sink.adoc b/docs/modules/ROOT/pages/google-functions-sink.adoc
new file mode 100644
index 0000000..09e7637
--- /dev/null
+++ b/docs/modules/ROOT/pages/google-functions-sink.adoc
@@ -0,0 +1,156 @@
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT
+
+= image:kamelets/google-functions-sink.svg[] Google Functions Sink
+
+*Provided by: "Apache Software Foundation"*
+
+*Support Level for this Kamelet is: "Preview"*
+
+Send messages to Google Functions.
+
+The serviceAccountKey property needs to be a path to a service account key file.
+
+== Configuration Options
+
+The following table summarizes the configuration options available for the `google-functions-sink` Kamelet:
+[width="100%",cols="2,^2,3,^2,^2,^3",options="header"]
+|===
+| Property| Name| Description| Type| Default| Example
+| *functionName {empty}* *| Function Name| The Function Name| string| | 
+| *projectId {empty}* *| Project Id| The Google Cloud Functions Project Id| string| | 
+| *serviceAccountKey {empty}* *| Service Account Key| The Service account key that can be used as credentials for the Google Cloud Functions platform| string| | 
+| region| Region| The Region where the Google Cloud Functions has been deployed| string| | 
+|===
+
+NOTE: Fields marked with an asterisk ({empty}*) are mandatory.
+
+
+== Dependencies
+
+At runtime, the `google-functions-sink` Kamelet relies upon the presence of the following dependencies:
+
+- camel:kamelet
+- camel:google-functions
+- camel:jackson 
+
+== Usage
+
+This section describes how you can use the `google-functions-sink`.
+
+=== Knative Sink
+
+You can use the `google-functions-sink` Kamelet as a Knative sink by binding it to a Knative object.
+
+.google-functions-sink-binding.yaml
+[source,yaml]
+----
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+  name: google-functions-sink-binding
+spec:
+  source:
+    ref:
+      kind: Channel
+      apiVersion: messaging.knative.dev/v1
+      name: mychannel
+  sink:
+    ref:
+      kind: Kamelet
+      apiVersion: camel.apache.org/v1alpha1
+      name: google-functions-sink
+    properties:
+      functionName: "The Function Name"
+      projectId: "The Project Id"
+      serviceAccountKey: "The Service Account Key"
+  
+----
+
+==== *Prerequisite*
+
+You have xref:{camel-k-version}@camel-k::installation/installation.adoc[Camel K installed] on the cluster.
+
+==== *Procedure for using the cluster CLI*
+
+. Save the `google-functions-sink-binding.yaml` file to your local drive, and then edit it as needed for your configuration.
+
+. Run the sink by using the following command:
++
+[source,shell]
+----
+kubectl apply -f google-functions-sink-binding.yaml
+----
+
+==== *Procedure for using the Kamel CLI*
+
+Configure and run the sink by using the following command:
+
+[source,shell]
+----
+kamel bind channel:mychannel google-functions-sink -p "sink.functionName=The Function Name" -p "sink.projectId=The Project Id" -p "sink.serviceAccountKey=The Service Account Key"
+----
+
+This command creates the KameletBinding in the current namespace on the cluster.
+
+=== Kafka Sink
+
+You can use the `google-functions-sink` Kamelet as a Kafka sink by binding it to a Kafka topic.
+
+.google-functions-sink-binding.yaml
+[source,yaml]
+----
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+  name: google-functions-sink-binding
+spec:
+  source:
+    ref:
+      kind: KafkaTopic
+      apiVersion: kafka.strimzi.io/v1beta1
+      name: my-topic
+  sink:
+    ref:
+      kind: Kamelet
+      apiVersion: camel.apache.org/v1alpha1
+      name: google-functions-sink
+    properties:
+      functionName: "The Function Name"
+      projectId: "The Project Id"
+      serviceAccountKey: "The Service Account Key"
+  
+----
+
+==== *Prerequisites*
+
+* You've installed https://strimzi.io/[Strimzi].
+* You've created a topic named `my-topic` in the current namespace.
+* You have xref:{camel-k-version}@camel-k::installation/installation.adoc[Camel K installed] on the cluster.
+
+==== *Procedure for using the cluster CLI*
+
+. Save the `google-functions-sink-binding.yaml` file to your local drive, and then edit it as needed for your configuration.
+
+. Run the sink by using the following command:
++
+[source,shell]
+----
+kubectl apply -f google-functions-sink-binding.yaml
+----
+
+==== *Procedure for using the Kamel CLI*
+
+Configure and run the sink by using the following command:
+
+[source,shell]
+----
+kamel bind kafka.strimzi.io/v1beta1:KafkaTopic:my-topic google-functions-sink -p "sink.functionName=The Function Name" -p "sink.projectId=The Project Id" -p "sink.serviceAccountKey=The Service Account Key"
+----
+
+This command creates the KameletBinding in the current namespace on the cluster.
+
+== Kamelet source file
+
+https://github.com/apache/camel-kamelets/blob/main/kamelets/google-functions-sink.kamelet.yaml
+
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT

[camel-kamelets] 01/11: Added Google Cloud Functions Sink Kamelet

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

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

commit 8513e45de9051bcb1bddda381b16c7b4628ea128
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Dec 17 18:19:37 2021 +0100

    Added Google Cloud Functions Sink Kamelet
---
 kamelets/google-functions-sink.kamelet.yaml | 74 +++++++++++++++++++++++++++++
 1 file changed, 74 insertions(+)

diff --git a/kamelets/google-functions-sink.kamelet.yaml b/kamelets/google-functions-sink.kamelet.yaml
new file mode 100644
index 0000000..9de189e
--- /dev/null
+++ b/kamelets/google-functions-sink.kamelet.yaml
@@ -0,0 +1,74 @@
+# ---------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ---------------------------------------------------------------------------
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+  name: google-functions-sink
+  annotations:
+    camel.apache.org/kamelet.support.level: "Preview"
+    camel.apache.org/catalog.version: "main-SNAPSHOT"
+    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjI1MDAiIHZpZXdCb3g9Ii0xLjYzMzIzNTQzIDcuMDMyNjA5MzMgMTMxLjI2NTc0NjgyIDExNC40MzkzOTA2NyIgd2lkdGg9IjI1MDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxsaW5lYXJHcmFkaWVudCBpZD0iYSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIHgxPSI2NCIgeDI9IjY0IiB5MT0iNy4wMzQiIHkyPSIxMjAuNzg5Ij48c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiM0Mzg3ZmQiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3 [...]
+    camel.apache.org/provider: "Apache Software Foundation"
+    camel.apache.org/kamelet.group: "Google Functions"
+  labels:
+    camel.apache.org/kamelet.type: "sink"
+spec:
+  definition:
+    title: "Google Functions Sink"
+    description: |-
+      Send messages to Google Functions.
+
+      The serviceAccountKey property needs to be a path to a service account key file.
+    required:
+      - projectId
+      - functionName
+      - location
+      - serviceAccountKey
+    type: object
+    properties:
+      projectId:
+        title: Project Id
+        description: The Google Cloud Functions Project Id
+        type: string
+      region:
+        title: Region 
+        description: The Region where the Google Cloud Functions has been deployed
+        type: string
+      functionName:
+        title: Function Name
+        description: The Function Name
+        type: string
+      serviceAccountKey:
+        title: Service Account Key
+        description: The Service account key that can be used as credentials for the Google Cloud Functions platform
+        type: string
+        x-descriptors:
+        - urn:camel:group:credentials
+  dependencies:
+    - "camel:kamelet"
+    - "camel:google-functions"
+    - "camel:jackson"
+  flow:
+    from:
+      uri: kamelet:source
+      steps:
+      - to:
+          uri: "google-functions://{{functionName}}"
+          parameters:
+            serviceAccountKey: "{{serviceAccountKey}}"
+            project: "{{projectId}}"
+            location: "{{region}}"