Google Cloud Filestore V1 Client - Class ReplicaConfig (2.1.0)

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 \ V1

Methods

__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

setState

Output only. The replica state.

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getStateReasons

Output only. Additional information about the replication state, if available.

Returns
Type
Description

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

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
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: