# Oracle Database@Google Cloud V1 API - Class Google::Cloud::OracleDatabase::V1::EncryptionKey (v0.15.0)

0.15.0 (latest) 0.14.0 0.13.0 0.12.0 0.11.1 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.1 0.4.0 0.3.0 0.2.1 0.1.0 Reference documentation and code samples for the Oracle Database@Google Cloud V1 API class Google::Cloud::OracleDatabase::V1::EncryptionKey.

The encryption key used to encrypt the Autonomous Database.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #kms_key

    def kms_key() -> ::String

**Returns**

- (::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}`.

### #kms_key=

    def kms_key=(value) -> ::String

**Parameter**

- **value** (::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}`.
**Returns**

- (::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}`.

### #provider

    def provider() -> ::Google::Cloud::OracleDatabase::V1::EncryptionKey::Provider

**Returns**

- ([::Google::Cloud::OracleDatabase::V1::EncryptionKey::Provider](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-oracle_database-v1/latest/Google-Cloud-OracleDatabase-V1-EncryptionKey-Provider)) --- Optional. The provider of the encryption key.

### #provider=

    def provider=(value) -> ::Google::Cloud::OracleDatabase::V1::EncryptionKey::Provider

**Parameter**

- **value** ([::Google::Cloud::OracleDatabase::V1::EncryptionKey::Provider](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-oracle_database-v1/latest/Google-Cloud-OracleDatabase-V1-EncryptionKey-Provider)) --- Optional. The provider of the encryption key.
**Returns**

- ([::Google::Cloud::OracleDatabase::V1::EncryptionKey::Provider](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-oracle_database-v1/latest/Google-Cloud-OracleDatabase-V1-EncryptionKey-Provider)) --- Optional. The provider of the encryption key.