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 \ V1Methods
__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 |
↳ peer_instance |
string
Optional. The resource name of the peer instance to promote, in the format |
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.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |