Google Cloud Filestore V1 Client - Class Replication (2.2.0)

Reference documentation and code samples for the Google Cloud Filestore V1 Client class Replication.

Replication specifications.

Generated from protobuf message google.cloud.filestore.v1.Replication

Namespace

Google \ Cloud \ Filestore \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ role int

Optional. The replication role.

↳ replicas array<ReplicaConfig>

Optional. Replication configuration for the replica instance associated with this instance. Only a single replica is supported.

getRole

Optional. The replication role.

Returns
Type Description
int Enum of type Role.

setRole

Optional. The replication role.

Parameter
Name Description
var int

Enum of type Role.

Returns
Type Description
$this

getReplicas

Optional. Replication configuration for the replica instance associated with this instance. Only a single replica is supported.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setReplicas

Optional. Replication configuration for the replica instance associated with this instance. Only a single replica is supported.

Parameter
Name Description
var array<ReplicaConfig>
Returns
Type Description
$this