Reference documentation and code samples for the Google Cloud Filestore V1 Client class ReplicaConfig.
Replica configuration for the instance.
Generated from protobuf message google.cloud.filestore.v1.ReplicaConfig
Namespace
Google \ Cloud \ Filestore \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ state |
int
Output only. The replica state. |
↳ state_reasons |
array
Output only. Additional information about the replication state, if available. |
↳ peer_instance |
string
Optional. The peer instance. |
↳ last_active_sync_time |
Google\Protobuf\Timestamp
Output only. The timestamp of the latest replication snapshot taken on the active instance and is already replicated safely. |
getState
Output only. The replica state.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type State. |
setState
Output only. The replica state.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type State. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getStateReasons
Output only. Additional information about the replication state, if available.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setStateReasons
Output only. Additional information about the replication state, if available.
| Parameter | |
|---|---|
| Name | Description |
var |
int[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getPeerInstance
Optional. The peer instance.
| Returns | |
|---|---|
| Type | Description |
string |
|
setPeerInstance
Optional. The peer instance.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getLastActiveSyncTime
Output only. The timestamp of the latest replication snapshot taken on the active instance and is already replicated safely.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasLastActiveSyncTime
clearLastActiveSyncTime
setLastActiveSyncTime
Output only. The timestamp of the latest replication snapshot taken on the active instance and is already replicated safely.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|