Class: Google::Apis::FileV1beta1::ReplicaConfig

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

Overview

Replica configuration for the instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ReplicaConfig

Returns a new instance of ReplicaConfig.

[View source]

1737
1738
1739
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1737

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

Instance Attribute Details

#last_active_sync_timeString

Output only. The timestamp of the latest replication snapshot taken on the active instance and is already replicated safely. Corresponds to the JSON property lastActiveSyncTime

Returns:

  • (String)

1720
1721
1722
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1720

def last_active_sync_time
  @last_active_sync_time
end

#peer_instanceString

The peer instance. Corresponds to the JSON property peerInstance

Returns:

  • (String)

1725
1726
1727
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1725

def peer_instance
  @peer_instance
end

#stateString

Output only. The replica state. Corresponds to the JSON property state

Returns:

  • (String)

1730
1731
1732
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1730

def state
  @state
end

#state_reasonsArray<String>

Output only. Additional information about the replication state, if available. Corresponds to the JSON property stateReasons

Returns:

  • (Array<String>)

1735
1736
1737
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1735

def state_reasons
  @state_reasons
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

1742
1743
1744
1745
1746
1747
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1742

def update!(**args)
  @last_active_sync_time = args[:last_active_sync_time] if args.key?(:last_active_sync_time)
  @peer_instance = args[:peer_instance] if args.key?(:peer_instance)
  @state = args[:state] if args.key?(:state)
  @state_reasons = args[:state_reasons] if args.key?(:state_reasons)
end