# Google Cloud OsConfig V1 Client - Class WindowsUpdateSettings (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 WindowsUpdateSettings.

Windows patching is performed using the Windows Update Agent.

Generated from protobuf message `google.cloud.osconfig.v1.WindowsUpdateSettings`

## Namespace

Google \\ Cloud \\ OsConfig \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ classifications` | `int[]` Only apply updates of these windows update classifications. If empty, all updates are applied. |
| `↳ excludes` | `string[]` List of KBs to exclude from update. |
| `↳ exclusive_patches` | `string[]` An exclusive list of kbs to be updated. These are the only patches that will be updated. This field must not be used with other patch configurations. |

### getClassifications

Only apply updates of these windows update classifications. If empty, all
updates are applied.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<int>` |   |

### setClassifications

Only apply updates of these windows update classifications. If empty, all
updates are applied.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int[]` |

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

### getExcludes

List of KBs to exclude from update.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setExcludes

List of KBs to exclude from update.

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

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

### getExclusivePatches

An exclusive list of kbs to be updated. These are the only patches
that will be updated. This field must not be used with other
patch configurations.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setExclusivePatches

An exclusive list of kbs to be updated. These are the only patches
that will be updated. This field must not be used with other
patch configurations.

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

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