# Secret Manager V1BETA2 API - Class Google::Cloud::SecretManager::V1beta2::Replication (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.

A policy that defines the replication and encryption configuration of data.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #automatic

    def automatic() -> ::Google::Cloud::SecretManager::V1beta2::Replication::Automatic

**Returns**

- ([::Google::Cloud::SecretManager::V1beta2::Replication::Automatic](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-Replication-Automatic)) --- 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)") will automatically be replicated without any restrictions.


  Note: The following fields are mutually exclusive: `automatic`, `user_managed`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #automatic=

    def automatic=(value) -> ::Google::Cloud::SecretManager::V1beta2::Replication::Automatic

**Parameter**

- **value** ([::Google::Cloud::SecretManager::V1beta2::Replication::Automatic](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-Replication-Automatic)) --- 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)") will automatically be replicated without any restrictions.


  Note: The following fields are mutually exclusive: `automatic`, `user_managed`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::SecretManager::V1beta2::Replication::Automatic](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-Replication-Automatic)) --- 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)") will automatically be replicated without any restrictions.


  Note: The following fields are mutually exclusive: `automatic`, `user_managed`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #user_managed

    def user_managed() -> ::Google::Cloud::SecretManager::V1beta2::Replication::UserManaged

**Returns**

- ([::Google::Cloud::SecretManager::V1beta2::Replication::UserManaged](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-Replication-UserManaged)) --- 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)") will only be replicated into the locations specified.


  Note: The following fields are mutually exclusive: `user_managed`, `automatic`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #user_managed=

    def user_managed=(value) -> ::Google::Cloud::SecretManager::V1beta2::Replication::UserManaged

**Parameter**

- **value** ([::Google::Cloud::SecretManager::V1beta2::Replication::UserManaged](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-Replication-UserManaged)) --- 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)") will only be replicated into the locations specified.


  Note: The following fields are mutually exclusive: `user_managed`, `automatic`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::SecretManager::V1beta2::Replication::UserManaged](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-Replication-UserManaged)) --- 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)") will only be replicated into the locations specified.


  Note: The following fields are mutually exclusive: `user_managed`, `automatic`. If a field in that set is populated, all other fields in the set will automatically be cleared.