Class: Google::Apis::RedisV1::Membership
- Inherits:
-
Object
- Object
- Google::Apis::RedisV1::Membership
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/redis_v1/classes.rb,
lib/google/apis/redis_v1/representations.rb,
lib/google/apis/redis_v1/representations.rb
Overview
An output only view of all the member clusters participating in the cross cluster replication.
Instance Attribute Summary collapse
-
#primary_cluster ⇒ Google::Apis::RedisV1::RemoteCluster
Details of the remote cluster associated with this cluster in a cross cluster replication setup.
-
#secondary_clusters ⇒ Array<Google::Apis::RedisV1::RemoteCluster>
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Membership
constructor
A new instance of Membership.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Membership
Returns a new instance of Membership.
2290 2291 2292 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2290 def initialize(**args) update!(**args) end |
Instance Attribute Details
#primary_cluster ⇒ Google::Apis::RedisV1::RemoteCluster
Details of the remote cluster associated with this cluster in a cross cluster
replication setup.
Corresponds to the JSON property primaryCluster
2282 2283 2284 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2282 def primary_cluster @primary_cluster end |
#secondary_clusters ⇒ Array<Google::Apis::RedisV1::RemoteCluster>
Output only. The list of secondary clusters replicating from the primary
cluster.
Corresponds to the JSON property secondaryClusters
2288 2289 2290 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2288 def secondary_clusters @secondary_clusters end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2295 2296 2297 2298 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2295 def update!(**args) @primary_cluster = args[:primary_cluster] if args.key?(:primary_cluster) @secondary_clusters = args[:secondary_clusters] if args.key?(:secondary_clusters) end |