Google Cloud Net App V1 Client - Class Replication (0.1.1)

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

Replication is a nested resource under Volume, that describes a cross-region replication relationship between 2 volumes in different regions.

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

Namespace

Google \ Cloud \ NetApp \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Output only. The resource name of the Replication. Format: projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}.

↳ state int

Output only. State of the replication.

↳ state_details string

Output only. State details of the replication.

↳ role int

Output only. Indicates whether this points to source or destination.

↳ replication_schedule int

Required. Indicates the schedule for replication.

↳ mirror_state int

Output only. Indicates the state of mirroring.

↳ healthy bool

Output only. Condition of the relationship. Can be one of the following: - true: The replication relationship is healthy. It has not missed the most recent scheduled transfer. - false: The replication relationship is not healthy. It has missed the most recent scheduled transfer.

↳ create_time Google\Protobuf\Timestamp

Output only. Replication create time.

↳ destination_volume string

Output only. Full name of destination volume resource. Example : "projects/{project}/locations/{location}/volumes/{volume_id}"

↳ transfer_stats Google\Cloud\NetApp\V1\TransferStats

Output only. Replication transfer statistics.

↳ labels array|Google\Protobuf\Internal\MapField

Resource labels to represent user provided metadata.

↳ description string

A description about this replication relationship.

↳ destination_volume_parameters Google\Cloud\NetApp\V1\DestinationVolumeParameters

Required. Input only. Destination volume parameters

↳ source_volume string

Output only. Full name of source volume resource. Example : "projects/{project}/locations/{location}/volumes/{volume_id}"

getName

Output only. The resource name of the Replication.

Format: projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}.

Returns
TypeDescription
string

setName

Output only. The resource name of the Replication.

Format: projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getState

Output only. State of the replication.

Returns
TypeDescription
int

setState

Output only. State of the replication.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getStateDetails

Output only. State details of the replication.

Returns
TypeDescription
string

setStateDetails

Output only. State details of the replication.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getRole

Output only. Indicates whether this points to source or destination.

Returns
TypeDescription
int

setRole

Output only. Indicates whether this points to source or destination.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getReplicationSchedule

Required. Indicates the schedule for replication.

Returns
TypeDescription
int

setReplicationSchedule

Required. Indicates the schedule for replication.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getMirrorState

Output only. Indicates the state of mirroring.

Returns
TypeDescription
int

setMirrorState

Output only. Indicates the state of mirroring.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getHealthy

Output only. Condition of the relationship. Can be one of the following:

  • true: The replication relationship is healthy. It has not missed the most recent scheduled transfer.

  • false: The replication relationship is not healthy. It has missed the most recent scheduled transfer.

Returns
TypeDescription
bool

hasHealthy

clearHealthy

setHealthy

Output only. Condition of the relationship. Can be one of the following:

  • true: The replication relationship is healthy. It has not missed the most recent scheduled transfer.

  • false: The replication relationship is not healthy. It has missed the most recent scheduled transfer.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getCreateTime

Output only. Replication create time.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. Replication create time.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getDestinationVolume

Output only. Full name of destination volume resource.

Example : "projects/{project}/locations/{location}/volumes/{volume_id}"

Returns
TypeDescription
string

setDestinationVolume

Output only. Full name of destination volume resource.

Example : "projects/{project}/locations/{location}/volumes/{volume_id}"

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTransferStats

Output only. Replication transfer statistics.

Returns
TypeDescription
Google\Cloud\NetApp\V1\TransferStats|null

hasTransferStats

clearTransferStats

setTransferStats

Output only. Replication transfer statistics.

Parameter
NameDescription
var Google\Cloud\NetApp\V1\TransferStats
Returns
TypeDescription
$this

getLabels

Resource labels to represent user provided metadata.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setLabels

Resource labels to represent user provided metadata.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getDescription

A description about this replication relationship.

Returns
TypeDescription
string

hasDescription

clearDescription

setDescription

A description about this replication relationship.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDestinationVolumeParameters

Required. Input only. Destination volume parameters

Returns
TypeDescription
Google\Cloud\NetApp\V1\DestinationVolumeParameters|null

hasDestinationVolumeParameters

clearDestinationVolumeParameters

setDestinationVolumeParameters

Required. Input only. Destination volume parameters

Parameter
NameDescription
var Google\Cloud\NetApp\V1\DestinationVolumeParameters
Returns
TypeDescription
$this

getSourceVolume

Output only. Full name of source volume resource.

Example : "projects/{project}/locations/{location}/volumes/{volume_id}"

Returns
TypeDescription
string

setSourceVolume

Output only. Full name of source volume resource.

Example : "projects/{project}/locations/{location}/volumes/{volume_id}"

Parameter
NameDescription
var string
Returns
TypeDescription
$this