# Google Cloud Network Connectivity V1 Client - Class Code (2.5.3)

2.5.3 (latest) 2.5.2 2.4.0 2.3.0 2.2.2 2.1.2 2.0.2 1.5.5 1.4.2 1.3.0 1.2.0 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud Network Connectivity V1 Client class Code.

The Code enum represents the various reasons a state can be `INACTIVE`.

Protobuf type `google.cloud.networkconnectivity.v1.Spoke.StateReason.Code`

## Namespace

Google \\ Cloud \\ NetworkConnectivity \\ V1 \\ Spoke \\ StateReason

## Methods

### static::name

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

### static::value

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

## Constants

### CODE_UNSPECIFIED

    Value: 0

No information available.

Generated from protobuf enum `CODE_UNSPECIFIED = 0;`

### PENDING_REVIEW

    Value: 1

The proposed spoke is pending review.

Generated from protobuf enum `PENDING_REVIEW = 1;`

### REJECTED

    Value: 2

The proposed spoke has been rejected by the hub administrator.

Generated from protobuf enum `REJECTED = 2;`

### PAUSED

    Value: 3

The spoke has been deactivated internally.

Generated from protobuf enum `PAUSED = 3;`

### FAILED

    Value: 4

Network Connectivity Center encountered errors while accepting
the spoke.

Generated from protobuf enum `FAILED = 4;`

### UPDATE_PENDING_REVIEW

    Value: 5

The proposed spoke update is pending review.

Generated from protobuf enum `UPDATE_PENDING_REVIEW = 5;`

### UPDATE_REJECTED

    Value: 6

The proposed spoke update has been rejected by the hub administrator.

Generated from protobuf enum `UPDATE_REJECTED = 6;`

### UPDATE_FAILED

    Value: 7

Network Connectivity Center encountered errors while accepting
the spoke update.

Generated from protobuf enum `UPDATE_FAILED = 7;`