Cloud Functions API (cloudfunctions:v2)

2024-02-07

5 new methods

Additions

    Methods
  • cloudfunctions.projects.locations.functions.setupFunctionUpgradeConfig

      Path : v2/{+name}:setupFunctionUpgradeConfig

      Flat Path : v2/projects/{projectsId}/locations/{locationsId}/functions/{functionsId}:setupFunctionUpgradeConfig

      HTTP Method : POST

      Parameters :

        name

          Description : Required. The name of the function which should have configuration copied for upgrade.

          Pattern : ^projects/[^/]+/locations/[^/]+/functions/[^/]+$

          Location : path

          Required : Yes

          Type : string

      Parameter Order : name

      Scopes : https://www.googleapis.com/auth/cloud-platform

      Description : Creates a 2nd Gen copy of the function configuration based on the 1st Gen function with the given name. This is the first step of the multi step process to upgrade 1st Gen functions to 2nd Gen. Only 2nd Gen configuration is setup as part of this request and traffic continues to be served by 1st Gen.

  • cloudfunctions.projects.locations.functions.abortFunctionUpgrade

      Path : v2/{+name}:abortFunctionUpgrade

      Flat Path : v2/projects/{projectsId}/locations/{locationsId}/functions/{functionsId}:abortFunctionUpgrade

      HTTP Method : POST

      Parameters :

        name

          Description : Required. The name of the function for which upgrade should be aborted.

          Pattern : ^projects/[^/]+/locations/[^/]+/functions/[^/]+$

          Location : path

          Required : Yes

          Type : string

      Parameter Order : name

      Scopes : https://www.googleapis.com/auth/cloud-platform

      Description : Aborts generation upgrade process for a function with the given name from the specified project. Deletes all 2nd Gen copy related configuration and resources which were created during the upgrade process.

  • cloudfunctions.projects.locations.functions.redirectFunctionUpgradeTraffic

      Path : v2/{+name}:redirectFunctionUpgradeTraffic

      Flat Path : v2/projects/{projectsId}/locations/{locationsId}/functions/{functionsId}:redirectFunctionUpgradeTraffic

      HTTP Method : POST

      Parameters :

        name

          Description : Required. The name of the function for which traffic target should be changed to 2nd Gen from 1st Gen.

          Pattern : ^projects/[^/]+/locations/[^/]+/functions/[^/]+$

          Location : path

          Required : Yes

          Type : string

      Parameter Order : name

      Scopes : https://www.googleapis.com/auth/cloud-platform

      Description : Changes the traffic target of a function from the original 1st Gen function to the 2nd Gen copy. This is the second step of the multi step process to upgrade 1st Gen functions to 2nd Gen. After this operation, all new traffic will be served by 2nd Gen copy.

  • cloudfunctions.projects.locations.functions.rollbackFunctionUpgradeTraffic

      Path : v2/{+name}:rollbackFunctionUpgradeTraffic

      Flat Path : v2/projects/{projectsId}/locations/{locationsId}/functions/{functionsId}:rollbackFunctionUpgradeTraffic

      HTTP Method : POST

      Parameters :

        name

          Description : Required. The name of the function for which traffic target should be changed back to 1st Gen from 2nd Gen.

          Pattern : ^projects/[^/]+/locations/[^/]+/functions/[^/]+$

          Location : path

          Required : Yes

          Type : string

      Parameter Order : name

      Scopes : https://www.googleapis.com/auth/cloud-platform

      Description : Reverts the traffic target of a function from the 2nd Gen copy to the original 1st Gen function. After this operation, all new traffic would be served by the 1st Gen.

  • cloudfunctions.projects.locations.functions.commitFunctionUpgrade

      Path : v2/{+name}:commitFunctionUpgrade

      Flat Path : v2/projects/{projectsId}/locations/{locationsId}/functions/{functionsId}:commitFunctionUpgrade

      HTTP Method : POST

      Parameters :

        name

          Description : Required. The name of the function for which upgrade should be finalized.

          Pattern : ^projects/[^/]+/locations/[^/]+/functions/[^/]+$

          Location : path

          Required : Yes

          Type : string

      Parameter Order : name

      Scopes : https://www.googleapis.com/auth/cloud-platform

      Description : Finalizes the upgrade after which function upgrade can not be rolled back. This is the last step of the multi step process to upgrade 1st Gen functions to 2nd Gen. Deletes all original 1st Gen related configuration and resources.