# Google Cloud Network Security V1 Client - Class ThreatAction (1.4.0)

1.4.0 (latest) 1.3.0 1.2.3 1.1.0 1.0.4 0.6.5 0.5.2 0.4.1 0.3.7 Reference documentation and code samples for the Google Cloud Network Security V1 Client class ThreatAction.

Threat action override.

Protobuf type `google.cloud.networksecurity.v1.ThreatAction`

## Namespace

Google \\ Cloud \\ NetworkSecurity \\ V1

## Methods

### static::name

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

### static::value

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

## Constants

### THREAT_ACTION_UNSPECIFIED

    Value: 0

Threat action not specified.

Generated from protobuf enum `THREAT_ACTION_UNSPECIFIED = 0;`

### DEFAULT_ACTION

    Value: 4

The default action (as specified by the vendor) is taken.

Generated from protobuf enum `DEFAULT_ACTION = 4;`

### ALLOW

    Value: 1

The packet matching this rule will be allowed to transmit.

Generated from protobuf enum `ALLOW = 1;`

### ALERT

    Value: 2

The packet matching this rule will be allowed to transmit, but a threat_log
entry will be sent to the consumer project.

Generated from protobuf enum `ALERT = 2;`

### DENY

    Value: 3

The packet matching this rule will be dropped, and a threat_log entry will
be sent to the consumer project.

Generated from protobuf enum `DENY = 3;`