# Google Cloud Security Command Center V2 Client - Class DiskPath (2.5.1)

2.5.1 (latest) 2.5.0 2.4.2 2.3.0 2.2.1 2.1.1 2.0.4 1.32.0 1.31.0 1.30.0 1.29.0 1.28.2 1.21.0 1.20.2 1.19.1 1.18.0 1.17.0 1.16.0 1.15.1 1.14.2 1.13.1 Reference documentation and code samples for the Google Cloud Security Command Center V2 Client class DiskPath.

Path of the file in terms of underlying disk/partition identifiers.

Generated from protobuf message `google.cloud.securitycenter.v2.File.DiskPath`

## Namespace

Google \\ Cloud \\ SecurityCenter \\ V2 \\ File

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ partition_uuid` | `string` UUID of the partition (format <https://wiki.archlinux.org/title/persistent_block_device_naming#by-uuid>) |
| `↳ relative_path` | `string` Relative path of the file in the partition as a JSON encoded string. Example: /home/user1/executable_file.sh |

### getPartitionUuid

UUID of the partition (format
<https://wiki.archlinux.org/title/persistent_block_device_naming#by-uuid>)

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

### setPartitionUuid

UUID of the partition (format
<https://wiki.archlinux.org/title/persistent_block_device_naming#by-uuid>)

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

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

### getRelativePath

Relative path of the file in the partition as a JSON encoded string.

Example: /home/user1/executable_file.sh

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

### setRelativePath

Relative path of the file in the partition as a JSON encoded string.

Example: /home/user1/executable_file.sh

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

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