i just saw that we have Cloud Functions 2nd generation which looks great: https://cloud.google.com/functions/docs/2nd-gen/overview
But how can i switch my 1nd gen function to be 2nd gen? I see that i can create a new function as 2nd gen like this:
const functions = require('@google-cloud/functions-framework');
functions.http('helloHttp', (req, res) => {
res.send(`Hello ${req.query.name || req.body.name || 'World'}!`);
});
but what about old functions? Is there a way or i will have to delete and re-create them one-by-one?