module Google::Area120::Tables
Constants
- VERSION
Public Class Methods
Create a new client object for TablesService.
By default, this returns an instance of [Google::Area120::Tables::V1alpha1::TablesService::Client](googleapis.dev/ruby/google-area120-tables-v1alpha1/latest/Google/Area120/Tables/V1alpha1/TablesService/Client.html) for version V1alpha1 of the API. However, you can specify specify a different API version by passing it in the `version` parameter. If the TablesService service is supported by that API version, and the corresponding gem is available, the appropriate versioned client will be returned.
## About TablesService
The Tables
Service provides an API for reading and updating tables. It defines the following resource model:
-
The API has a collection of Table resources, named `tables/*`
-
Each Table has a collection of Row resources, named `tables//rows/`
-
The API has a collection of Workspace resources, named `workspaces/*`.
@param version [::String, ::Symbol] The API version to connect to. Optional.
Defaults to `:v1alpha1`.
@return [TablesService::Client] A client object for the specified version.
# File lib/google/area120/tables.rb, line 60 def self.tables_service version: :v1alpha1, &block require "google/area120/tables/#{version.to_s.downcase}" package_name = Google::Area120::Tables .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first package_module = Google::Area120::Tables.const_get package_name package_module.const_get(:TablesService).const_get(:Client).new(&block) end