Class: Google::Apis::BigqueryconnectionV1::CloudSpannerProperties
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryconnectionV1::CloudSpannerProperties
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/bigqueryconnection_v1/classes.rb,
lib/google/apis/bigqueryconnection_v1/representations.rb,
lib/google/apis/bigqueryconnection_v1/representations.rb
Overview
Connection properties specific to Cloud Spanner.
Instance Attribute Summary collapse
-
#database ⇒ String
Cloud Spanner database in the form
project/instance/database' Corresponds to the JSON property
database`. -
#database_role ⇒ String
Optional.
-
#max_parallelism ⇒ Fixnum
Allows setting max parallelism per query when executing on Spanner independent compute resources.
-
#use_data_boost ⇒ Boolean
(also: #use_data_boost?)
If set, the request will be executed via Spanner independent compute resources.
-
#use_parallelism ⇒ Boolean
(also: #use_parallelism?)
If parallelism should be used when reading from Cloud Spanner Corresponds to the JSON property
useParallelism
. -
#use_serverless_analytics ⇒ Boolean
(also: #use_serverless_analytics?)
Deprecated: prefer use_data_boost instead.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CloudSpannerProperties
constructor
A new instance of CloudSpannerProperties.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CloudSpannerProperties
Returns a new instance of CloudSpannerProperties.
377 378 379 |
# File 'lib/google/apis/bigqueryconnection_v1/classes.rb', line 377 def initialize(**args) update!(**args) end |
Instance Attribute Details
#database ⇒ String
Cloud Spanner database in the form project/instance/database'
Corresponds to the JSON property
database`
335 336 337 |
# File 'lib/google/apis/bigqueryconnection_v1/classes.rb', line 335 def database @database end |
#database_role ⇒ String
Optional. Cloud Spanner database role for fine-grained access control. The
Cloud Spanner admin should have provisioned the database role with appropriate
permissions, such as SELECT
and INSERT
. Other users should only use roles
provided by their Cloud Spanner admins. For more details, see About fine-
grained access control.
REQUIRES: The database role name must start with a letter, and can only
contain letters, numbers, and underscores.
Corresponds to the JSON property databaseRole
346 347 348 |
# File 'lib/google/apis/bigqueryconnection_v1/classes.rb', line 346 def database_role @database_role end |
#max_parallelism ⇒ Fixnum
Allows setting max parallelism per query when executing on Spanner independent
compute resources. If unspecified, default values of parallelism are chosen
that are dependent on the Cloud Spanner instance configuration. REQUIRES:
use_parallelism
must be set. REQUIRES: use_data_boost
must be set.
Corresponds to the JSON property maxParallelism
354 355 356 |
# File 'lib/google/apis/bigqueryconnection_v1/classes.rb', line 354 def max_parallelism @max_parallelism end |
#use_data_boost ⇒ Boolean Also known as: use_data_boost?
If set, the request will be executed via Spanner independent compute resources.
REQUIRES: use_parallelism
must be set.
Corresponds to the JSON property useDataBoost
360 361 362 |
# File 'lib/google/apis/bigqueryconnection_v1/classes.rb', line 360 def use_data_boost @use_data_boost end |
#use_parallelism ⇒ Boolean Also known as: use_parallelism?
If parallelism should be used when reading from Cloud Spanner
Corresponds to the JSON property useParallelism
366 367 368 |
# File 'lib/google/apis/bigqueryconnection_v1/classes.rb', line 366 def use_parallelism @use_parallelism end |
#use_serverless_analytics ⇒ Boolean Also known as: use_serverless_analytics?
Deprecated: prefer use_data_boost instead. If the serverless analytics service
should be used to read data from Cloud Spanner. Note: use_parallelism
must
be set when using serverless analytics.
Corresponds to the JSON property useServerlessAnalytics
374 375 376 |
# File 'lib/google/apis/bigqueryconnection_v1/classes.rb', line 374 def use_serverless_analytics @use_serverless_analytics end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
382 383 384 385 386 387 388 389 |
# File 'lib/google/apis/bigqueryconnection_v1/classes.rb', line 382 def update!(**args) @database = args[:database] if args.key?(:database) @database_role = args[:database_role] if args.key?(:database_role) @max_parallelism = args[:max_parallelism] if args.key?(:max_parallelism) @use_data_boost = args[:use_data_boost] if args.key?(:use_data_boost) @use_parallelism = args[:use_parallelism] if args.key?(:use_parallelism) @use_serverless_analytics = args[:use_serverless_analytics] if args.key?(:use_serverless_analytics) end |