Class Function (1.15.0)

Function(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Describes a Cloud Function that contains user computation executed in response to an event. It encapsulates function and trigger configurations.


name str
A user-defined name of the function. Function names must be unique globally and match pattern projects/*/locations/*/functions/*
description str
User-provided description of a function.
Describes the Build step of the function that builds a container from the given source.
Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).
An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service.
Output only. State of the function.
update_time google.protobuf.timestamp_pb2.Timestamp
Output only. The last update timestamp of a Cloud Function.
labels MutableMapping[str, str]
Labels associated with this Cloud Function.
state_messages MutableSequence[]
Output only. State Messages for this Cloud Function.
Describe whether the function is 1st Gen or 2nd Gen.
url str
Output only. The deployed url for the function.
kms_key_name str
[Preview] 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}.



LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, .Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.



Describes the current state of the function.

Values: STATE_UNSPECIFIED (0): Not specified. Invalid state. ACTIVE (1): Function has been successfully deployed and is serving. FAILED (2): Function deployment failed and the function is not serving. DEPLOYING (3): Function is being created or updated. DELETING (4): Function is being deleted. UNKNOWN (5): Function deployment failed and the function serving state is undefined. The function should be updated or deleted to move it out of this state.