Google Cloud Vm Migration V1 Client - Class DiskMigrationJob (1.1.0)

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

Describes the disk which will be migrated from the source environment.

The source disk has to be unattached.

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

Namespace

Google \ Cloud \ VMMigration \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ aws_source_disk_details AwsSourceDiskDetails

Details of the unattached AWS source disk.

↳ name string

Output only. Identifier. The identifier of the DiskMigrationJob.

↳ target_details DiskMigrationJobTargetDetails

Required. Details of the target Disk in Compute Engine.

↳ create_time Google\Protobuf\Timestamp

Output only. The time the DiskMigrationJob resource was created.

↳ update_time Google\Protobuf\Timestamp

Output only. The last time the DiskMigrationJob resource was updated.

↳ state int

Output only. State of the DiskMigrationJob.

↳ errors array<Google\Rpc\Status>

Output only. Provides details on the errors that led to the disk migration job's state in case of an error.

↳ steps array<DiskMigrationStep>

Output only. The disk migration steps list representing its progress.

getAwsSourceDiskDetails

Details of the unattached AWS source disk.

Returns
Type Description
AwsSourceDiskDetails|null

hasAwsSourceDiskDetails

setAwsSourceDiskDetails

Details of the unattached AWS source disk.

Parameter
Name Description
var AwsSourceDiskDetails
Returns
Type Description
$this

getName

Output only. Identifier. The identifier of the DiskMigrationJob.

Returns
Type Description
string

setName

Output only. Identifier. The identifier of the DiskMigrationJob.

Parameter
Name Description
var string
Returns
Type Description
$this

getTargetDetails

Required. Details of the target Disk in Compute Engine.

Returns
Type Description
DiskMigrationJobTargetDetails|null

hasTargetDetails

clearTargetDetails

setTargetDetails

Required. Details of the target Disk in Compute Engine.

Parameter
Name Description
var DiskMigrationJobTargetDetails
Returns
Type Description
$this

getCreateTime

Output only. The time the DiskMigrationJob resource was created.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The time the DiskMigrationJob resource was created.

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

getUpdateTime

Output only. The last time the DiskMigrationJob resource was updated.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. The last time the DiskMigrationJob resource was updated.

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

getState

Output only. State of the DiskMigrationJob.

Returns
Type Description
int Enum of type State.

setState

Output only. State of the DiskMigrationJob.

Parameter
Name Description
var int

Enum of type State.

Returns
Type Description
$this

getErrors

Output only. Provides details on the errors that led to the disk migration job's state in case of an error.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setErrors

Output only. Provides details on the errors that led to the disk migration job's state in case of an error.

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

getSteps

Output only. The disk migration steps list representing its progress.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setSteps

Output only. The disk migration steps list representing its progress.

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

getSourceDiskDetails

Returns
Type Description
string