Class: Google::Apis::VmmigrationV1alpha1::ReplicationCycle

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/vmmigration_v1alpha1/classes.rb,
lib/google/apis/vmmigration_v1alpha1/representations.rb,
lib/google/apis/vmmigration_v1alpha1/representations.rb

Overview

ReplicationCycle contains information about the current replication cycle status.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ReplicationCycle

Returns a new instance of ReplicationCycle.



1961
1962
1963
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1961

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#end_timeString

The time the replication cycle has ended. Corresponds to the JSON property endTime

Returns:

  • (String)


1929
1930
1931
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1929

def end_time
  @end_time
end

#nameString

The identifier of the ReplicationCycle. Corresponds to the JSON property name

Returns:

  • (String)


1934
1935
1936
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1934

def name
  @name
end

#progressFixnum

The current progress in percentage of this cycle. Corresponds to the JSON property progress

Returns:

  • (Fixnum)


1939
1940
1941
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1939

def progress
  @progress
end

#progress_percentFixnum

The current progress in percentage of this cycle. Corresponds to the JSON property progressPercent

Returns:

  • (Fixnum)


1944
1945
1946
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1944

def progress_percent
  @progress_percent
end

#start_timeString

The time the replication cycle has started. Corresponds to the JSON property startTime

Returns:

  • (String)


1949
1950
1951
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1949

def start_time
  @start_time
end

#stepsArray<Google::Apis::VmmigrationV1alpha1::CycleStep>

The cycle's steps list representing its progress. Corresponds to the JSON property steps



1954
1955
1956
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1954

def steps
  @steps
end

#total_pause_durationString

The accumulated duration the replication cycle was paused. Corresponds to the JSON property totalPauseDuration

Returns:

  • (String)


1959
1960
1961
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1959

def total_pause_duration
  @total_pause_duration
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1966
1967
1968
1969
1970
1971
1972
1973
1974
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 1966

def update!(**args)
  @end_time = args[:end_time] if args.key?(:end_time)
  @name = args[:name] if args.key?(:name)
  @progress = args[:progress] if args.key?(:progress)
  @progress_percent = args[:progress_percent] if args.key?(:progress_percent)
  @start_time = args[:start_time] if args.key?(:start_time)
  @steps = args[:steps] if args.key?(:steps)
  @total_pause_duration = args[:total_pause_duration] if args.key?(:total_pause_duration)
end