# Google Cloud Functions V2 Client - Class OnDeployUpdatePolicy (2.1.3)

2.1.3 (latest) 2.1.2 2.0.6 1.7.0 1.6.5 1.5.0 1.4.2 1.3.1 1.2.0 1.1.2 1.0.3 Reference documentation and code samples for the Google Cloud Functions V2 Client class OnDeployUpdatePolicy.

Security patches are only applied when a function is redeployed.

Generated from protobuf message `google.cloud.functions.v2.OnDeployUpdatePolicy`

## Namespace

Google \\ Cloud \\ Functions \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ runtime_version` | `string` Output only. contains the runtime version which was used during latest function deployment. |

### getRuntimeVersion

Output only. contains the runtime version which was used during latest
function deployment.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setRuntimeVersion

Output only. contains the runtime version which was used during latest
function deployment.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |