# Cloud KMS V1 Client - Class KeyProjectResolutionMode (2.9.0)

2.9.0 (latest) 2.8.0 2.7.0 2.6.0 2.5.2 2.4.0 2.3.1 2.2.0 2.1.6 2.0.0 1.23.0 1.22.1 1.21.4 1.20.3 1.19.0 1.18.1 1.17.0 1.16.4 1.15.3 Reference documentation and code samples for the Cloud KMS V1 Client class KeyProjectResolutionMode.

Defines the resolution mode enum for the key project.

The
[KeyProjectResolutionMode](https://docs.cloud.google.com/php/docs/reference/cloud-kms/latest/V1.AutokeyConfig.KeyProjectResolutionMode)
determines the mechanism by which
[AutokeyConfig](https://docs.cloud.google.com/php/docs/reference/cloud-kms/latest/V1.AutokeyConfig) identifies a
[key_project](https://docs.cloud.google.com/php/docs/reference/cloud-kms/latest/V1.AutokeyConfig#_Google_Cloud_Kms_V1_AutokeyConfig__getKeyProject__) at its
specific configuration node. This parameter also determines if Autokey can
be used within this project or folder.

Protobuf type `google.cloud.kms.v1.AutokeyConfig.KeyProjectResolutionMode`

## Namespace

Google \\ Cloud \\ Kms \\ V1 \\ AutokeyConfig

## Methods

### static::name

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

### static::value

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

## Constants

### KEY_PROJECT_RESOLUTION_MODE_UNSPECIFIED

    Value: 0

Default value. KeyProjectResolutionMode when not specified will act as
`DEDICATED_KEY_PROJECT`.

Generated from protobuf enum `KEY_PROJECT_RESOLUTION_MODE_UNSPECIFIED = 0;`

### DEDICATED_KEY_PROJECT

    Value: 1

Keys are created in a dedicated project specified by `key_project`.

Generated from protobuf enum `DEDICATED_KEY_PROJECT = 1;`

### RESOURCE_PROJECT

    Value: 2

Keys are created in the same project as the resource requesting the key.

The `key_project` must not be set when this mode is used.

Generated from protobuf enum `RESOURCE_PROJECT = 2;`

### DISABLED

    Value: 3

Disables the AutokeyConfig. When this mode is set, any AutokeyConfig
from higher levels in the resource hierarchy are ignored for this
resource and its descendants. This setting can be overridden
by a more specific configuration at a lower level. For example,
if Autokey is disabled on a folder, it can be re-enabled on a sub-folder
or project within that folder by setting a different mode (e.g.,
DEDICATED_KEY_PROJECT or RESOURCE_PROJECT).

Generated from protobuf enum `DISABLED = 3;`