Class: Google::Apis::BigtableadminV2::SingleClusterRouting

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/bigtableadmin_v2/classes.rb,
generated/google/apis/bigtableadmin_v2/representations.rb,
generated/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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SingleClusterRouting

Returns a new instance of SingleClusterRouting.



1557
1558
1559
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 1557

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#allow_transactional_writesBoolean 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

Returns:

  • (Boolean)


1549
1550
1551
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 1549

def allow_transactional_writes
  @allow_transactional_writes
end

#cluster_idString

The cluster to which read/write requests should be routed. Corresponds to the JSON property clusterId

Returns:

  • (String)


1555
1556
1557
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 1555

def cluster_id
  @cluster_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1562
1563
1564
1565
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 1562

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