Complete the code to specify the generation of the Cloud Function.
gcloud functions deploy my-function --runtime python39 --trigger-http --gen [1]The --gen 2 flag specifies the second generation Cloud Function, which supports newer features.
Complete the code to set the region for a 2nd generation Cloud Function.
gcloud functions deploy my-function --runtime nodejs18 --trigger-http --gen 2 --region [1]
Second generation Cloud Functions require specifying a region like us-central1.
Fix the error in the deployment command for a 1st generation Cloud Function.
gcloud functions deploy my-function --runtime python39 --trigger-http --gen [1] --region us-central1First generation Cloud Functions use --gen 1. The region flag is optional but allowed.
Fill both blanks to configure a 2nd generation Cloud Function with memory and timeout.
gcloud functions deploy my-function --runtime go120 --trigger-http --gen 2 --memory [1] --timeout [2]
Second generation functions support memory like 512MB and timeout like 60s.
Fill all three blanks to create a 2nd generation Cloud Function with environment variables and service account.
gcloud functions deploy my-function --runtime nodejs18 --trigger-http --gen 2 --set-env-vars [1] --service-account [2] --region [3]
Set environment variables as key=value pairs separated by commas, specify the service account email, and choose a valid region.