Class: Google::Apis::BigtableadminV2::SingleClusterRouting
- Inherits:
-
Object
- Object
- Google::Apis::BigtableadminV2::SingleClusterRouting
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/bigtableadmin_v2/classes.rb,
lib/google/apis/bigtableadmin_v2/representations.rb,
lib/google/apis/bigtableadmin_v2/representations.rb
Overview
Unconditionally routes all read/write requests to a specific cluster. This option preserves read-your-writes consistency but does not improve availability.
Instance Attribute Summary collapse
-
#allow_transactional_writes ⇒ Boolean
(also: #allow_transactional_writes?)
Whether or not
CheckAndMutateRow
andReadModifyWriteRow
requests are allowed by this app profile. -
#cluster_id ⇒ String
The cluster to which read/write requests should be routed.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SingleClusterRouting
constructor
A new instance of SingleClusterRouting.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SingleClusterRouting
Returns a new instance of SingleClusterRouting.
3248 3249 3250 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 3248 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allow_transactional_writes ⇒ Boolean Also known as: allow_transactional_writes?
Whether or not CheckAndMutateRow
and ReadModifyWriteRow
requests are
allowed by this app profile. It is unsafe to send these requests to the same
table/row/column in multiple clusters.
Corresponds to the JSON property allowTransactionalWrites
3240 3241 3242 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 3240 def allow_transactional_writes @allow_transactional_writes end |
#cluster_id ⇒ String
The cluster to which read/write requests should be routed.
Corresponds to the JSON property clusterId
3246 3247 3248 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 3246 def cluster_id @cluster_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3253 3254 3255 3256 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 3253 def update!(**args) @allow_transactional_writes = args[:allow_transactional_writes] if args.key?(:allow_transactional_writes) @cluster_id = args[:cluster_id] if args.key?(:cluster_id) end |