Functions - 14paxton/GoogleNotes GitHub Wiki


title: Functions permalink: GoogleNotes/Functions category: GoogleNotes parent: GoogleNotes layout: default has_children: false share: true shortRepo:

  • googlenotes
  • default


Table of contents {: .text-delta } 1. TOC {:toc}



Quick Scripts

Enable APIs and services for functions

gcloud services enable \
  cloudfunctions \
  cloudbuild.googleapis.com \
  chat.googleapis.com


Client Libraries




where my-first-function is the registered name by which your function will be identified in the Google Cloud console, and --entry-point specifies your function's fully qualified class name (FQN).

gcloud functions deploy my-first-function --entry-point HelloWorld.Function --runtime dotnet6 --trigger-http --allow-unauthenticated

test

gcloud functions describe my-first-function

logs

gcloud functions logs read my-first-function

Resources

⚠️ **GitHub.com Fallback** ⚠️