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

A request message for deleting a OS policy assignment.

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

## Namespace

Google \\ Cloud \\ OsConfig \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. The name of the OS policy assignment to be deleted |

### getName

Required. The name of the OS policy assignment to be deleted

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

### setName

Required. The name of the OS policy assignment to be deleted

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the OS policy assignment to be deleted Please see OsConfigZonalServiceClient::oSPolicyAssignmentName() for help formatting this field. |

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