public sealed class Replication.Types.UserManaged.Types.Replica : IMessage<Replication.Types.UserManaged.Types.Replica>, IEquatable<Replication.Types.UserManaged.Types.Replica>, IDeepCloneable<Replication.Types.UserManaged.Types.Replica>, IBufferMessage, IMessage
Reference documentation and code samples for the Secret Manager v1 API class Replication.Types.UserManaged.Types.Replica.
Represents a Replica for this
[Secret][google.cloud.secretmanager.v1.Secret].
public CustomerManagedEncryption CustomerManagedEncryption { get; set; }
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][google.cloud.secretmanager.v1.Secret]
encryption configuration only apply to
[SecretVersions][google.cloud.secretmanager.v1.SecretVersion] added
afterwards. They do not apply retroactively to existing
[SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eReplication.Types.UserManaged.Types.Replica\u003c/code\u003e class is 2.5.0, with previous versions available from 2.4.0 down to 1.3.0.\u003c/p\u003e\n"],["\u003cp\u003eThis class represents a Replica for a Secret in the Secret Manager v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eReplication.Types.UserManaged.Types.Replica\u003c/code\u003e class implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt allows for optional customer-managed encryption, and if no configuration is provided, Google-managed default encryption is used.\u003c/p\u003e\n"],["\u003cp\u003eIt can set a location ID for where the data should be replicated, such as \u003ccode\u003e"us-east1"\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Secret Manager v1 API - Class Replication.Types.UserManaged.Types.Replica (2.6.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.6.0 (latest)](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.Replication.Types.UserManaged.Types.Replica)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/2.5.0/Google.Cloud.SecretManager.V1.Replication.Types.UserManaged.Types.Replica)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/2.4.0/Google.Cloud.SecretManager.V1.Replication.Types.UserManaged.Types.Replica)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/2.3.0/Google.Cloud.SecretManager.V1.Replication.Types.UserManaged.Types.Replica)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/2.2.0/Google.Cloud.SecretManager.V1.Replication.Types.UserManaged.Types.Replica)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/2.1.0/Google.Cloud.SecretManager.V1.Replication.Types.UserManaged.Types.Replica)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/2.0.0/Google.Cloud.SecretManager.V1.Replication.Types.UserManaged.Types.Replica)\n- [1.9.0](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/1.9.0/Google.Cloud.SecretManager.V1.Replication.Types.UserManaged.Types.Replica)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/1.8.0/Google.Cloud.SecretManager.V1.Replication.Types.UserManaged.Types.Replica)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/1.7.0/Google.Cloud.SecretManager.V1.Replication.Types.UserManaged.Types.Replica)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/1.6.0/Google.Cloud.SecretManager.V1.Replication.Types.UserManaged.Types.Replica)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/1.5.0/Google.Cloud.SecretManager.V1.Replication.Types.UserManaged.Types.Replica)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/1.4.0/Google.Cloud.SecretManager.V1.Replication.Types.UserManaged.Types.Replica)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/1.3.0/Google.Cloud.SecretManager.V1.Replication.Types.UserManaged.Types.Replica) \n\n public sealed class Replication.Types.UserManaged.Types.Replica : IMessage\u003cReplication.Types.UserManaged.Types.Replica\u003e, IEquatable\u003cReplication.Types.UserManaged.Types.Replica\u003e, IDeepCloneable\u003cReplication.Types.UserManaged.Types.Replica\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Secret Manager v1 API class Replication.Types.UserManaged.Types.Replica.\n\nRepresents a Replica for this\n\\[Secret\\]\\[google.cloud.secretmanager.v1.Secret\\]. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Replication.Types.UserManaged.Types.Replica \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Replication](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.Replication)[Types](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.Replication.Types)[UserManaged](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.Replication.Types.UserManaged)[Types](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.Replication.Types.UserManaged.Types)[Replica](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.Replication.Types.UserManaged.Types.Replica), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Replication](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.Replication)[Types](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.Replication.Types)[UserManaged](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.Replication.Types.UserManaged)[Types](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.Replication.Types.UserManaged.Types)[Replica](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.Replication.Types.UserManaged.Types.Replica), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Replication](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.Replication)[Types](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.Replication.Types)[UserManaged](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.Replication.Types.UserManaged)[Types](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.Replication.Types.UserManaged.Types)[Replica](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.Replication.Types.UserManaged.Types.Replica), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.SecretManager.V1](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.SecretManager.V1.dll\n\nConstructors\n------------\n\n### Replica()\n\n public Replica()\n\n### Replica(Replica)\n\n public Replica(Replication.Types.UserManaged.Types.Replica other)\n\nProperties\n----------\n\n### CustomerManagedEncryption\n\n public CustomerManagedEncryption CustomerManagedEncryption { get; set; }\n\nOptional. The customer-managed encryption configuration of the\n\\[User-Managed Replica\\]\\[Replication.UserManaged.Replica\\]. If no\nconfiguration is provided, Google-managed default encryption is used.\n\nUpdates to the \\[Secret\\]\\[google.cloud.secretmanager.v1.Secret\\]\nencryption configuration only apply to\n\\[SecretVersions\\]\\[google.cloud.secretmanager.v1.SecretVersion\\] added\nafterwards. They do not apply retroactively to existing\n\\[SecretVersions\\]\\[google.cloud.secretmanager.v1.SecretVersion\\].\n\n### Location\n\n public string Location { get; set; }\n\nThe canonical IDs of the location to replicate data.\nFor example: `\"us-east1\"`."]]