Class: Google::Cloud::Bigtable::Instance::ClusterMap
- Inherits:
 - 
      Hash
      
        
- Object
 - Hash
 - Google::Cloud::Bigtable::Instance::ClusterMap
 
 
- Defined in:
 - lib/google/cloud/bigtable/instance/cluster_map.rb
 
Overview
Instance::ClusterMap is a Hash with cluster name and gRPC object. It is used to create instance.
Instance Method Summary collapse
- 
  
    
      #add(name, location, nodes: nil, storage_type: nil)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Add cluster to map.
 
Instance Method Details
#add(name, location, nodes: nil, storage_type: nil) ⇒ Object
Add cluster to map
      57 58 59 60 61 62 63 64 65  | 
    
      # File 'lib/google/cloud/bigtable/instance/cluster_map.rb', line 57 def add name, location, nodes: nil, storage_type: nil attrs = { serve_nodes: nodes, location: location, default_storage_type: storage_type }.delete_if { |_, v| v.nil? } self[name] = Google::Bigtable::Admin::V2::Cluster.new(attrs) end  |