# Google Cloud Config V1 Client - Class DeploymentReferencePolicy (1.8.0)

1.8.0 (latest) 1.7.2 1.6.1 1.5.0 1.4.1 1.3.0 1.2.1 1.1.0 1.0.1 0.5.2 0.2.0 0.1.3 Reference documentation and code samples for the Google Cloud Config V1 Client class DeploymentReferencePolicy.

Policy on how to handle referenced deployments when deleting the
DeploymentGroup.

Protobuf type `google.cloud.config.v1.DeleteDeploymentGroupRequest.DeploymentReferencePolicy`

## Namespace

Google \\ Cloud \\ Config \\ V1 \\ DeleteDeploymentGroupRequest

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### DEPLOYMENT_REFERENCE_POLICY_UNSPECIFIED

    Value: 0

The default behavior. If unspecified, the system will act as if
`FAIL_IF_ANY_REFERENCES_EXIST` is specified.

Generated from protobuf enum `DEPLOYMENT_REFERENCE_POLICY_UNSPECIFIED = 0;`

### FAIL_IF_ANY_REFERENCES_EXIST

    Value: 1

Fail the deletion if any deployments currently referenced in the
`deployment_units` of the DeploymentGroup or in the latest revision
are not deleted.

Generated from protobuf enum `FAIL_IF_ANY_REFERENCES_EXIST = 1;`

### FAIL_IF_METADATA_REFERENCES_EXIST

    Value: 2

Fail the deletion only if any deployments currently referenced in the
`deployment_units` of the DeploymentGroup are not deleted.

The deletion will proceed even if the deployments in the latest revision
of the DeploymentGroup are not deleted.

Generated from protobuf enum `FAIL_IF_METADATA_REFERENCES_EXIST = 2;`

### IGNORE_DEPLOYMENT_REFERENCES

    Value: 3

Ignore any deployments currently referenced in the
`deployment_units` of the DeploymentGroup or in the latest revision.

Generated from protobuf enum `IGNORE_DEPLOYMENT_REFERENCES = 3;`