# Secret Manager V1BETA2 API - Class Google::Cloud::SecretManager::V1beta2::Replication::UserManaged::Replica (v0.8.0)

0.8.0 (latest) 0.7.1 0.6.0 0.5.1 0.4.0 0.3.1 0.2.0 0.1.1 Reference documentation and code samples for the Secret Manager V1BETA2 API class Google::Cloud::SecretManager::V1beta2::Replication::UserManaged::Replica.

Represents a Replica for this
[Secret](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-Secret "Google::Cloud::SecretManager::V1beta2::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::V1beta2::CustomerManagedEncryption

**Returns**

- ([::Google::Cloud::SecretManager::V1beta2::CustomerManagedEncryption](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-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-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-Secret "Google::Cloud::SecretManager::V1beta2::Secret (class)")
  encryption configuration only apply to
  [SecretVersions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretVersion "Google::Cloud::SecretManager::V1beta2::SecretVersion (class)")
  added afterwards. They do not apply retroactively to existing
  [SecretVersions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretVersion "Google::Cloud::SecretManager::V1beta2::SecretVersion (class)").

### #customer_managed_encryption=

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

**Parameter**

- **value** ([::Google::Cloud::SecretManager::V1beta2::CustomerManagedEncryption](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-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-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-Secret "Google::Cloud::SecretManager::V1beta2::Secret (class)")
  encryption configuration only apply to
  [SecretVersions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretVersion "Google::Cloud::SecretManager::V1beta2::SecretVersion (class)")
  added afterwards. They do not apply retroactively to existing
  [SecretVersions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretVersion "Google::Cloud::SecretManager::V1beta2::SecretVersion (class)").
**Returns**

- ([::Google::Cloud::SecretManager::V1beta2::CustomerManagedEncryption](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-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-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-Secret "Google::Cloud::SecretManager::V1beta2::Secret (class)")
  encryption configuration only apply to
  [SecretVersions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretVersion "Google::Cloud::SecretManager::V1beta2::SecretVersion (class)")
  added afterwards. They do not apply retroactively to existing
  [SecretVersions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretVersion "Google::Cloud::SecretManager::V1beta2::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"`.