# Google Cloud Policy Simulator V1 Client - Class PolicyOverlay (1.3.4)

1.3.4 (latest) 1.3.3 1.2.0 1.1.1 1.0.3 0.2.5 0.1.1 Reference documentation and code samples for the Google Cloud Policy Simulator V1 Client class PolicyOverlay.

A change to an OrgPolicy.

Generated from protobuf message `google.cloud.policysimulator.v1.OrgPolicyOverlay.PolicyOverlay`

## Namespace

Google \\ Cloud \\ PolicySimulator \\ V1 \\ OrgPolicyOverlay

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ policy_parent` | `string` Optional. The parent of the policy we are attaching to. Example: "projects/123456" |
| `↳ policy` | `https://docs.cloud.google.com/php/docs/reference/cloud-org-policy/latest/V2.Policy.html` Optional. The new or updated OrgPolicy. |

### getPolicyParent

Optional. The parent of the policy we are attaching to.

Example: "projects/123456"

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

### setPolicyParent

Optional. The parent of the policy we are attaching to.

Example: "projects/123456"

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

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

### getPolicy

Optional. The new or updated OrgPolicy.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-org-policy/latest/V2.Policy.html|null` |   |

### hasPolicy

### clearPolicy

### setPolicy

Optional. The new or updated OrgPolicy.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-org-policy/latest/V2.Policy.html` |

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