Class: Google::Apis::ComputeAlpha::ReplicationDetails
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::ReplicationDetails
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb
Instance Attribute Summary collapse
-
#last_replication_time ⇒ String
The last sync time of the device pair.
-
#seconds_since_last_replication ⇒ Fixnum
Replication lag in seconds.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ReplicationDetails
constructor
A new instance of ReplicationDetails.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ReplicationDetails
Returns a new instance of ReplicationDetails.
42443 42444 42445 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 42443 def initialize(**args) update!(**args) end |
Instance Attribute Details
#last_replication_time ⇒ String
The last sync time of the device pair.
Corresponds to the JSON property lastReplicationTime
42433 42434 42435 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 42433 def last_replication_time @last_replication_time end |
#seconds_since_last_replication ⇒ Fixnum
Replication lag in seconds. This will only be populated if device is in
replicating state. Note that the value is calculated sometime during request
processing and at the instant the client receives the response, the current
replication_lag may have changed.
Corresponds to the JSON property secondsSinceLastReplication
42441 42442 42443 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 42441 def seconds_since_last_replication @seconds_since_last_replication end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
42448 42449 42450 42451 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 42448 def update!(**args) @last_replication_time = args[:last_replication_time] if args.key?(:last_replication_time) @seconds_since_last_replication = args[:seconds_since_last_replication] if args.key?(:seconds_since_last_replication) end |