# Google Cloud Gke Backup V1 Client - Class TransformationRuleAction (1.3.3)

1.3.3 (latest) 1.3.2 1.2.1 1.0.3 0.8.1 0.7.2 0.6.0 0.5.3 0.4.0 0.3.1 0.2.0 0.1.7 Reference documentation and code samples for the Google Cloud Gke Backup V1 Client class TransformationRuleAction.

TransformationRuleAction defines a TransformationRule action based on the
JSON Patch RFC (<https://www.rfc-editor.org/rfc/rfc6902>)

Generated from protobuf message `google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction`

## Namespace

Google \\ Cloud \\ GkeBackup \\ V1 \\ RestoreConfig

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ op` | `int` Required. op specifies the operation to perform. |
| `↳ from_path` | `string` Optional. A string containing a JSON Pointer value that references the location in the target document to move the value from. |
| `↳ path` | `string` Optional. A string containing a JSON-Pointer value that references a location within the target document where the operation is performed. |
| `↳ value` | `string` Optional. A string that specifies the desired value in string format to use for transformation. |

### getOp

Required. op specifies the operation to perform.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Op](https://docs.cloud.google.com/php/docs/reference/cloud-gke-backup/latest/V1.RestoreConfig.TransformationRuleAction.Op). |

### setOp

Required. op specifies the operation to perform.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Op](https://docs.cloud.google.com/php/docs/reference/cloud-gke-backup/latest/V1.RestoreConfig.TransformationRuleAction.Op). |

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

### getFromPath

Optional. A string containing a JSON Pointer value that references the
location in the target document to move the value from.

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

### setFromPath

Optional. A string containing a JSON Pointer value that references the
location in the target document to move the value from.

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

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

### getPath

Optional. A string containing a JSON-Pointer value that references a
location within the target document where the operation is performed.

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

### setPath

Optional. A string containing a JSON-Pointer value that references a
location within the target document where the operation is performed.

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

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

### getValue

Optional. A string that specifies the desired value in string format to
use for transformation.

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

### setValue

Optional. A string that specifies the desired value in string format to
use for transformation.

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

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