v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-13205188.5 KB
projects

Updates existing function.

patch/v2/{+name}

Path parameters

namestring required

A user-defined name of the function. Function names must be unique globally and match pattern projects/*/locations/*/functions/*

Query parameters

updateMaskstring

The list of fields to be updated. If no field mask is provided, all fields will be updated.

Request body

kmsKeyNamestring

Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.

environment'ENVIRONMENT_UNSPECIFIED' | 'GEN_1' | 'GEN_2'

Describe whether the function is 1st Gen or 2nd Gen.

urlstring

Output only. The deployed url for the function.

satisfiesPzsboolean

Output only. Reserved for future use.

descriptionstring

User-provided description of a function.

labelsobject

Labels associated with this Cloud Function.

state'STATE_UNSPECIFIED' | 'ACTIVE' | 'FAILED' | 'DEPLOYING' | 'DELETING' | 'UNKNOWN' | 'DETACHING' | 'DETACH_FAILED'

Output only. State of the function.

namestring

A user-defined name of the function. Function names must be unique globally and match pattern projects/*/locations/*/functions/*

satisfiesPziboolean

Output only. Reserved for future use.

updateTimestring google-datetime

Output only. The last update timestamp of a Cloud Function.

createTimestring google-datetime

Output only. The create timestamp of a Cloud Function. This is only applicable to 2nd Gen functions.

Response

Successful response