Google Cloud Vm Migration V1 Client - Class CloneJob (1.0.0-RC1)

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

CloneJob describes the process of creating a clone of a MigratingVM to the requested target based on the latest successful uploaded snapshots.

While the migration cycles of a MigratingVm take place, it is possible to verify the uploaded VM can be started in the cloud, by creating a clone. The clone can be created without any downtime, and it is created using the latest snapshots which are already in the cloud. The cloneJob is only responsible for its work, not its products, which means once it is finished, it will never touch the instance it created. It will only delete it in case of the CloneJob being cancelled or upon failure to clone.

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

Namespace

Google \ Cloud \ VMMigration \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ compute_engine_target_details Google\Cloud\VMMigration\V1\ComputeEngineTargetDetails

Output only. Details of the target VM in Compute Engine.

↳ create_time Google\Protobuf\Timestamp

Output only. The time the clone job was created (as an API call, not when it was actually created in the target).

↳ end_time Google\Protobuf\Timestamp

Output only. The time the clone job was ended.

↳ name string

Output only. The name of the clone.

↳ state int

Output only. State of the clone job.

↳ state_time Google\Protobuf\Timestamp

Output only. The time the state was last updated.

↳ error Google\Rpc\Status

Output only. Provides details for the errors that led to the Clone Job's state.

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

Output only. The clone steps list representing its progress.

getComputeEngineTargetDetails

Output only. Details of the target VM in Compute Engine.

Returns
Type Description
Google\Cloud\VMMigration\V1\ComputeEngineTargetDetails|null

hasComputeEngineTargetDetails

setComputeEngineTargetDetails

Output only. Details of the target VM in Compute Engine.

Parameter
Name Description
var Google\Cloud\VMMigration\V1\ComputeEngineTargetDetails
Returns
Type Description
$this

getCreateTime

Output only. The time the clone job was created (as an API call, not when it was actually created in the target).

Returns
Type Description
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The time the clone job was created (as an API call, not when it was actually created in the target).

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getEndTime

Output only. The time the clone job was ended.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasEndTime

clearEndTime

setEndTime

Output only. The time the clone job was ended.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getName

Output only. The name of the clone.

Returns
Type Description
string

setName

Output only. The name of the clone.

Parameter
Name Description
var string
Returns
Type Description
$this

getState

Output only. State of the clone job.

Returns
Type Description
int

setState

Output only. State of the clone job.

Parameter
Name Description
var int
Returns
Type Description
$this

getStateTime

Output only. The time the state was last updated.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasStateTime

clearStateTime

setStateTime

Output only. The time the state was last updated.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getError

Output only. Provides details for the errors that led to the Clone Job's state.

Returns
Type Description
Google\Rpc\Status|null

hasError

clearError

setError

Output only. Provides details for the errors that led to the Clone Job's state.

Parameter
Name Description
var Google\Rpc\Status
Returns
Type Description
$this

getSteps

Output only. The clone steps list representing its progress.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setSteps

Output only. The clone steps list representing its progress.

Parameter
Name Description
var array<Google\Cloud\VMMigration\V1\CloneStep>
Returns
Type Description
$this

getTargetVmDetails

Returns
Type Description
string