Reference documentation and code samples for the Filestore V1 API class Google::Cloud::Filestore::V1::PromoteReplicaRequest.
PromoteReplicaRequest promotes a Filestore standby instance (replica).
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#name
defname()->::String
Returns
(::String) — Required. The resource name of the instance, in the format
projects/{project_id}/locations/{location_id}/instances/{instance_id}.
#name=
defname=(value)->::String
Parameter
value (::String) — Required. The resource name of the instance, in the format
projects/{project_id}/locations/{location_id}/instances/{instance_id}.
Returns
(::String) — Required. The resource name of the instance, in the format
projects/{project_id}/locations/{location_id}/instances/{instance_id}.
#peer_instance
defpeer_instance()->::String
Returns
(::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.
#peer_instance=
defpeer_instance=(value)->::String
Parameter
value (::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.
Returns
(::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.
[[["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-09 UTC."],[],[],null,["# Filestore V1 API - Class Google::Cloud::Filestore::V1::PromoteReplicaRequest (v2.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.0 (latest)](/ruby/docs/reference/google-cloud-filestore-v1/latest/Google-Cloud-Filestore-V1-PromoteReplicaRequest)\n- [2.1.1](/ruby/docs/reference/google-cloud-filestore-v1/2.1.1/Google-Cloud-Filestore-V1-PromoteReplicaRequest)\n- [2.0.0](/ruby/docs/reference/google-cloud-filestore-v1/2.0.0/Google-Cloud-Filestore-V1-PromoteReplicaRequest)\n- [1.2.0](/ruby/docs/reference/google-cloud-filestore-v1/1.2.0/Google-Cloud-Filestore-V1-PromoteReplicaRequest)\n- [1.1.0](/ruby/docs/reference/google-cloud-filestore-v1/1.1.0/Google-Cloud-Filestore-V1-PromoteReplicaRequest)\n- [1.0.1](/ruby/docs/reference/google-cloud-filestore-v1/1.0.1/Google-Cloud-Filestore-V1-PromoteReplicaRequest)\n- [0.9.0](/ruby/docs/reference/google-cloud-filestore-v1/0.9.0/Google-Cloud-Filestore-V1-PromoteReplicaRequest)\n- [0.8.2](/ruby/docs/reference/google-cloud-filestore-v1/0.8.2/Google-Cloud-Filestore-V1-PromoteReplicaRequest)\n- [0.7.0](/ruby/docs/reference/google-cloud-filestore-v1/0.7.0/Google-Cloud-Filestore-V1-PromoteReplicaRequest)\n- [0.6.0](/ruby/docs/reference/google-cloud-filestore-v1/0.6.0/Google-Cloud-Filestore-V1-PromoteReplicaRequest)\n- [0.5.0](/ruby/docs/reference/google-cloud-filestore-v1/0.5.0/Google-Cloud-Filestore-V1-PromoteReplicaRequest)\n- [0.4.1](/ruby/docs/reference/google-cloud-filestore-v1/0.4.1/Google-Cloud-Filestore-V1-PromoteReplicaRequest)\n- [0.3.0](/ruby/docs/reference/google-cloud-filestore-v1/0.3.0/Google-Cloud-Filestore-V1-PromoteReplicaRequest)\n- [0.2.0](/ruby/docs/reference/google-cloud-filestore-v1/0.2.0/Google-Cloud-Filestore-V1-PromoteReplicaRequest)\n- [0.1.3](/ruby/docs/reference/google-cloud-filestore-v1/0.1.3/Google-Cloud-Filestore-V1-PromoteReplicaRequest) \nReference documentation and code samples for the Filestore V1 API class Google::Cloud::Filestore::V1::PromoteReplicaRequest.\n\nPromoteReplicaRequest promotes a Filestore standby instance (replica). \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### #name\n\n def name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The resource name of the instance, in the format `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.\n\n### #name=\n\n def name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The resource name of the instance, in the format `projects/{project_id}/locations/{location_id}/instances/{instance_id}`. \n**Returns**\n\n- (::String) --- Required. The resource name of the instance, in the format `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.\n\n### #peer_instance\n\n def peer_instance() -\u003e ::String\n\n**Returns**\n\n- (::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.\n\n### #peer_instance=\n\n def peer_instance=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::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. \n**Returns**\n\n- (::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."]]