UpdateFunctionRequest: {
    description?: string;
    environmentVariables?: Record<string, string>;
    functionId: string;
    handler?: string;
    httpOption?: FunctionHttpOption;
    maxScale?: number;
    memoryLimit?: number;
    minScale?: number;
    privacy?: FunctionPrivacy;
    redeploy?: boolean;
    region?: Region;
    runtime?: FunctionRuntime;
    sandbox?: FunctionSandbox;
    secretEnvironmentVariables?: Function.v1beta1.Secret[];
    timeout?: string;
}

Type declaration

  • Optionaldescription?: string

    Description of the function.

  • OptionalenvironmentVariables?: Record<string, string>

    Environment variables of the function to update.

  • functionId: string

    UUID of the function to update.

  • Optionalhandler?: string

    Handler to use with the function.

  • OptionalhttpOption?: FunctionHttpOption

    Possible values:

    • Redirected: Responds to HTTP request with a 301 redirect to ask the clients to use HTTPS.
    • Enabled: Serve both HTTP and HTTPS traffic.
  • OptionalmaxScale?: number

    Maximum number of instances to scale the function to.

  • OptionalmemoryLimit?: number

    Memory limit of the function in MB.

  • OptionalminScale?: number

    Minumum number of instances to scale the function to.

  • Optionalprivacy?: FunctionPrivacy

    Privacy setting of the function.

  • Optionalredeploy?: boolean

    Redeploy failed function.

  • Optionalregion?: Region

    Region to target. If none is passed will use default region from the config.

  • Optionalruntime?: FunctionRuntime

    Runtime to use with the function.

  • Optionalsandbox?: FunctionSandbox

    Execution environment of the function.

  • OptionalsecretEnvironmentVariables?: Function.v1beta1.Secret[]

    Secret environment variables of the function.

  • Optionaltimeout?: string

    Processing time limit for the function.