[SDK reference](../../index.md) / [Models](../index.md) / [Apps](index.md)

# Function

**Kind:** class  
**Namespace:** `Egulu.Sdk.Models.Apps`  

A serverless function: a source, a runtime and a trigger on the app runtime (ADR-0416).

## Properties

| Name | Type | JSON name | Description |
|---|---|---|---|
| `Annotations` | `Models.Apps.Function_annotations?` | `annotations` | At most 256 KiB in all; never policy input. |
| `BackendMode` | `string?` | `backendMode` | SIMULATED with the fake runtime driver, KNATIVE_GVISOR on the tenant k3s. |
| `CreateTime` | `DateTimeOffset?` | `createTime` | The createTime property |
| `DeleteTime` | `DateTimeOffset?` | `deleteTime` | The deleteTime property |
| `DisplayName` | `string?` | `displayName` | Up to 63 characters. |
| `Environment` | `Models.Apps.Function_environment?` | `environment` | Environment variables (plain text; secrets through secret pins of a later stage). |
| `Etag` | `string?` | `etag` | "{generation}"; send it back in If-Match. |
| `Labels` | `Models.Apps.Function_labels?` | `labels` | At most 64. |
| `MaxInstances` | `int?` | `maxInstances` | Most instances at once (1..20; defaults to 4). |
| `Name` | `string?` | `name` | The resource name, for example projects/p/locations/l/instances/i. |
| `PurgeTime` | `DateTimeOffset?` | `purgeTime` | The purgeTime property |
| `Reconciling` | `bool?` | `reconciling` | True while the platform works toward the spec. |
| `RevisionId` | `string?` | `revisionId` | The revision that serves: a new one is made when source, runtime, environment or limits change. |
| `Runtime` | `string?` | `runtime` | The runtime: `container` runs the image as it is (it listens on $PORT). |
| `Source` | `Models.Apps.FunctionSource?` | `source` | Where the code comes from. |
| `State` | `Models.Apps.FunctionState?` | `state` | Function lifecycle states. |
| `SuspendReason` | `string?` | `suspendReason` | Why the platform paused the function, for example spend-cap. |
| `TimeoutSeconds` | `int?` | `timeoutSeconds` | Longest run of one invocation in seconds (1..900; defaults to 300). |
| `Trigger` | `Models.Apps.FunctionTrigger?` | `trigger` | What starts the function. |
| `TriggerState` | `string?` | `triggerState` | Whether the trigger is wired: HTTP is wired by the runtime; schedule and queue triggers wait for KEDA (W121 Stage B). |
| `Uid` | `string?` | `uid` | UUIDv7, never reused. |
| `UpdateTime` | `DateTimeOffset?` | `updateTime` | The updateTime property |
| `Url` | `string?` | `url` | HTTPS URL of an HTTP-triggered function on the content domain. |
