# Google Cloud Cloud Controls Partner V1beta Client - Class Remediation (0.5.3)

0.5.3 (latest) 0.5.2 0.4.1 0.3.0 0.2.2 0.1.4

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Cloud Controls Partner V1beta Client class Remediation.

Represents remediation guidance to resolve compliance violation for
AssuredWorkload

Generated from protobuf message `google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation`

## Namespace

Google \\ Cloud \\ CloudControlsPartner \\ V1beta \\ Violation

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ instructions` | `https://docs.cloud.google.com/php/docs/reference/cloud-cloudcontrolspartner/latest/V1beta.Violation.Remediation.Instructions` Required. Remediation instructions to resolve violations |
| `↳ compliant_values` | `string[]` Values that can resolve the violation For example: for list org policy violations, this will either be the list of allowed or denied values |
| `↳ remediation_type` | `int` Output only. Remediation type based on the type of org policy values violated |

### getInstructions

Required. Remediation instructions to resolve violations

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-cloudcontrolspartner/latest/V1beta.Violation.Remediation.Instructions|null` |   |

### hasInstructions

### clearInstructions

### setInstructions

Required. Remediation instructions to resolve violations

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-cloudcontrolspartner/latest/V1beta.Violation.Remediation.Instructions` |

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

### getCompliantValues

Values that can resolve the violation
For example: for list org policy violations, this will either be the list
of allowed or denied values

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

### setCompliantValues

Values that can resolve the violation
For example: for list org policy violations, this will either be the list
of allowed or denied values

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

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

### getRemediationType

Output only. Remediation type based on the type of org policy values
violated

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [RemediationType](https://docs.cloud.google.com/php/docs/reference/cloud-cloudcontrolspartner/latest/V1beta.Violation.Remediation.RemediationType). |

### setRemediationType

Output only. Remediation type based on the type of org policy values
violated

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [RemediationType](https://docs.cloud.google.com/php/docs/reference/cloud-cloudcontrolspartner/latest/V1beta.Violation.Remediation.RemediationType). |

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