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

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
NameDescription
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
TypeDescription
string

setVersion

The version to upgrade to.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getState

The state of the upgradeAppliance operation.

Returns
TypeDescription
int

setState

The state of the upgradeAppliance operation.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getError

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

Returns
TypeDescription
Google\Rpc\Status|null

hasError

clearError

setError

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

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

getStartTime

The time the operation was started.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasStartTime

clearStartTime

setStartTime

The time the operation was started.

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

getPreviousVersion

The version from which we upgraded.

Returns
TypeDescription
string

setPreviousVersion

The version from which we upgraded.

Parameter
NameDescription
var string
Returns
TypeDescription
$this