public sealed class PromoteReplicaRequest : IMessage<PromoteReplicaRequest>, IEquatable<PromoteReplicaRequest>, IDeepCloneable<PromoteReplicaRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Filestore v1 API class PromoteReplicaRequest.
PromoteReplicaRequest promotes a Filestore standby instance (replica).
Optional. The resource name of the peer instance to promote, in the format
projects/{project_id}/locations/{location_id}/instances/{instance_id}.
The peer instance is required if the operation is called on an active
instance.
[[["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 \u003ccode\u003ePromoteReplicaRequest\u003c/code\u003e class is used to promote a Filestore standby instance (replica) within the Google Cloud Filestore v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThis 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, making it versatile for use within different contexts.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePromoteReplicaRequest\u003c/code\u003e class includes properties such as \u003ccode\u003eInstanceName\u003c/code\u003e, \u003ccode\u003eName\u003c/code\u003e, \u003ccode\u003ePeerInstance\u003c/code\u003e, and \u003ccode\u003ePeerInstanceAsInstanceName\u003c/code\u003e, to manage the details of the instance being promoted and its peer instance.\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple versions of this class, ranging from version 1.0.0 to the latest version 2.7.0, which are accessible via specific links to the documentation.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePromoteReplicaRequest\u003c/code\u003e class has two constructors, a default one, and another one that takes another \u003ccode\u003ePromoteReplicaRequest\u003c/code\u003e as an argument.\u003c/p\u003e\n"]]],[],null,["# Cloud Filestore v1 API - Class PromoteReplicaRequest (2.7.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.7.0 (latest)](/dotnet/docs/reference/Google.Cloud.Filestore.V1/latest/Google.Cloud.Filestore.V1.PromoteReplicaRequest)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Filestore.V1/2.6.0/Google.Cloud.Filestore.V1.PromoteReplicaRequest)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Filestore.V1/2.5.0/Google.Cloud.Filestore.V1.PromoteReplicaRequest)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Filestore.V1/2.4.0/Google.Cloud.Filestore.V1.PromoteReplicaRequest)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Filestore.V1/2.3.0/Google.Cloud.Filestore.V1.PromoteReplicaRequest)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Filestore.V1/2.2.0/Google.Cloud.Filestore.V1.PromoteReplicaRequest)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Filestore.V1/2.1.0/Google.Cloud.Filestore.V1.PromoteReplicaRequest)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Filestore.V1/2.0.0/Google.Cloud.Filestore.V1.PromoteReplicaRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Filestore.V1/1.2.0/Google.Cloud.Filestore.V1.PromoteReplicaRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Filestore.V1/1.1.0/Google.Cloud.Filestore.V1.PromoteReplicaRequest)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Filestore.V1/1.0.0/Google.Cloud.Filestore.V1.PromoteReplicaRequest) \n\n public sealed class PromoteReplicaRequest : IMessage\u003cPromoteReplicaRequest\u003e, IEquatable\u003cPromoteReplicaRequest\u003e, IDeepCloneable\u003cPromoteReplicaRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Filestore v1 API class PromoteReplicaRequest.\n\nPromoteReplicaRequest promotes a Filestore standby instance (replica). \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e PromoteReplicaRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[PromoteReplicaRequest](/dotnet/docs/reference/Google.Cloud.Filestore.V1/latest/Google.Cloud.Filestore.V1.PromoteReplicaRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[PromoteReplicaRequest](/dotnet/docs/reference/Google.Cloud.Filestore.V1/latest/Google.Cloud.Filestore.V1.PromoteReplicaRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[PromoteReplicaRequest](/dotnet/docs/reference/Google.Cloud.Filestore.V1/latest/Google.Cloud.Filestore.V1.PromoteReplicaRequest), [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.Filestore.V1](/dotnet/docs/reference/Google.Cloud.Filestore.V1/latest/Google.Cloud.Filestore.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Filestore.V1.dll\n\nConstructors\n------------\n\n### PromoteReplicaRequest()\n\n public PromoteReplicaRequest()\n\n### PromoteReplicaRequest(PromoteReplicaRequest)\n\n public PromoteReplicaRequest(PromoteReplicaRequest other)\n\nProperties\n----------\n\n### InstanceName\n\n public InstanceName InstanceName { get; set; }\n\n[InstanceName](/dotnet/docs/reference/Google.Cloud.Filestore.V1/latest/Google.Cloud.Filestore.V1.InstanceName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.Filestore.V1/latest/Google.Cloud.Filestore.V1.PromoteReplicaRequest#Google_Cloud_Filestore_V1_PromoteReplicaRequest_Name) resource name property.\n\n### Name\n\n public string Name { get; set; }\n\nRequired. The resource name of the instance, in the format\n`projects/{project_id}/locations/{location_id}/instances/{instance_id}`.\n\n### PeerInstance\n\n public string PeerInstance { get; set; }\n\nOptional. The resource name of the peer instance to promote, in the format\n`projects/{project_id}/locations/{location_id}/instances/{instance_id}`.\nThe peer instance is required if the operation is called on an active\ninstance.\n\n### PeerInstanceAsInstanceName\n\n public InstanceName PeerInstanceAsInstanceName { get; set; }\n\n[InstanceName](/dotnet/docs/reference/Google.Cloud.Filestore.V1/latest/Google.Cloud.Filestore.V1.InstanceName)-typed view over the [PeerInstance](/dotnet/docs/reference/Google.Cloud.Filestore.V1/latest/Google.Cloud.Filestore.V1.PromoteReplicaRequest#Google_Cloud_Filestore_V1_PromoteReplicaRequest_PeerInstance) resource name property."]]