Module: Google::Cloud::Bigtable::Admin::BigtableInstanceAdmin
- Defined in:
- lib/google/cloud/bigtable/admin.rb
Class Method Summary collapse
-
.new(version: , credentials: , scopes: , client_config: , timeout: ) ⇒ Object
Service for creating, configuring, and deleting Cloud Bigtable Instances and Clusters.
Class Method Details
.new(version: , credentials: , scopes: , client_config: , timeout: ) ⇒ Object
Service for creating, configuring, and deleting Cloud Bigtable Instances and Clusters. Provides access to the Instance and Cluster schemas only, not the tables' metadata or data stored in those tables.
129 130 131 132 133 134 135 136 137 138 139 140 141 |
# File 'lib/google/cloud/bigtable/admin.rb', line 129 def self.new(*args, version: :v2, **kwargs) unless AVAILABLE_VERSIONS.include?(version.to_s.downcase) raise "The version: #{version} is not available. The available versions " \ "are: [#{AVAILABLE_VERSIONS.join(", ")}]" end require "#{FILE_DIR}/#{version.to_s.downcase}" version_module = Google::Cloud::Bigtable::Admin .constants .select {|sym| sym.to_s.downcase == version.to_s.downcase} .first Google::Cloud::Bigtable::Admin.const_get(version_module)::BigtableInstanceAdmin.new(*args, **kwargs) end |