0.14.0 (latest) 0.13.0 0.12.3 0.9.0 0.8.2 0.7.1 0.6.1 0.4.1 0.3.0 0.2.1 0.1.2 Reference documentation and code samples for the Google Cloud Oracle Database V1 Client class EncryptionKey.

The encryption key used to encrypt the Autonomous Database.

Generated from protobuf message `google.cloud.oracledatabase.v1.EncryptionKey`

## Namespace

Google \\ Cloud \\ OracleDatabase \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ provider` | `int` Optional. The provider of the encryption key. |
| `↳ kms_key` | `string` Optional. The KMS key used to encrypt the Autonomous Database. This field is required if the provider is GOOGLE_MANAGED. The name of the KMS key resource in the following format: `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. |

### getProvider

Optional. The provider of the encryption key.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Provider](https://docs.cloud.google.com/php/docs/reference/cloud-oracledatabase/latest/V1.EncryptionKey.Provider). |

### setProvider

Optional. The provider of the encryption key.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Provider](https://docs.cloud.google.com/php/docs/reference/cloud-oracledatabase/latest/V1.EncryptionKey.Provider). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getKmsKey

Optional. The KMS key used to encrypt the Autonomous Database.

This field is required if the provider is GOOGLE_MANAGED.
The name of the KMS key resource in the following format:
`projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setKmsKey

Optional. The KMS key used to encrypt the Autonomous Database.

This field is required if the provider is GOOGLE_MANAGED.
The name of the KMS key resource in the following format:
`projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |