# Google Cloud Iam V3 Client - Class DeletePolicyBindingRequest (1.3.0)

1.3.0 (latest) 1.2.2 1.1.1 1.0.3 0.5.5 0.4.2 0.3.1 0.2.0 0.1.7 Reference documentation and code samples for the Google Cloud Iam V3 Client class DeletePolicyBindingRequest.

Request message for DeletePolicyBinding method.

Generated from protobuf message `google.iam.v3.DeletePolicyBindingRequest`

## Namespace

Google \\ Cloud \\ Iam \\ V3

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. The name of the policy binding to delete. Format: \* \* `projects/{project_id}/locations/{location}/policyBindings/{policy_binding_id}` \* \* `projects/{project_number}/locations/{location}/policyBindings/{policy_binding_id}` \* \* `folders/{folder_id}/locations/{location}/policyBindings/{policy_binding_id}` \* \* `organizations/{organization_id}/locations/{location}/policyBindings/{policy_binding_id}` |
| `↳ etag` | `string` Optional. The etag of the policy binding. If this is provided, it must match the server's etag. |
| `↳ validate_only` | `bool` Optional. If set, validate the request and preview the deletion, but do not actually post it. |

### getName

Required. The name of the policy binding to delete.

Format:

- `projects/{project_id}/locations/{location}/policyBindings/{policy_binding_id}`
- `projects/{project_number}/locations/{location}/policyBindings/{policy_binding_id}`
- `folders/{folder_id}/locations/{location}/policyBindings/{policy_binding_id}`
- `organizations/{organization_id}/locations/{location}/policyBindings/{policy_binding_id}`

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

### setName

Required. The name of the policy binding to delete.

Format:

- `projects/{project_id}/locations/{location}/policyBindings/{policy_binding_id}`
- `projects/{project_number}/locations/{location}/policyBindings/{policy_binding_id}`
- `folders/{folder_id}/locations/{location}/policyBindings/{policy_binding_id}`
- `organizations/{organization_id}/locations/{location}/policyBindings/{policy_binding_id}`

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

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

### getEtag

Optional. The etag of the policy binding.

If this is provided, it must match the server's etag.

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

### setEtag

Optional. The etag of the policy binding.

If this is provided, it must match the server's etag.

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

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

### getValidateOnly

Optional. If set, validate the request and preview the deletion, but do not
actually post it.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setValidateOnly

Optional. If set, validate the request and preview the deletion, but do not
actually post it.

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the policy binding to delete. Format: - - `projects/{project_id}/locations/{location}/policyBindings/{policy_binding_id}` - - `projects/{project_number}/locations/{location}/policyBindings/{policy_binding_id}` - - `folders/{folder_id}/locations/{location}/policyBindings/{policy_binding_id}` - - `organizations/{organization_id}/locations/{location}/policyBindings/{policy_binding_id}` Please see PolicyBindingsClient::policyBindingName() for help formatting this field. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-iam/latest/V3.DeletePolicyBindingRequest` |   |