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

A step that runs an executable for a PatchJob.

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

## Namespace

Google \\ Cloud \\ OsConfig \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ linux_exec_step_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-osconfig/latest/V1.ExecStepConfig` The ExecStepConfig for all Linux VMs targeted by the PatchJob. |
| `↳ windows_exec_step_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-osconfig/latest/V1.ExecStepConfig` The ExecStepConfig for all Windows VMs targeted by the PatchJob. |

### getLinuxExecStepConfig

The ExecStepConfig for all Linux VMs targeted by the PatchJob.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-osconfig/latest/V1.ExecStepConfig|null` |   |

### hasLinuxExecStepConfig

### clearLinuxExecStepConfig

### setLinuxExecStepConfig

The ExecStepConfig for all Linux VMs targeted by the PatchJob.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-osconfig/latest/V1.ExecStepConfig` |

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

### getWindowsExecStepConfig

The ExecStepConfig for all Windows VMs targeted by the PatchJob.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-osconfig/latest/V1.ExecStepConfig|null` |   |

### hasWindowsExecStepConfig

### clearWindowsExecStepConfig

### setWindowsExecStepConfig

The ExecStepConfig for all Windows VMs targeted by the PatchJob.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-osconfig/latest/V1.ExecStepConfig` |

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