Class Function (1.8.3)

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.

Attributes

NameDescription
name str
A user-defined name of the function. Function names must be unique globally and match pattern projects/*/locations/*/functions/*
environment google.cloud.functions_v2.types.Environment
Describe whether the function is gen1 or gen2.
description str
User-provided description of a function.
build_config google.cloud.functions_v2.types.BuildConfig
Describes the Build step of the function that builds a container from the given source.
service_config google.cloud.functions_v2.types.ServiceConfig
Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).
event_trigger google.cloud.functions_v2.types.EventTrigger
An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service.
state google.cloud.functions_v2.types.Function.State
Output only. State of the function.
update_time google.protobuf.timestamp_pb2.Timestamp
Output only. The last update timestamp of a Cloud Function.
labels Mapping[str, str]
Labels associated with this Cloud Function.
state_messages Sequence[google.cloud.functions_v2.types.StateMessage]
Output only. State Messages for this Cloud Function.

Classes

LabelsEntry

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

The abstract base class for a message.

Parameters
NameDescription
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.

State

State(value)

Describes the current state of the function.