Google Cloud Vm Migration V1 Client - Class UpgradeStatus (1.0.0)

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

UpgradeStatus contains information about upgradeAppliance operation.

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

Namespace

Google \ Cloud \ VMMigration \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ version string

The version to upgrade to.

↳ state int

The state of the upgradeAppliance operation.

↳ error Google\Rpc\Status

Provides details on the state of the upgrade operation in case of an error.

↳ start_time Google\Protobuf\Timestamp

The time the operation was started.

↳ previous_version string

The version from which we upgraded.

getVersion

The version to upgrade to.

Returns
Type Description
string

setVersion

The version to upgrade to.

Parameter
Name Description
var string
Returns
Type Description
$this

getState

The state of the upgradeAppliance operation.

Returns
Type Description
int

setState

The state of the upgradeAppliance operation.

Parameter
Name Description
var int
Returns
Type Description
$this

getError

Provides details on the state of the upgrade operation in case of an error.

Returns
Type Description
Google\Rpc\Status|null

hasError

clearError

setError

Provides details on the state of the upgrade operation in case of an error.

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

getStartTime

The time the operation was started.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasStartTime

clearStartTime

setStartTime

The time the operation was started.

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

getPreviousVersion

The version from which we upgraded.

Returns
Type Description
string

setPreviousVersion

The version from which we upgraded.

Parameter
Name Description
var string
Returns
Type Description
$this