# Google Cloud OsConfig V1 Client - Class Mode (2.2.3)

2.2.3 (latest) 2.2.2 2.1.0 2.0.5 1.3.5 1.2.2 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud OsConfig V1 Client class Mode.

Policy mode

Protobuf type `google.cloud.osconfig.v1.OSPolicy.Mode`

## Namespace

Google \\ Cloud \\ OsConfig \\ V1 \\ OSPolicy

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### MODE_UNSPECIFIED

    Value: 0

Invalid mode

Generated from protobuf enum `MODE_UNSPECIFIED = 0;`

### VALIDATION

    Value: 1

This mode checks if the configuration resources in the policy are in
their desired state. No actions are performed if they are not in the
desired state. This mode is used for reporting purposes.

Generated from protobuf enum `VALIDATION = 1;`

### ENFORCEMENT

    Value: 2

This mode checks if the configuration resources in the policy are in
their desired state, and if not, enforces the desired state.

Generated from protobuf enum `ENFORCEMENT = 2;`