public sealed class Function : IMessage<Function>, IEquatable<Function>, IDeepCloneable<Function>, IBufferMessage, IMessageReference documentation and code samples for the Cloud Functions v2 API class Function.
Describes a Cloud Function that contains user computation executed in response to an event. It encapsulates function and trigger configurations.
Implements
IMessage<Function>, IEquatable<Function>, IDeepCloneable<Function>, IBufferMessage, IMessageNamespace
Google.Cloud.Functions.V2Assembly
Google.Cloud.Functions.V2.dll
Constructors
Function()
public Function()Function(Function)
public Function(Function other)| Parameter | |
|---|---|
| Name | Description |
other |
Function |
Properties
BuildConfig
public BuildConfig BuildConfig { get; set; }Describes the Build step of the function that builds a container from the given source.
| Property Value | |
|---|---|
| Type | Description |
BuildConfig |
|
Description
public string Description { get; set; }User-provided description of a function.
| Property Value | |
|---|---|
| Type | Description |
String |
|
Environment
public Environment Environment { get; set; }Describe whether the function is gen1 or gen2.
| Property Value | |
|---|---|
| Type | Description |
Environment |
|
EventTrigger
public EventTrigger EventTrigger { get; set; }An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service.
| Property Value | |
|---|---|
| Type | Description |
EventTrigger |
|
FunctionName
public FunctionName FunctionName { get; set; }FunctionName-typed view over the Name resource name property.
| Property Value | |
|---|---|
| Type | Description |
FunctionName |
|
Labels
public MapField<string, string> Labels { get; }Labels associated with this Cloud Function.
| Property Value | |
|---|---|
| Type | Description |
MapField<String, String> |
|
Name
public string Name { get; set; }A user-defined name of the function. Function names must be unique
globally and match pattern projects/*/locations/*/functions/*
| Property Value | |
|---|---|
| Type | Description |
String |
|
ServiceConfig
public ServiceConfig ServiceConfig { get; set; }Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).
| Property Value | |
|---|---|
| Type | Description |
ServiceConfig |
|
State
public Function.Types.State State { get; set; }Output only. State of the function.
| Property Value | |
|---|---|
| Type | Description |
Function.Types.State |
|
StateMessages
public RepeatedField<StateMessage> StateMessages { get; }Output only. State Messages for this Cloud Function.
| Property Value | |
|---|---|
| Type | Description |
RepeatedField<StateMessage> |
|
UpdateTime
public Timestamp UpdateTime { get; set; }Output only. The last update timestamp of a Cloud Function.
| Property Value | |
|---|---|
| Type | Description |
Timestamp |
|