# Google Cloud Memorystore for Redis V1 API - Class Google::Cloud::Redis::Cluster::V1::EncryptionInfo (v1.7.0)

1.7.0 (latest) 1.6.0 1.5.1 1.4.0 1.3.1 1.2.0 1.1.0 1.0.1 0.6.0 0.5.0 0.4.2 0.3.0 0.2.2 0.1.0 Reference documentation and code samples for the Google Cloud Memorystore for Redis V1 API class Google::Cloud::Redis::Cluster::V1::EncryptionInfo.

EncryptionInfo describes the encryption information of a cluster or a backup.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #encryption_type

    def encryption_type() -> ::Google::Cloud::Redis::Cluster::V1::EncryptionInfo::Type

**Returns**

- ([::Google::Cloud::Redis::Cluster::V1::EncryptionInfo::Type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-redis-cluster-v1/latest/Google-Cloud-Redis-Cluster-V1-EncryptionInfo-Type)) --- Output only. Type of encryption.

### #kms_key_primary_state

    def kms_key_primary_state() -> ::Google::Cloud::Redis::Cluster::V1::EncryptionInfo::KmsKeyState

**Returns**

- ([::Google::Cloud::Redis::Cluster::V1::EncryptionInfo::KmsKeyState](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-redis-cluster-v1/latest/Google-Cloud-Redis-Cluster-V1-EncryptionInfo-KmsKeyState)) --- Output only. The state of the primary version of the KMS key perceived by the system. This field is not populated in backups.

### #kms_key_versions

    def kms_key_versions() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Output only. KMS key versions that are being used to protect the data at-rest.

### #last_update_time

    def last_update_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-redis-cluster-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The most recent time when the encryption info was updated.