Class: Google::Apis::VmmigrationV1::ReplicationCycle

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/vmmigration_v1/classes.rb,
lib/google/apis/vmmigration_v1/representations.rb,
lib/google/apis/vmmigration_v1/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.



2252
2253
2254
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2252

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

Instance Attribute Details

#cycle_numberFixnum

The cycle's ordinal number. Corresponds to the JSON property cycleNumber

Returns:

  • (Fixnum)


2204
2205
2206
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2204

def cycle_number
  @cycle_number
end

#end_timeString

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

Returns:

  • (String)


2209
2210
2211
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2209

def end_time
  @end_time
end

#errorGoogle::Apis::VmmigrationV1::Status

The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide. Corresponds to the JSON property error



2219
2220
2221
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2219

def error
  @error
end

#nameString

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

Returns:

  • (String)


2224
2225
2226
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2224

def name
  @name
end

#progress_percentFixnum

The current progress in percentage of this cycle. Was replaced by 'steps' field, which breaks down the cycle progression more accurately. Corresponds to the JSON property progressPercent

Returns:

  • (Fixnum)


2230
2231
2232
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2230

def progress_percent
  @progress_percent
end

#start_timeString

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

Returns:

  • (String)


2235
2236
2237
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2235

def start_time
  @start_time
end

#stateString

State of the ReplicationCycle. Corresponds to the JSON property state

Returns:

  • (String)


2240
2241
2242
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2240

def state
  @state
end

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

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



2245
2246
2247
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2245

def steps
  @steps
end

#total_pause_durationString

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

Returns:

  • (String)


2250
2251
2252
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2250

def total_pause_duration
  @total_pause_duration
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2257

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