Class: Google::Apis::RedisV1beta1::Membership

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

Overview

An output only view of all the member clusters participating in the cross cluster replication.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Membership

Returns a new instance of Membership.



2463
2464
2465
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2463

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

Instance Attribute Details

#primary_clusterGoogle::Apis::RedisV1beta1::RemoteCluster

Details of the remote cluster associated with this cluster in a cross cluster replication setup. Corresponds to the JSON property primaryCluster



2455
2456
2457
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2455

def primary_cluster
  @primary_cluster
end

#secondary_clustersArray<Google::Apis::RedisV1beta1::RemoteCluster>

Output only. The list of secondary clusters replicating from the primary cluster. Corresponds to the JSON property secondaryClusters



2461
2462
2463
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2461

def secondary_clusters
  @secondary_clusters
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2468
2469
2470
2471
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2468

def update!(**args)
  @primary_cluster = args[:primary_cluster] if args.key?(:primary_cluster)
  @secondary_clusters = args[:secondary_clusters] if args.key?(:secondary_clusters)
end