From 9acce012cde596feb95e3513230ec597d9ff91af Mon Sep 17 00:00:00 2001 From: James Ma Date: Tue, 19 Nov 2024 15:28:07 -0800 Subject: [PATCH] Update README.md to reflect Cloud Run functions rebrand --- functions/README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/functions/README.md b/functions/README.md index af0a0694fb..6982afaca1 100644 --- a/functions/README.md +++ b/functions/README.md @@ -2,6 +2,15 @@ # Google Cloud Functions samples +[Cloud Run functions](https://cloud.google.com/functions/docs/concepts/overview) is a lightweight, event-based, asynchronous compute solution that allows you to create small, single-purpose functions that respond to Cloud events without the need to manage a server or a runtime environment. + +There are two versions of Cloud Run functions: + +* **Cloud Run functions**, formerly known as Cloud Functions (2nd gen), which deploys your function as services on Cloud Run, allowing you to trigger them using Eventarc and Pub/Sub. Cloud Run functions are created using `gcloud functions` or `gcloud run`. Samples for Cloud Run functions can be found in the [`functions/v2`](v2/) folder. +* **Cloud Run functions (1st gen)**, formerly known as Cloud Functions (1st gen), the original version of functions with limited event triggers and configurability. Cloud Run functions (1st gen) are created using `gcloud functions --no-gen2`. Samples for Cloud Run functions (1st generation) can be found in the current `functions/` folder. + +## Samples + This directory contains samples for Google Cloud Functions. Each sample can be run locally by calling the following: ```