public sealed class Function : IMessage<Function>, IEquatable<Function>, IDeepCloneable<Function>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Functions v2beta API class Function.
Describes a Cloud Function that contains user computation executed in response to an event. It encapsulates function and trigger configurations.
Inherited Members
Namespace
Google.Cloud.Functions.V2BetaAssembly
Google.Cloud.Functions.V2Beta.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 1st Gen or 2nd Gen.
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 |
KmsKeyName
public string KmsKeyName { get; set; }
[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}
.
Property Value | |
---|---|
Type | Description |
string |
KmsKeyNameAsCryptoKeyName
public CryptoKeyName KmsKeyNameAsCryptoKeyName { get; set; }
CryptoKeyName-typed view over the KmsKeyName resource name property.
Property Value | |
---|---|
Type | Description |
CryptoKeyName |
Labels
public MapField<string, string> Labels { get; }
Labels associated with this Cloud Function.
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.
StateMessages
public RepeatedField<StateMessage> StateMessages { get; }
Output only. State Messages for this Cloud Function.
Property Value | |
---|---|
Type | Description |
RepeatedFieldStateMessage |
UpdateTime
public Timestamp UpdateTime { get; set; }
Output only. The last update timestamp of a Cloud Function.
Property Value | |
---|---|
Type | Description |
Timestamp |
Url
public string Url { get; set; }
Output only. The deployed url for the function.
Property Value | |
---|---|
Type | Description |
string |