# Google Cloud Security Compliance V1 Client - Class TargetResourceConfig (0.4.0)

0.4.0 (latest) 0.3.0 0.2.1 0.1.0 Reference documentation and code samples for the Google Cloud Security Compliance V1 Client class TargetResourceConfig.

The name of the target resource or the configuration that's required to
create a new target resource.

Generated from protobuf message `google.cloud.cloudsecuritycompliance.v1.TargetResourceConfig`

## Namespace

Google \\ Cloud \\ CloudSecurityCompliance \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ existing_target_resource` | `string` Optional. The resource hierarchy node, in one of the following formats: - `organizations/{organizationID}` - `folders/{folderID}` - `projects/{projectID}` |
| `↳ target_resource_creation_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-securitycompliance/latest/V1.TargetResourceCreationConfig` Optional. The details that are required to create a resource and use that resource as the target resource for deployment. |

### getExistingTargetResource

Optional. The resource hierarchy node, in one of the following formats:

- `organizations/{organizationID}`
- `folders/{folderID}`
- `projects/{projectID}`

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

### hasExistingTargetResource

### setExistingTargetResource

Optional. The resource hierarchy node, in one of the following formats:

- `organizations/{organizationID}`
- `folders/{folderID}`
- `projects/{projectID}`

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

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

### getTargetResourceCreationConfig

Optional. The details that are required to create a resource and use
that resource as the target resource for deployment.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-securitycompliance/latest/V1.TargetResourceCreationConfig|null` |   |

### hasTargetResourceCreationConfig

### setTargetResourceCreationConfig

Optional. The details that are required to create a resource and use
that resource as the target resource for deployment.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-securitycompliance/latest/V1.TargetResourceCreationConfig` |

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

### getResourceConfig

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