# Google Cloud Dms V1 Client - Class RulesFile (2.1.3)

2.1.3 (latest) 2.1.2 2.0.6 1.5.5 1.4.2 1.3.0 1.2.1 1.1.0 1.0.5 Reference documentation and code samples for the Google Cloud Dms V1 Client class RulesFile.

Details of a single rules file.

Generated from protobuf message `google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile`

## Namespace

Google \\ Cloud \\ CloudDms \\ V1 \\ ImportMappingRulesRequest

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ rules_source_filename` | `string` Required. The filename of the rules that needs to be converted. The filename is used mainly so that future logs of the import rules job contain it, and can therefore be searched by it. |
| `↳ rules_content` | `string` Required. The text content of the rules that needs to be converted. |

### getRulesSourceFilename

Required. The filename of the rules that needs to be converted. The
filename is used mainly so that future logs of the import rules job
contain it, and can therefore be searched by it.

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

### setRulesSourceFilename

Required. The filename of the rules that needs to be converted. The
filename is used mainly so that future logs of the import rules job
contain it, and can therefore be searched by it.

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

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

### getRulesContent

Required. The text content of the rules that needs to be converted.

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

### setRulesContent

Required. The text content of the rules that needs to be converted.

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

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