# Google Cloud Service Management V1 Client - Class ConfigFile (2.2.0)

2.2.0 (latest) 2.1.2 2.0.5 1.3.5 1.2.2 1.1.1 1.0.6 Reference documentation and code samples for the Google Cloud Service Management V1 Client class ConfigFile.

Generic specification of a source configuration file

Generated from protobuf message `google.api.servicemanagement.v1.ConfigFile`

## Namespace

Google \\ Cloud \\ ServiceManagement \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ file_path` | `string` The file name of the configuration file (full or relative path). |
| `↳ file_contents` | `string` The bytes that constitute the file. |
| `↳ file_type` | `int` The type of configuration file this represents. |

### getFilePath

The file name of the configuration file (full or relative path).

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

### setFilePath

The file name of the configuration file (full or relative path).

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

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

### getFileContents

The bytes that constitute the file.

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

### setFileContents

The bytes that constitute the file.

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

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

### getFileType

The type of configuration file this represents.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [FileType](https://docs.cloud.google.com/php/docs/reference/cloud-service-management/latest/V1.ConfigFile.FileType). |

### setFileType

The type of configuration file this represents.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [FileType](https://docs.cloud.google.com/php/docs/reference/cloud-service-management/latest/V1.ConfigFile.FileType). |

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