Reference documentation and code samples for the Google Cloud Filestore V1 Client class PromoteReplicaRequest.
PromoteReplicaRequest promotes a Filestore standby instance (replica).
Generated from protobuf message google.cloud.filestore.v1.PromoteReplicaRequest
Namespace
Google \ Cloud \ Filestore \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. The resource name of the instance, in the format projects/{project_id}/locations/{location_id}/instances/{instance_id}.
↳ peer_instance
string
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.
getName
Required. The resource name of the instance, in the format
projects/{project_id}/locations/{location_id}/instances/{instance_id}.
Returns
Type
Description
string
setName
Required. The resource name of the instance, in the format
projects/{project_id}/locations/{location_id}/instances/{instance_id}.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getPeerInstance
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.
Returns
Type
Description
string
setPeerInstance
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"]],[["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-04 UTC."],[],[],null,["# Google Cloud Filestore V1 Client - Class PromoteReplicaRequest (2.1.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.1 (latest)](/php/docs/reference/cloud-filestore/latest/V1.PromoteReplicaRequest)\n- [2.1.0](/php/docs/reference/cloud-filestore/2.1.0/V1.PromoteReplicaRequest)\n- [2.0.4](/php/docs/reference/cloud-filestore/2.0.4/V1.PromoteReplicaRequest)\n- [1.5.7](/php/docs/reference/cloud-filestore/1.5.7/V1.PromoteReplicaRequest)\n- [1.4.0](/php/docs/reference/cloud-filestore/1.4.0/V1.PromoteReplicaRequest)\n- [1.3.2](/php/docs/reference/cloud-filestore/1.3.2/V1.PromoteReplicaRequest)\n- [1.2.1](/php/docs/reference/cloud-filestore/1.2.1/V1.PromoteReplicaRequest)\n- [1.1.2](/php/docs/reference/cloud-filestore/1.1.2/V1.PromoteReplicaRequest)\n- [1.0.3](/php/docs/reference/cloud-filestore/1.0.3/V1.PromoteReplicaRequest) \nReference documentation and code samples for the Google Cloud Filestore V1 Client class PromoteReplicaRequest.\n\nPromoteReplicaRequest promotes a Filestore standby instance (replica).\n\nGenerated from protobuf message `google.cloud.filestore.v1.PromoteReplicaRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Filestore \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nRequired. The resource name of the instance, in the format\n`projects/{project_id}/locations/{location_id}/instances/{instance_id}`.\n\n### setName\n\nRequired. The resource name of the instance, in the format\n`projects/{project_id}/locations/{location_id}/instances/{instance_id}`.\n\n### getPeerInstance\n\nOptional. The resource name of the peer instance to promote, in the format\n`projects/{project_id}/locations/{location_id}/instances/{instance_id}`.\n\nThe peer instance is required if the operation is called on an active\ninstance.\n\n### setPeerInstance\n\nOptional. The resource name of the peer instance to promote, in the format\n`projects/{project_id}/locations/{location_id}/instances/{instance_id}`.\n\nThe peer instance is required if the operation is called on an active\ninstance."]]