Class: Google::Apis::VmmigrationV1alpha1::ReplicatingStep

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

ReplicatingStep contains specific step details.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ReplicatingStep

Returns a new instance of ReplicatingStep.



2361
2362
2363
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2361

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

Instance Attribute Details

#last_thirty_minutes_average_bytes_per_secondFixnum

The source disks replication rate for the last 30 minutes in bytes per second. Corresponds to the JSON property lastThirtyMinutesAverageBytesPerSecond

Returns:

  • (Fixnum)


2344
2345
2346
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2344

def last_thirty_minutes_average_bytes_per_second
  @last_thirty_minutes_average_bytes_per_second
end

#last_two_minutes_average_bytes_per_secondFixnum

The source disks replication rate for the last 2 minutes in bytes per second. Corresponds to the JSON property lastTwoMinutesAverageBytesPerSecond

Returns:

  • (Fixnum)


2349
2350
2351
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2349

def last_two_minutes_average_bytes_per_second
  @last_two_minutes_average_bytes_per_second
end

#replicated_bytesFixnum

Replicated bytes in the step. Corresponds to the JSON property replicatedBytes

Returns:

  • (Fixnum)


2354
2355
2356
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2354

def replicated_bytes
  @replicated_bytes
end

#total_bytesFixnum

Total bytes to be handled in the step. Corresponds to the JSON property totalBytes

Returns:

  • (Fixnum)


2359
2360
2361
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2359

def total_bytes
  @total_bytes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2366
2367
2368
2369
2370
2371
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2366

def update!(**args)
  @last_thirty_minutes_average_bytes_per_second = args[:last_thirty_minutes_average_bytes_per_second] if args.key?(:last_thirty_minutes_average_bytes_per_second)
  @last_two_minutes_average_bytes_per_second = args[:last_two_minutes_average_bytes_per_second] if args.key?(:last_two_minutes_average_bytes_per_second)
  @replicated_bytes = args[:replicated_bytes] if args.key?(:replicated_bytes)
  @total_bytes = args[:total_bytes] if args.key?(:total_bytes)
end