Reference documentation and code samples for the Secret Manager V1BETA2 API class Google::Cloud::SecretManager::V1beta2::Replication::UserManaged::Replica.
(::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
encryption configuration only apply to
SecretVersions
added afterwards. They do not apply retroactively to existing
SecretVersions.
value (::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
encryption configuration only apply to
SecretVersions
added afterwards. They do not apply retroactively to existing
SecretVersions.
Returns
(::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
encryption configuration only apply to
SecretVersions
added afterwards. They do not apply retroactively to existing
SecretVersions.
#location
deflocation()->::String
Returns
(::String) โ The canonical IDs of the location to replicate data.
For example: "us-east1".
#location=
deflocation=(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".
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-03 UTC."],[],[],null,["# Secret Manager V1BETA2 API - Class Google::Cloud::SecretManager::V1beta2::Replication::UserManaged::Replica (v0.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.4.0 (latest)](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-Replication-UserManaged-Replica)\n- [0.3.1](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/0.3.1/Google-Cloud-SecretManager-V1beta2-Replication-UserManaged-Replica)\n- [0.2.0](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/0.2.0/Google-Cloud-SecretManager-V1beta2-Replication-UserManaged-Replica)\n- [0.1.1](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/0.1.1/Google-Cloud-SecretManager-V1beta2-Replication-UserManaged-Replica) \nReference documentation and code samples for the Secret Manager V1BETA2 API class Google::Cloud::SecretManager::V1beta2::Replication::UserManaged::Replica.\n\nRepresents a Replica for this\n[Secret](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-Secret \"Google::Cloud::SecretManager::V1beta2::Secret (class)\"). \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #customer_managed_encryption\n\n def customer_managed_encryption() -\u003e ::Google::Cloud::SecretManager::V1beta2::CustomerManagedEncryption\n\n**Returns**\n\n- ([::Google::Cloud::SecretManager::V1beta2::CustomerManagedEncryption](./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.\n\n\n Updates to the [Secret](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-Secret \"Google::Cloud::SecretManager::V1beta2::Secret (class)\")\n encryption configuration only apply to\n [SecretVersions](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretVersion \"Google::Cloud::SecretManager::V1beta2::SecretVersion (class)\")\n added afterwards. They do not apply retroactively to existing\n [SecretVersions](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretVersion \"Google::Cloud::SecretManager::V1beta2::SecretVersion (class)\").\n\n### #customer_managed_encryption=\n\n def customer_managed_encryption=(value) -\u003e ::Google::Cloud::SecretManager::V1beta2::CustomerManagedEncryption\n\n**Parameter**\n\n- **value** ([::Google::Cloud::SecretManager::V1beta2::CustomerManagedEncryption](./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.\n\n\n Updates to the [Secret](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-Secret \"Google::Cloud::SecretManager::V1beta2::Secret (class)\")\n encryption configuration only apply to\n [SecretVersions](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretVersion \"Google::Cloud::SecretManager::V1beta2::SecretVersion (class)\")\n added afterwards. They do not apply retroactively to existing\n[SecretVersions](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretVersion \"Google::Cloud::SecretManager::V1beta2::SecretVersion (class)\"). \n**Returns**\n\n- ([::Google::Cloud::SecretManager::V1beta2::CustomerManagedEncryption](./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.\n\n\n Updates to the [Secret](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-Secret \"Google::Cloud::SecretManager::V1beta2::Secret (class)\")\n encryption configuration only apply to\n [SecretVersions](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretVersion \"Google::Cloud::SecretManager::V1beta2::SecretVersion (class)\")\n added afterwards. They do not apply retroactively to existing\n [SecretVersions](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretVersion \"Google::Cloud::SecretManager::V1beta2::SecretVersion (class)\").\n\n### #location\n\n def location() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The canonical IDs of the location to replicate data. For example: `\"us-east1\"`.\n\n### #location=\n\n def location=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The canonical IDs of the location to replicate data. For example: `\"us-east1\"`. \n**Returns**\n\n- (::String) --- The canonical IDs of the location to replicate data. For example: `\"us-east1\"`."]]