2.8.0 (latest) 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.2.0 1.1.0 1.0.0

    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).

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> PromoteReplicaRequest

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[PromoteReplicaRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Filestore.V1/latest/Google.Cloud.Filestore.V1.PromoteReplicaRequest.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[PromoteReplicaRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Filestore.V1/latest/Google.Cloud.Filestore.V1.PromoteReplicaRequest.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[PromoteReplicaRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Filestore.V1/latest/Google.Cloud.Filestore.V1.PromoteReplicaRequest.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Filestore.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Filestore.V1/latest/Google.Cloud.Filestore.V1.md.txt)

## Assembly

Google.Cloud.Filestore.V1.dll

## Constructors

### PromoteReplicaRequest()

    public PromoteReplicaRequest()

### PromoteReplicaRequest(PromoteReplicaRequest)

    public PromoteReplicaRequest(PromoteReplicaRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `PromoteReplicaRequest` |

## Properties

### InstanceName

    public InstanceName InstanceName { get; set; }

[InstanceName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Filestore.V1/latest/Google.Cloud.Filestore.V1.InstanceName.md.txt)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Filestore.V1/latest/Google.Cloud.Filestore.V1.PromoteReplicaRequest.md.txt#Google_Cloud_Filestore_V1_PromoteReplicaRequest_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `InstanceName` |   |

### Name

    public string Name { get; set; }

Required. The resource name of the instance, in the format
`projects/{project_id}/locations/{location_id}/instances/{instance_id}`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### PeerInstance

    public string PeerInstance { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### PeerInstanceAsInstanceName

    public InstanceName PeerInstanceAsInstanceName { get; set; }

[InstanceName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Filestore.V1/latest/Google.Cloud.Filestore.V1.InstanceName.md.txt)-typed view over the [PeerInstance](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Filestore.V1/latest/Google.Cloud.Filestore.V1.PromoteReplicaRequest.md.txt#Google_Cloud_Filestore_V1_PromoteReplicaRequest_PeerInstance) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `InstanceName` |   |