# Secret Manager V1 API - Class Google::Cloud::SecretManager::V1::Replication::UserManaged::Replica (v1.8.0)

1.8.0 (latest) 1.7.0 1.6.0 1.5.1 1.4.0 1.3.0 1.2.1 1.1.0 1.0.1 0.21.0 0.20.0 0.19.2 0.18.0 0.17.2 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.3 Reference documentation and code samples for the Secret Manager V1 API class Google::Cloud::SecretManager::V1::Replication::UserManaged::Replica.

Represents a Replica for this
[Secret](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-Secret "Google::Cloud::SecretManager::V1::Secret (class)").

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #customer_managed_encryption

    def customer_managed_encryption() -> ::Google::Cloud::SecretManager::V1::CustomerManagedEncryption

**Returns**

- ([::Google::Cloud::SecretManager::V1::CustomerManagedEncryption](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-CustomerManagedEncryption)) --- Optional. The customer-managed encryption configuration of the \[User-Managed Replica\]\[Replication.UserManaged.Replica\]. If no configuration is provided, Google-managed default encryption is used.


  Updates to the [Secret](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-Secret "Google::Cloud::SecretManager::V1::Secret (class)")
  encryption configuration only apply to
  [SecretVersions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretVersion "Google::Cloud::SecretManager::V1::SecretVersion (class)") added
  afterwards. They do not apply retroactively to existing
  [SecretVersions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretVersion "Google::Cloud::SecretManager::V1::SecretVersion (class)").

### #customer_managed_encryption=

    def customer_managed_encryption=(value) -> ::Google::Cloud::SecretManager::V1::CustomerManagedEncryption

**Parameter**

- **value** ([::Google::Cloud::SecretManager::V1::CustomerManagedEncryption](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-CustomerManagedEncryption)) --- Optional. The customer-managed encryption configuration of the \[User-Managed Replica\]\[Replication.UserManaged.Replica\]. If no configuration is provided, Google-managed default encryption is used.


  Updates to the [Secret](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-Secret "Google::Cloud::SecretManager::V1::Secret (class)")
  encryption configuration only apply to
  [SecretVersions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretVersion "Google::Cloud::SecretManager::V1::SecretVersion (class)") added
  afterwards. They do not apply retroactively to existing
  [SecretVersions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretVersion "Google::Cloud::SecretManager::V1::SecretVersion (class)").
**Returns**

- ([::Google::Cloud::SecretManager::V1::CustomerManagedEncryption](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-CustomerManagedEncryption)) --- Optional. The customer-managed encryption configuration of the \[User-Managed Replica\]\[Replication.UserManaged.Replica\]. If no configuration is provided, Google-managed default encryption is used.


  Updates to the [Secret](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-Secret "Google::Cloud::SecretManager::V1::Secret (class)")
  encryption configuration only apply to
  [SecretVersions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretVersion "Google::Cloud::SecretManager::V1::SecretVersion (class)") added
  afterwards. They do not apply retroactively to existing
  [SecretVersions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretVersion "Google::Cloud::SecretManager::V1::SecretVersion (class)").

### #location

    def location() -> ::String

**Returns**

- (::String) --- The canonical IDs of the location to replicate data. For example: `"us-east1"`.

### #location=

    def location=(value) -> ::String

**Parameter**

- **value** (::String) --- The canonical IDs of the location to replicate data. For example: `"us-east1"`.
**Returns**

- (::String) --- The canonical IDs of the location to replicate data. For example: `"us-east1"`.