Google Cloud Vm Migration V1 Client - Class ReplicationCycle (0.4.2)

Reference documentation and code samples for the Google Cloud Vm Migration V1 Client class ReplicationCycle.

ReplicationCycle contains information about the current replication cycle status.

Generated from protobuf message google.cloud.vmmigration.v1.ReplicationCycle

Namespace

Google \ Cloud \ VMMigration \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

The identifier of the ReplicationCycle.

↳ cycle_number int

The cycle's ordinal number.

↳ start_time Google\Protobuf\Timestamp

The time the replication cycle has started.

↳ end_time Google\Protobuf\Timestamp

The time the replication cycle has ended.

↳ total_pause_duration Google\Protobuf\Duration

The accumulated duration the replication cycle was paused.

↳ progress_percent int

The current progress in percentage of this cycle. Was replaced by 'steps' field, which breaks down the cycle progression more accurately.

↳ steps array<Google\Cloud\VMMigration\V1\CycleStep>

The cycle's steps list representing its progress.

↳ state int

State of the ReplicationCycle.

↳ error Google\Rpc\Status

Provides details on the state of the cycle in case of an error.

getName

The identifier of the ReplicationCycle.

Returns
TypeDescription
string

setName

The identifier of the ReplicationCycle.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCycleNumber

The cycle's ordinal number.

Returns
TypeDescription
int

setCycleNumber

The cycle's ordinal number.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getStartTime

The time the replication cycle has started.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasStartTime

clearStartTime

setStartTime

The time the replication cycle has started.

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

getEndTime

The time the replication cycle has ended.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasEndTime

clearEndTime

setEndTime

The time the replication cycle has ended.

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

getTotalPauseDuration

The accumulated duration the replication cycle was paused.

Returns
TypeDescription
Google\Protobuf\Duration|null

hasTotalPauseDuration

clearTotalPauseDuration

setTotalPauseDuration

The accumulated duration the replication cycle was paused.

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

getProgressPercent

The current progress in percentage of this cycle.

Was replaced by 'steps' field, which breaks down the cycle progression more accurately.

Returns
TypeDescription
int

setProgressPercent

The current progress in percentage of this cycle.

Was replaced by 'steps' field, which breaks down the cycle progression more accurately.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getSteps

The cycle's steps list representing its progress.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setSteps

The cycle's steps list representing its progress.

Parameter
NameDescription
var array<Google\Cloud\VMMigration\V1\CycleStep>
Returns
TypeDescription
$this

getState

State of the ReplicationCycle.

Returns
TypeDescription
int

setState

State of the ReplicationCycle.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getError

Provides details on the state of the cycle in case of an error.

Returns
TypeDescription
Google\Rpc\Status|null

hasError

clearError

setError

Provides details on the state of the cycle in case of an error.

Parameter
NameDescription
var Google\Rpc\Status
Returns
TypeDescription
$this