# Migrate for Compute Engine V1 API - Class Google::Cloud::VMMigration::V1::UpgradeStatus (v2.9.0)

2.9.0 (latest) 2.8.0 2.7.0 2.6.0 2.5.1 2.4.0 2.3.0 2.2.0 2.1.1 2.0.0 1.3.0 1.2.0 1.1.0 1.0.2 0.9.0 0.8.2 0.7.0 0.6.1 0.5.0 0.4.0 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Migrate for Compute Engine V1 API class Google::Cloud::VMMigration::V1::UpgradeStatus.

UpgradeStatus contains information about upgradeAppliance operation.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #error

    def error() -> ::Google::Rpc::Status

**Returns**

- ([::Google::Rpc::Status](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Rpc-Status)) --- Output only. Provides details on the state of the upgrade operation in case of an error.

### #previous_version

    def previous_version() -> ::String

**Returns**

- (::String) --- The version from which we upgraded.

### #previous_version=

    def previous_version=(value) -> ::String

**Parameter**

- **value** (::String) --- The version from which we upgraded.
**Returns**

- (::String) --- The version from which we upgraded.

### #start_time

    def start_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Protobuf-Timestamp)) --- The time the operation was started.

### #start_time=

    def start_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Protobuf-Timestamp)) --- The time the operation was started.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Protobuf-Timestamp)) --- The time the operation was started.

### #state

    def state() -> ::Google::Cloud::VMMigration::V1::UpgradeStatus::State

**Returns**

- ([::Google::Cloud::VMMigration::V1::UpgradeStatus::State](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-UpgradeStatus-State)) --- The state of the upgradeAppliance operation.

### #state=

    def state=(value) -> ::Google::Cloud::VMMigration::V1::UpgradeStatus::State

**Parameter**

- **value** ([::Google::Cloud::VMMigration::V1::UpgradeStatus::State](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-UpgradeStatus-State)) --- The state of the upgradeAppliance operation.
**Returns**

- ([::Google::Cloud::VMMigration::V1::UpgradeStatus::State](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-UpgradeStatus-State)) --- The state of the upgradeAppliance operation.

### #version

    def version() -> ::String

**Returns**

- (::String) --- The version to upgrade to.

### #version=

    def version=(value) -> ::String

**Parameter**

- **value** (::String) --- The version to upgrade to.
**Returns**

- (::String) --- The version to upgrade to.