# Google Cloud Org Policy V2 Client - Class ConstraintDefault (1.3.3)

1.3.3 (latest) 1.3.2 1.2.2 1.1.3 1.0.0 0.7.0 0.6.5 0.5.3 0.4.2 0.3.7 Reference documentation and code samples for the Google Cloud Org Policy V2 Client class ConstraintDefault.

Specifies the default behavior in the absence of any policy for the
constraint. This must not be `CONSTRAINT_DEFAULT_UNSPECIFIED`.

Immutable after creation.

Protobuf type `google.cloud.orgpolicy.v2.Constraint.ConstraintDefault`

## Namespace

Google \\ Cloud \\ OrgPolicy \\ V2 \\ Constraint

## Methods

### static::name

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

### static::value

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

## Constants

### CONSTRAINT_DEFAULT_UNSPECIFIED

    Value: 0

This is only used for distinguishing unset values and should never be
used. Results in an error.

Generated from protobuf enum `CONSTRAINT_DEFAULT_UNSPECIFIED = 0;`

### ALLOW

    Value: 1

Indicate that all values are allowed for list constraints.

Indicate that enforcement is off for boolean constraints.

Generated from protobuf enum `ALLOW = 1;`

### DENY

    Value: 2

Indicate that all values are denied for list constraints.

Indicate that enforcement is on for boolean constraints.

Generated from protobuf enum `DENY = 2;`