# Migrate for Compute Engine V1 API - Class Google::Cloud::VMMigration::V1::ReplicationCycle (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::ReplicationCycle.

ReplicationCycle contains information about the current replication cycle
status.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #cycle_number

    def cycle_number() -> ::Integer

**Returns**

- (::Integer) --- The cycle's ordinal number.

### #cycle_number=

    def cycle_number=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- The cycle's ordinal number.
**Returns**

- (::Integer) --- The cycle's ordinal number.

### #end_time

    def end_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 replication cycle has ended.

### #end_time=

    def end_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 replication cycle has ended.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Protobuf-Timestamp)) --- The time the replication cycle has ended.

### #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 cycle in case of an error.

### #name

    def name() -> ::String

**Returns**

- (::String) --- The identifier of the ReplicationCycle.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- The identifier of the ReplicationCycle.
**Returns**

- (::String) --- The identifier of the ReplicationCycle.

### #progress_percent

    def progress_percent() -> ::Integer

**Returns**

- (::Integer) --- The current progress in percentage of this cycle. Was replaced by 'steps' field, which breaks down the cycle progression more accurately.

### #progress_percent=

    def progress_percent=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- The current progress in percentage of this cycle. Was replaced by 'steps' field, which breaks down the cycle progression more accurately.
**Returns**

- (::Integer) --- The current progress in percentage of this cycle. Was replaced by 'steps' field, which breaks down the cycle progression more accurately.

### #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 replication cycle has 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 replication cycle has 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 replication cycle has started.

### #state

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

**Returns**

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

### #state=

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

**Parameter**

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

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

### #steps

    def steps() -> ::Array<::Google::Cloud::VMMigration::V1::CycleStep>

**Returns**

- (::Array\<[::Google::Cloud::VMMigration::V1::CycleStep](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-CycleStep)\>) --- The cycle's steps list representing its progress.

### #steps=

    def steps=(value) -> ::Array<::Google::Cloud::VMMigration::V1::CycleStep>

**Parameter**

- **value** (::Array\<[::Google::Cloud::VMMigration::V1::CycleStep](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-CycleStep)\>) --- The cycle's steps list representing its progress.
**Returns**

- (::Array\<[::Google::Cloud::VMMigration::V1::CycleStep](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-CycleStep)\>) --- The cycle's steps list representing its progress.

### #total_pause_duration

    def total_pause_duration() -> ::Google::Protobuf::Duration

**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Protobuf-Duration)) --- The accumulated duration the replication cycle was paused.

### #total_pause_duration=

    def total_pause_duration=(value) -> ::Google::Protobuf::Duration

**Parameter**

- **value** ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Protobuf-Duration)) --- The accumulated duration the replication cycle was paused.
**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Protobuf-Duration)) --- The accumulated duration the replication cycle was paused.

### #warnings

    def warnings() -> ::Array<::Google::Cloud::VMMigration::V1::MigrationWarning>

**Returns**

- (::Array\<[::Google::Cloud::VMMigration::V1::MigrationWarning](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-MigrationWarning)\>) --- Output only. Warnings that occurred during the cycle.