# Google Cloud Security Compliance V1 Client - Class CloudControlDeployment (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 CloudControlDeployment.

A cloud control deployment represents the deployment of a particular cloud
control on a target resource. Supported target resources are
`organizations/{organizationID}`, `folders/{folderID}`, and
`projects/{projectID}`.

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

## Namespace

Google \\ Cloud \\ CloudSecurityCompliance \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. The name for the cloud control deployment, in the format `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` or `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. The only supported location is `global`. |
| `↳ target_resource_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-securitycompliance/latest/V1.TargetResourceConfig` Required. The details of the target resource that the cloud control is deployed You can use an existing target resource or create a new target. |
| `↳ target_resource` | `string` Output only. The resource that the cloud control is deployed on, in one of the following formats: - `organizations/{organizationID}` - `folders/{folderID}` - `projects/{projectID}` |
| `↳ cloud_control_metadata` | `https://docs.cloud.google.com/php/docs/reference/cloud-securitycompliance/latest/V1.CloudControlMetadata` Required. The deployment mode and parameters for the cloud control. |
| `↳ description` | `string` Optional. A friendly description for the cloud control deployment. |
| `↳ deployment_state` | `int` Output only. The state of the cloud control deployment. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time when the resource was created. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time when the resource was last updated. |
| `↳ etag` | `string` Optional. To prevent concurrent updates from overwriting each other, provide the `etag` when you update a cloud control deployment. You can also provide the `etag` when you delete a cloud control deployment to help ensure that you're deleting the intended version of the deployment. |
| `↳ parameter_substituted_cloud_control` | `https://docs.cloud.google.com/php/docs/reference/cloud-securitycompliance/latest/V1.CloudControl` Output only. The cloud control after the given parameters are substituted. |
| `↳ framework_deployment_references` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-securitycompliance/latest/V1.FrameworkDeploymentReference>` Output only. The references to the framework deployments that this cloud control deployment is part of. A cloud control deployment can be part of multiple framework deployments. |
| `↳ target_resource_display_name` | `string` Output only. The display name of the target resource. |

### getName

Identifier. The name for the cloud control deployment, in the format
`organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`
or
`projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`.

The only supported location is `global`.

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

### setName

Identifier. The name for the cloud control deployment, in the format
`organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`
or
`projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`.

The only supported location is `global`.

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

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

### getTargetResourceConfig

Required. The details of the target resource that the cloud control is
deployed You can use an existing target resource or create a new target.

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

### hasTargetResourceConfig

### clearTargetResourceConfig

### setTargetResourceConfig

Required. The details of the target resource that the cloud control is
deployed You can use an existing target resource or create a new target.

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

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

### getTargetResource

Output only. The resource that the cloud control is deployed on, in one of
the following formats:

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

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

### setTargetResource

Output only. The resource that the cloud control is deployed on, in one of
the following formats:

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

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

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

### getCloudControlMetadata

Required. The deployment mode and parameters for the cloud control.

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

### hasCloudControlMetadata

### clearCloudControlMetadata

### setCloudControlMetadata

Required. The deployment mode and parameters for the cloud control.

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

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

### getDescription

Optional. A friendly description for the cloud control deployment.

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

### setDescription

Optional. A friendly description for the cloud control deployment.

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

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

### getDeploymentState

Output only. The state of the cloud control deployment.

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

### setDeploymentState

Output only. The state of the cloud control deployment.

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

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

### getCreateTime

Output only. The time when the resource was created.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. The time when the resource was created.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getUpdateTime

Output only. The time when the resource was last updated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. The time when the resource was last updated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getEtag

Optional. To prevent concurrent updates from overwriting each other,
provide the `etag` when you update a cloud control deployment. You can also
provide the `etag` when you delete a cloud control deployment to help
ensure that you're deleting the intended version of the
deployment.

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

### setEtag

Optional. To prevent concurrent updates from overwriting each other,
provide the `etag` when you update a cloud control deployment. You can also
provide the `etag` when you delete a cloud control deployment to help
ensure that you're deleting the intended version of the
deployment.

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

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

### getParameterSubstitutedCloudControl

Output only. The cloud control after the given parameters are substituted.

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

### hasParameterSubstitutedCloudControl

### clearParameterSubstitutedCloudControl

### setParameterSubstitutedCloudControl

Output only. The cloud control after the given parameters are substituted.

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

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

### getFrameworkDeploymentReferences

Output only. The references to the framework deployments that this cloud
control deployment is part of. A cloud control deployment can be part of
multiple framework deployments.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-securitycompliance/latest/V1.FrameworkDeploymentReference>` |   |

### setFrameworkDeploymentReferences

Output only. The references to the framework deployments that this cloud
control deployment is part of. A cloud control deployment can be part of
multiple framework deployments.

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

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

### getTargetResourceDisplayName

Output only. The display name of the target resource.

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

### setTargetResourceDisplayName

Output only. The display name of the target resource.

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

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