# Google Cloud Gke Hub V1 Client - Class ErrorResource (1.3.1)

1.3.1 (latest) 1.3.0 1.2.2 1.1.0 1.0.6 0.10.0 0.9.5 0.8.2 0.7.1 0.6.3 0.5.6 Reference documentation and code samples for the Google Cloud Gke Hub V1 Client class ErrorResource.

Model for a config file in the git repo with an associated Sync error

Generated from protobuf message `google.cloud.gkehub.configmanagement.v1.ErrorResource`

## Namespace

Google \\ Cloud \\ GkeHub \\ ConfigManagement \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ source_path` | `string` Path in the git repo of the erroneous config |
| `↳ resource_name` | `string` Metadata name of the resource that is causing an error |
| `↳ resource_namespace` | `string` Namespace of the resource that is causing an error |
| `↳ resource_gvk` | `https://docs.cloud.google.com/php/docs/reference/cloud-gke-hub/latest/ConfigManagement.V1.GroupVersionKind` Group/version/kind of the resource that is causing an error |

### getSourcePath

Path in the git repo of the erroneous config

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

### setSourcePath

Path in the git repo of the erroneous config

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

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

### getResourceName

Metadata name of the resource that is causing an error

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

### setResourceName

Metadata name of the resource that is causing an error

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

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

### getResourceNamespace

Namespace of the resource that is causing an error

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

### setResourceNamespace

Namespace of the resource that is causing an error

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

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

### getResourceGvk

Group/version/kind of the resource that is causing an error

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-gke-hub/latest/ConfigManagement.V1.GroupVersionKind|null` |   |

### hasResourceGvk

### clearResourceGvk

### setResourceGvk

Group/version/kind of the resource that is causing an error

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-gke-hub/latest/ConfigManagement.V1.GroupVersionKind` |

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