Class Function
Describes a Cloud Function that contains user computation executed in response to an event. It encapsulates function and trigger configurations.
Implements
Inherited Members
Namespace: Google.Apis.CloudFunctions.v2.Data
Assembly: Google.Apis.CloudFunctions.v2.dll
Syntax
public class Function : IDirectResponseSchema
Properties
BuildConfig
Describes the Build step of the function that builds a container from the given source.
Declaration
[JsonProperty("buildConfig")]
public virtual BuildConfig BuildConfig { get; set; }
Property Value
Type | Description |
---|---|
BuildConfig |
CreateTime
object representation of CreateTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")]
public virtual object CreateTime { get; set; }
Property Value
Type | Description |
---|---|
object |
CreateTimeDateTimeOffset
DateTimeOffset representation of CreateTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? CreateTimeDateTimeOffset { get; set; }
Property Value
Type | Description |
---|---|
DateTimeOffset? |
CreateTimeRaw
Output only. The create timestamp of a Cloud Function. This is only applicable to 2nd Gen functions.
Declaration
[JsonProperty("createTime")]
public virtual string CreateTimeRaw { get; set; }
Property Value
Type | Description |
---|---|
string |
Description
User-provided description of a function.
Declaration
[JsonProperty("description")]
public virtual string Description { get; set; }
Property Value
Type | Description |
---|---|
string |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
Environment
Describe whether the function is 1st Gen or 2nd Gen.
Declaration
[JsonProperty("environment")]
public virtual string Environment { get; set; }
Property Value
Type | Description |
---|---|
string |
EventTrigger
An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service.
Declaration
[JsonProperty("eventTrigger")]
public virtual EventTrigger EventTrigger { get; set; }
Property Value
Type | Description |
---|---|
EventTrigger |
KmsKeyName
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}
.
Declaration
[JsonProperty("kmsKeyName")]
public virtual string KmsKeyName { get; set; }
Property Value
Type | Description |
---|---|
string |
Labels
Labels associated with this Cloud Function.
Declaration
[JsonProperty("labels")]
public virtual IDictionary<string, string> Labels { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<string, string> |
Name
A user-defined name of the function. Function names must be unique globally and match pattern
projects/*/locations/*/functions/*
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
SatisfiesPzs
Output only. Reserved for future use.
Declaration
[JsonProperty("satisfiesPzs")]
public virtual bool? SatisfiesPzs { get; set; }
Property Value
Type | Description |
---|---|
bool? |
ServiceConfig
Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).
Declaration
[JsonProperty("serviceConfig")]
public virtual ServiceConfig ServiceConfig { get; set; }
Property Value
Type | Description |
---|---|
ServiceConfig |
State
Output only. State of the function.
Declaration
[JsonProperty("state")]
public virtual string State { get; set; }
Property Value
Type | Description |
---|---|
string |
StateMessages
Output only. State Messages for this Cloud Function.
Declaration
[JsonProperty("stateMessages")]
public virtual IList<GoogleCloudFunctionsV2StateMessage> StateMessages { get; set; }
Property Value
Type | Description |
---|---|
IList<GoogleCloudFunctionsV2StateMessage> |
UpdateTime
object representation of UpdateTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use UpdateTimeDateTimeOffset instead.")]
public virtual object UpdateTime { get; set; }
Property Value
Type | Description |
---|---|
object |
UpdateTimeDateTimeOffset
DateTimeOffset representation of UpdateTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? UpdateTimeDateTimeOffset { get; set; }
Property Value
Type | Description |
---|---|
DateTimeOffset? |
UpdateTimeRaw
Output only. The last update timestamp of a Cloud Function.
Declaration
[JsonProperty("updateTime")]
public virtual string UpdateTimeRaw { get; set; }
Property Value
Type | Description |
---|---|
string |
UpgradeInfo
Output only. UpgradeInfo for this Cloud Function
Declaration
[JsonProperty("upgradeInfo")]
public virtual UpgradeInfo UpgradeInfo { get; set; }
Property Value
Type | Description |
---|---|
UpgradeInfo |
Url
Output only. The deployed url for the function.
Declaration
[JsonProperty("url")]
public virtual string Url { get; set; }
Property Value
Type | Description |
---|---|
string |