Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

UpgradeInfo

import type { UpgradeInfo } from "https://googleapis.deno.dev/v1/cloudfunctions:v2.ts";

Information related to: * A function's eligibility for 1st Gen to 2nd Gen migration * Current state of migration for function undergoing migration.

interface UpgradeInfo {
buildConfig?: BuildConfig;
eventTrigger?: EventTrigger;
serviceConfig?: ServiceConfig;
upgradeState?:
| "UPGRADE_STATE_UNSPECIFIED"
| "ELIGIBLE_FOR_2ND_GEN_UPGRADE"
| "UPGRADE_OPERATION_IN_PROGRESS"
| "SETUP_FUNCTION_UPGRADE_CONFIG_SUCCESSFUL"
| "SETUP_FUNCTION_UPGRADE_CONFIG_ERROR"
| "ABORT_FUNCTION_UPGRADE_ERROR"
| "REDIRECT_FUNCTION_UPGRADE_TRAFFIC_SUCCESSFUL"
| "REDIRECT_FUNCTION_UPGRADE_TRAFFIC_ERROR"
| "ROLLBACK_FUNCTION_UPGRADE_TRAFFIC_ERROR"
| "COMMIT_FUNCTION_UPGRADE_ERROR";
}

§Properties

§
buildConfig?: BuildConfig
[src]

Describes the Build step of the function that builds a container to prepare for 2nd gen upgrade.

§
eventTrigger?: EventTrigger
[src]

Describes the Event trigger which has been setup to prepare for 2nd gen upgrade.

§
serviceConfig?: ServiceConfig
[src]

Describes the Cloud Run service which has been setup to prepare for 2nd gen upgrade.

§
upgradeState?: "UPGRADE_STATE_UNSPECIFIED" | "ELIGIBLE_FOR_2ND_GEN_UPGRADE" | "UPGRADE_OPERATION_IN_PROGRESS" | "SETUP_FUNCTION_UPGRADE_CONFIG_SUCCESSFUL" | "SETUP_FUNCTION_UPGRADE_CONFIG_ERROR" | "ABORT_FUNCTION_UPGRADE_ERROR" | "REDIRECT_FUNCTION_UPGRADE_TRAFFIC_SUCCESSFUL" | "REDIRECT_FUNCTION_UPGRADE_TRAFFIC_ERROR" | "ROLLBACK_FUNCTION_UPGRADE_TRAFFIC_ERROR" | "COMMIT_FUNCTION_UPGRADE_ERROR"
[src]

UpgradeState of the function