Class: Google::Apis::FileV1beta1::ReplicaConfig
- Inherits:
-
Object
- Object
- Google::Apis::FileV1beta1::ReplicaConfig
- 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
-
#last_active_sync_time ⇒ String
Output only.
-
#peer_instance ⇒ String
The peer instance.
-
#state ⇒ String
Output only.
-
#state_reasons ⇒ Array<String>
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ReplicaConfig
constructor
A new instance of ReplicaConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ReplicaConfig
Returns a new instance of ReplicaConfig.
1571 1572 1573 |
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1571 def initialize(**args) update!(**args) end |
Instance Attribute Details
#last_active_sync_time ⇒ String
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
1554 1555 1556 |
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1554 def last_active_sync_time @last_active_sync_time end |
#peer_instance ⇒ String
The peer instance.
Corresponds to the JSON property peerInstance
1559 1560 1561 |
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1559 def peer_instance @peer_instance end |
#state ⇒ String
Output only. The replica state.
Corresponds to the JSON property state
1564 1565 1566 |
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1564 def state @state end |
#state_reasons ⇒ Array<String>
Output only. Additional information about the replication state, if available.
Corresponds to the JSON property stateReasons
1569 1570 1571 |
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1569 def state_reasons @state_reasons end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1576 1577 1578 1579 1580 1581 |
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1576 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 |