google-cloud-bigtable 0.1.3 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +1 -0
  3. data/CHANGELOG.md +8 -0
  4. data/EMULATOR.md +30 -0
  5. data/OVERVIEW.md +2 -1
  6. data/lib/google-cloud-bigtable.rb +28 -22
  7. data/lib/google/cloud/bigtable.rb +25 -13
  8. data/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin_client_config.json +14 -14
  9. data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin_client_config.json +5 -5
  10. data/lib/google/cloud/bigtable/app_profile.rb +14 -14
  11. data/lib/google/cloud/bigtable/app_profile/list.rb +9 -9
  12. data/lib/google/cloud/bigtable/chunk_processor.rb +6 -6
  13. data/lib/google/cloud/bigtable/cluster.rb +5 -5
  14. data/lib/google/cloud/bigtable/cluster/job.rb +1 -1
  15. data/lib/google/cloud/bigtable/cluster/list.rb +6 -6
  16. data/lib/google/cloud/bigtable/column_family.rb +12 -12
  17. data/lib/google/cloud/bigtable/column_range.rb +8 -8
  18. data/lib/google/cloud/bigtable/gc_rule.rb +2 -2
  19. data/lib/google/cloud/bigtable/instance.rb +34 -36
  20. data/lib/google/cloud/bigtable/instance/cluster_map.rb +5 -5
  21. data/lib/google/cloud/bigtable/instance/list.rb +9 -9
  22. data/lib/google/cloud/bigtable/longrunning_job.rb +1 -1
  23. data/lib/google/cloud/bigtable/mutation_entry.rb +18 -18
  24. data/lib/google/cloud/bigtable/mutation_operations.rb +25 -23
  25. data/lib/google/cloud/bigtable/policy.rb +13 -13
  26. data/lib/google/cloud/bigtable/project.rb +27 -27
  27. data/lib/google/cloud/bigtable/read_modify_write_rule.rb +6 -6
  28. data/lib/google/cloud/bigtable/read_operations.rb +13 -13
  29. data/lib/google/cloud/bigtable/row.rb +7 -7
  30. data/lib/google/cloud/bigtable/row_filter.rb +58 -58
  31. data/lib/google/cloud/bigtable/row_filter/chain_filter.rb +40 -41
  32. data/lib/google/cloud/bigtable/row_filter/condition_filter.rb +6 -6
  33. data/lib/google/cloud/bigtable/row_filter/interleave_filter.rb +46 -47
  34. data/lib/google/cloud/bigtable/row_filter/simple_filter.rb +14 -15
  35. data/lib/google/cloud/bigtable/row_range.rb +16 -16
  36. data/lib/google/cloud/bigtable/rows_mutator.rb +5 -5
  37. data/lib/google/cloud/bigtable/rows_reader.rb +8 -9
  38. data/lib/google/cloud/bigtable/service.rb +153 -141
  39. data/lib/google/cloud/bigtable/table.rb +23 -23
  40. data/lib/google/cloud/bigtable/table/cluster_state.rb +2 -2
  41. data/lib/google/cloud/bigtable/table/column_family_map.rb +5 -5
  42. data/lib/google/cloud/bigtable/table/list.rb +8 -8
  43. data/lib/google/cloud/bigtable/value_range.rb +7 -7
  44. data/lib/google/cloud/bigtable/version.rb +1 -1
  45. metadata +5 -4
@@ -19,7 +19,7 @@ module Google
19
19
  module Cloud
20
20
  module Bigtable
21
21
  class AppProfile
22
- # AppProfile::List is a special case Array with additional
22
+ # AppProfile::List is a special-case array with additional
23
23
  # values.
24
24
  class List < DelegateClass(::Array)
25
25
  # @private
@@ -27,11 +27,11 @@ module Google
27
27
  attr_accessor :service
28
28
 
29
29
  # @private
30
- # The gRPC page enumbrable object.
30
+ # The gRPC page enumerable object.
31
31
  attr_accessor :grpc
32
32
 
33
33
  # @private
34
- # Create a new AppProfile::List with an array of Snapshot instances.
34
+ # Creates a new AppProfile::List with an array of snapshot instances.
35
35
  def initialize arr = []
36
36
  super(arr)
37
37
  end
@@ -55,7 +55,7 @@ module Google
55
55
  grpc.next_page?
56
56
  end
57
57
 
58
- # Retrieve the next page of app_profiles.
58
+ # Retrieves the next page of app_profiles.
59
59
  #
60
60
  # @return [AppProfile::List] The list of instances.
61
61
  #
@@ -82,11 +82,11 @@ module Google
82
82
  # {#next?} returns `false`. Calls the given block once for each
83
83
  # result, which is passed as the argument to the block.
84
84
  #
85
- # An Enumerator is returned if no block is given.
85
+ # An enumerator is returned if no block is given.
86
86
  #
87
87
  # This method will make repeated API calls until all remaining results
88
- # are retrieved. (Unlike `#each`, for example, which merely iterates
89
- # over the results returned by a single API call.) Use with caution.
88
+ # are retrieved (unlike `#each`, for example, which merely iterates
89
+ # over the results returned by a single API call). Use with caution.
90
90
  #
91
91
  # @yield [app_profile] The block for accessing each instance.
92
92
  # @yieldparam [AppProfile] instance The instance object.
@@ -148,9 +148,9 @@ module Google
148
148
 
149
149
  # @private
150
150
  #
151
- # Raise an error if active grpc call is not available.
151
+ # Raises an error if an active gRPC call is not available.
152
152
  def ensure_grpc!
153
- raise "Must have active grpc call" unless grpc
153
+ raise "Must have active gRPC call" unless grpc
154
154
  end
155
155
  end
156
156
  end
@@ -21,7 +21,7 @@ module Google
21
21
  # @private
22
22
  # # RowsMutator
23
23
  #
24
- # Read chunk and merge based on states and build rows and cells
24
+ # Read a chunk of data and merge it based on states and build rows and cells
25
25
  #
26
26
  class ChunkProcessor
27
27
  # Row states
@@ -56,7 +56,7 @@ module Google
56
56
  if chunk.commit_row
57
57
  raise_if(
58
58
  chunk.value_size > 0,
59
- "A row cant not have value_size and commit_row"
59
+ "Commit rows cannot have a non-zero value_size."
60
60
  )
61
61
  end
62
62
 
@@ -89,9 +89,9 @@ module Google
89
89
  # Validate chunk has new row state
90
90
  #
91
91
  # @raise [Google::Cloud::Bigtable::InvalidRowStateError]
92
- # If row has already set key, chunk has emoty row key, chunk state is
93
- # reset, new row key same as last read key, family name or column
94
- # qualifier is empty
92
+ # If row already has a set key, chunk has an empty row key, chunk
93
+ # state is reset, new row key is the same as the last-read key,
94
+ # or if family name or column qualifier are empty
95
95
  #
96
96
  def validate_new_row
97
97
  raise_if(row.key, "A new row cannot have existing state")
@@ -124,7 +124,7 @@ module Google
124
124
  validate_reset_row
125
125
  end
126
126
 
127
- # Process new row by setting valus from current chunk.
127
+ # Process new row by setting values from current chunk.
128
128
  #
129
129
  # @return [Google::Cloud::Bigtable::Row]
130
130
  #
@@ -110,7 +110,7 @@ module Google
110
110
  # The cluster is currently being resized, and may revert to its previous
111
111
  # node count if the process encounters an error.
112
112
  # A cluster is still capable of serving requests while being resized,
113
- # but may exhibit performance as if its number of allocated nodes is
113
+ # but may perform as if its number of allocated nodes is
114
114
  # between the starting and requested states.
115
115
  #
116
116
  # @return [Boolean]
@@ -152,7 +152,7 @@ module Google
152
152
  end
153
153
 
154
154
  # Cluster location.
155
- # i.e "us-east-1b"
155
+ # For example, "us-east1-b"
156
156
  #
157
157
  # @return [String]
158
158
  def location
@@ -169,7 +169,7 @@ module Google
169
169
 
170
170
  # Update cluster.
171
171
  #
172
- # Updatable fields are no of nodes.
172
+ # `serve_nodes` is the only updatable field
173
173
  #
174
174
  # @return [Google::Cloud::Bigtable::Cluster::Job]
175
175
  # The job representing the long-running, asynchronous processing of
@@ -209,7 +209,7 @@ module Google
209
209
  end
210
210
  alias update save
211
211
 
212
- # Reload cluster information.
212
+ # Reloads cluster information.
213
213
  #
214
214
  # @return [Google::Cloud::Bigtable::Cluster]
215
215
 
@@ -218,7 +218,7 @@ module Google
218
218
  self
219
219
  end
220
220
 
221
- # Permanently deletes the cluster
221
+ # Permanently deletes the cluster.
222
222
  #
223
223
  # @return [Boolean] Returns `true` if the cluster was deleted.
224
224
  #
@@ -55,7 +55,7 @@ module Google
55
55
  # end
56
56
  #
57
57
  class Job < LongrunningJob
58
- # Get the cluster object from job results
58
+ # Gets the cluster object from job results
59
59
  #
60
60
  # @return [Google::Cloud::Bigtable::Cluster, nil] The cluster instance, or
61
61
  # `nil` if the operation is not complete.
@@ -29,16 +29,16 @@ module Google
29
29
  attr_accessor :service
30
30
 
31
31
  # @private
32
- # Instance id
32
+ # Instance ID
33
33
  attr_accessor :instance_id
34
34
 
35
35
  # If not empty, indicates that there are more records that match
36
36
  # the request and this value should be passed to continue.
37
37
  attr_accessor :token
38
38
 
39
- # Locations from which Cluster information could not be retrieved,
39
+ # Locations from which cluster information could not be retrieved,
40
40
  # due to an outage or some other transient condition.
41
- # Clusters from these locations may be missing from `clusters`,
41
+ # Clusters from these locations may be missing from `clusters`
42
42
  # or may only have partial information returned.
43
43
  attr_accessor :failed_locations
44
44
 
@@ -98,11 +98,11 @@ module Google
98
98
  # {#next?} returns `false`. Calls the given block once for each
99
99
  # result, which is passed as the argument to the block.
100
100
  #
101
- # An Enumerator is returned if no block is given.
101
+ # An enumerator is returned if no block is given.
102
102
  #
103
103
  # This method will make repeated API calls until all remaining results
104
- # are retrieved. (Unlike `#each`, for example, which merely iterates
105
- # over the results returned by a single API call.) Use with caution.
104
+ # are retrieved (unlike `#each`, for example, which merely iterates
105
+ # over the results returned by a single API call). Use with caution.
106
106
  #
107
107
  # @yield [cluster] The block for accessing each cluster.
108
108
  # @yieldparam [Cluster] cluster The cluster object.
@@ -22,7 +22,7 @@ module Google
22
22
  module Bigtable
23
23
  # # ColumnFamily
24
24
  #
25
- # A set of columns within a table which share a common configuration.
25
+ # A set of columns within a table that share a common configuration.
26
26
  #
27
27
  # @example
28
28
  # require "google/cloud/bigtable"
@@ -47,7 +47,7 @@ module Google
47
47
  #
48
48
  class ColumnFamily
49
49
  # @private
50
- # The gRPC Service object.
50
+ # The gRPC Service object
51
51
  attr_accessor :service
52
52
 
53
53
  # @private
@@ -72,7 +72,7 @@ module Google
72
72
  @name = name
73
73
  end
74
74
 
75
- # Set GC rule
75
+ # Set Column Family garbage collection rules
76
76
  #
77
77
  # @param rule [Google::Cloud::Bigtable::GcRule]
78
78
  #
@@ -80,7 +80,7 @@ module Google
80
80
  @grpc.gc_rule = rule.to_grpc
81
81
  end
82
82
 
83
- # Get GC rule
83
+ # Get garbage collection rule
84
84
  #
85
85
  # @return [Google::Cloud::Bigtable::GcRule]
86
86
  #
@@ -88,7 +88,7 @@ module Google
88
88
  GcRule.from_grpc(@grpc.gc_rule) if @grpc.gc_rule
89
89
  end
90
90
 
91
- # Create column family.
91
+ # Create column family
92
92
  #
93
93
  # @return [Google::Cloud::Bigtable::ColumnFamily]
94
94
  #
@@ -108,7 +108,7 @@ module Google
108
108
  modify_column_family(self.class.create_modification(name, gc_rule))
109
109
  end
110
110
 
111
- # Update column family.
111
+ # Update column family
112
112
  #
113
113
  # @return [Google::Cloud::Bigtable::ColumnFamily]
114
114
  #
@@ -129,9 +129,9 @@ module Google
129
129
  end
130
130
  alias update save
131
131
 
132
- # Permanently delete column family from table.
132
+ # Permanently delete column family from table
133
133
  #
134
- # @return [Boolean] Whether the column family was deleted.
134
+ # @return [Boolean] Returns true if the column family was deleted.
135
135
  #
136
136
  # @example
137
137
  # require "google/cloud/bigtable"
@@ -198,7 +198,7 @@ module Google
198
198
 
199
199
  # @private
200
200
  #
201
- # Creates a new ColumnFamily instance from a
201
+ # Create a new ColumnFamily instance from a
202
202
  # Google::Bigtable::Admin::V2::ColumnFamily.
203
203
  #
204
204
  # @param grpc [Google::Bigtable::Admin::V2::ColumnFamily]
@@ -222,7 +222,7 @@ module Google
222
222
 
223
223
  # @private
224
224
  #
225
- # Create column family modification gRPC instance.
225
+ # Create column family modification gRPC instance
226
226
  #
227
227
  # @param type [Symbol] Type of modification.
228
228
  # Valid values are `:create`, `:update`, `drop`
@@ -250,7 +250,7 @@ module Google
250
250
 
251
251
  # @private
252
252
  #
253
- # Create/Update/Delete column_family.
253
+ # Create/Update/Delete column_family
254
254
  #
255
255
  # @param modification [Google::Bigtable::Admin::V2::ModifyColumnFamiliesRequest::Modification]
256
256
  # @return [Google::Cloud::Bigtable::ColumnFamily]
@@ -269,7 +269,7 @@ module Google
269
269
  # @private
270
270
  #
271
271
  # Raise an error unless an active connection to the service is
272
- # available.
272
+ # available
273
273
  #
274
274
  def ensure_service!
275
275
  raise "Must have active connection to service" unless service
@@ -36,7 +36,7 @@ module Google
36
36
  # # Range that includes all qualifiers including "user-001" up until "user-010"
37
37
  # table.new_column_range("cf").from("user-001").to("user-010")
38
38
  #
39
- # # Range that includes all qualifiers including "user-001" up incluing "user-005"
39
+ # # Range that includes all qualifiers including "user-001" up to and including "user-005"
40
40
  # table.new_column_range("cf").from("user-001").to("user-005", inclusive: true)
41
41
  #
42
42
  # # Range that includes all qualifiers until end of the row key "user-001".
@@ -45,7 +45,7 @@ module Google
45
45
  # # Range with unbounded start and the inclusive end "user-100"
46
46
  # table.new_column_range("cf").to("user-100", inclusive: true)
47
47
  #
48
- # # Range that includes all qualifiers including "user-001" up to including "user-100"
48
+ # # Range that includes all qualifiers including "user-001" up to and including "user-100"
49
49
  # table.new_column_range("cf").between("user-001", "user-100")
50
50
  #
51
51
  class ColumnRange
@@ -77,7 +77,7 @@ module Google
77
77
  #
78
78
  # @param qualifier [String] Column qualifier name. Required
79
79
  # @param inclusive [String] Lower bound flag. Inclusive/Exclusive.
80
- # Default it is an inclusive lower bound.
80
+ # Default is an inclusive lower bound.
81
81
  # @return [Google::Cloud::Bigtable::ColumnRange]
82
82
  #
83
83
  # @example Inclusive lower bound.
@@ -107,9 +107,9 @@ module Google
107
107
 
108
108
  # Set column range with the upper bound.
109
109
  #
110
- # @param qualifier [String] Column qualifier name. Required
111
- # @param inclusive [String] Upper bound flag. Inclusive/Exclusive..
112
- # Default it is an inclusive upper bound.
110
+ # @param qualifier [String] Column qualifier name. Required.
111
+ # @param inclusive [String] Upper bound flag. Inclusive/Exclusive.
112
+ # Default is an inclusive upper bound.
113
113
  # @return [Google::Cloud::Bigtable::ColumnRange]
114
114
  #
115
115
  # @example Inclusive upper bound.
@@ -139,8 +139,8 @@ module Google
139
139
 
140
140
  # Set column range with the inclusive upper and lower bound.
141
141
  #
142
- # @param from_qualifier [String] Inclusive from qualifier. Required
143
- # @param to_qualifier [String] Inclusive to qualifier. Required
142
+ # @param from_qualifier [String] Inclusive from qualifier. Required.
143
+ # @param to_qualifier [String] Inclusive to qualifier. Required.
144
144
  # @return [Google::Cloud::Bigtable::ColumnRange]
145
145
  #
146
146
  # @example
@@ -21,7 +21,7 @@ module Google
21
21
  # # GcRule
22
22
  #
23
23
  # Rule for determining which cells to delete during garbage collection.
24
- # Garbage collection executes opportunistically in the background, and
24
+ # Garbage collection (GC) executes opportunistically in the background,
25
25
  # so it's possible for reads to return a cell even if it matches the active
26
26
  # GC expression for its family.
27
27
  #
@@ -32,7 +32,7 @@ module Google
32
32
  # * `union` - Delete cells that would be deleted by every nested rule.
33
33
  # It can have mutiple chainable GC Rules.
34
34
  # * `intersection` - Delete cells that would be deleted by any nested rule.
35
- # It can have mutiple chainable GC Rules.
35
+ # It can have multiple chainable GC Rules.
36
36
  #
37
37
  # @example Create GC rule instance with max version.
38
38
  #
@@ -27,7 +27,7 @@ module Google
27
27
  # # Instance
28
28
  #
29
29
  # Represents a Bigtable instance. Instances are dedicated Bigtable
30
- # serving and storage resources to be used by Bigtable tables.
30
+ # storage resources that Bigtable tables.
31
31
  #
32
32
  # See {Google::Cloud::Bigtable::Project#instances},
33
33
  # {Google::Cloud::Bigtable::Project#instance}, and
@@ -89,7 +89,7 @@ module Google
89
89
  end
90
90
 
91
91
  # The descriptive name for this instance as it appears in UIs. Must be
92
- # unique per project and between 4 and 30 characters in length.
92
+ # unique per project and between 4 and 30 characters long.
93
93
  #
94
94
  # @return [String]
95
95
 
@@ -126,7 +126,7 @@ module Google
126
126
  end
127
127
 
128
128
  # The instance has been successfully created and can serve requests
129
- # to its tables
129
+ # to its tables.
130
130
  #
131
131
  # @return [Boolean]
132
132
 
@@ -134,7 +134,7 @@ module Google
134
134
  state == :READY
135
135
  end
136
136
 
137
- # The instance is currently being created, and may be destroyed if the
137
+ # The instance is currently being created and may be destroyed if the
138
138
  # creation process encounters an error.
139
139
  #
140
140
  # @return [Boolean]
@@ -178,8 +178,8 @@ module Google
178
178
  # Set instance type.
179
179
  #
180
180
  # Valid values are `:DEVELOPMENT`, `:PRODUCTION`.
181
- # If instance already created then After a development instance is
182
- # created, it can be upgraded by updating the instance to type `PRODUCTION`.
181
+ # After a development instance is created, it can be upgraded
182
+ # by updating the instance to type `PRODUCTION`.
183
183
  # An instance created as a production instance cannot be changed to a
184
184
  # development instance.
185
185
  #
@@ -194,9 +194,9 @@ module Google
194
194
  # Cloud Labels are a flexible and lightweight mechanism for organizing
195
195
  # cloud resources into groups that reflect a customer's organizational
196
196
  # needs and deployment strategies. Cloud Labels can be used to filter
197
- # collections of resources. They can be used to control how resource
198
- # metrics are aggregated. And they can be used as arguments to policy
199
- # management rules (e.g. route, firewall, load balancing, etc.).
197
+ # collections of resources, to control how resource
198
+ # metrics are aggregated, and as arguments to policy
199
+ # management rules (e.g., route, firewall, load balancing, etc.).
200
200
  #
201
201
  # * Label keys must be between 1 and 63 characters long and must conform
202
202
  # to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
@@ -300,7 +300,7 @@ module Google
300
300
  # cluster {Google::Cloud::Bigtable::Cluster#save}.
301
301
  #
302
302
  # @param token [String] The `token` value returned by the last call to
303
- # `clusters`; indicates that this is a continuation of a call,
303
+ # `clusters`; indicates that this is a continuation of a call
304
304
  # and that the system should return the next page of data.
305
305
  # @return [Array<Google::Cloud::Bigtable::Cluster>]
306
306
  # See({Google::Cloud::Bigtable::Cluster::List})
@@ -356,11 +356,10 @@ module Google
356
356
  # @param location [String]
357
357
  # The location where this cluster's nodes and storage reside. For best
358
358
  # performance, clients should be located as close as possible to this
359
- # cluster. Currently only zones are supported.
360
- # i.e "us-east-1b"
359
+ # cluster. Example: "us-east-1b"
361
360
  # @param nodes [Integer] The number of nodes allocated to this cluster.
362
361
  # More nodes enable higher throughput and more consistent performance.
363
- # @param storage_type [Symbol] Type of storage type.
362
+ # @param storage_type [Symbol] Storage type.
364
363
  # The type of storage used by this cluster to serve its
365
364
  # parent instance's tables.
366
365
  # Valid types are:
@@ -421,7 +420,7 @@ module Google
421
420
  #
422
421
  # instance = bigtable.instance("my-instance")
423
422
  #
424
- # # Default name only view
423
+ # # Default name-only view
425
424
  # instance.tables.all do |table|
426
425
  # puts table.name
427
426
  # end
@@ -448,13 +447,13 @@ module Google
448
447
  # * `:SCHEMA_VIEW` - Only populates `name` and fields related to the table's schema
449
448
  # * `:REPLICATION_VIEW` - Only populates `name` and fields related to the table's replication state.
450
449
  # * `:FULL` - Populates all fields
451
- # @param perform_lookup [Boolean] Create table object without verifying
450
+ # @param perform_lookup [Boolean] Creates table object without verifying
452
451
  # that the table resource exists.
453
- # Calls made on this object will raise errors if the table.
452
+ # Calls made on this object will raise errors if the table
454
453
  # does not exist. Default value is `false`. Optional.
455
- # It helps to reduce admin apis calls.
454
+ # Helps to reduce admin API calls.
456
455
  # @param app_profile_id [String] The unique identifier for the app profile. Optional.
457
- # It is used only in data operations.
456
+ # Used only in data operations.
458
457
  # This value specifies routing for replication. If not specified, the
459
458
  # "default" application profile will be used.
460
459
  # @return [Google::Cloud::Bigtable::Table]
@@ -471,7 +470,7 @@ module Google
471
470
  # puts table.name
472
471
  # puts table.column_families
473
472
  #
474
- # # Name only view
473
+ # # Name-only view
475
474
  # table = instance.table("my-table", view: :NAME_ONLY, perform_lookup: true)
476
475
  # puts table.name
477
476
  #
@@ -491,7 +490,6 @@ module Google
491
490
  # ).delete_from_column("cf2", "field02")
492
491
  #
493
492
  # table.mutate_row(entry)
494
-
495
493
  #
496
494
  def table table_id, view: nil, perform_lookup: nil, app_profile_id: nil
497
495
  ensure_service!
@@ -522,12 +520,12 @@ module Google
522
520
  # instance, e.g., `foobar`
523
521
  # @param column_families [Hash{String => Google::Cloud::Bigtable::ColumnFamily}]
524
522
  # (See {Google::Cloud::Bigtable::Table::ColumnFamilyMap})
525
- # If passed as an empty use code block to add column families.
523
+ # If passed as an empty, use a code block to add column families.
526
524
  # @param granularity [Symbol]
527
525
  # The granularity at which timestamps are stored in this table.
528
526
  # Timestamps not matching the granularity will be rejected.
529
- # Valid values are `:MILLIS`.
530
- # If unspecified, the value will be set to `:MILLIS`
527
+ # Valid value is `:MILLIS`.
528
+ # If unspecified, the value will be set to `:MILLIS`.
531
529
  # @param initial_splits [Array<String>]
532
530
  # The optional list of row keys that will be used to initially split the
533
531
  # table into several tablets (tablets are similar to HBase regions).
@@ -544,13 +542,13 @@ module Google
544
542
  # * Tablet 3 : `[customer_1, customer_2) => {"customer_1"}`
545
543
  # * Tablet 4 : `[customer_2, other) => {"customer_2"}`
546
544
  # * Tablet 5 : `[other, ) => {"other", "zz"}`
547
- # A hash of the same form as `Google::Bigtable::Admin::V2::CreateTableRequest::Split`
545
+ # A hash in the form of `Google::Bigtable::Admin::V2::CreateTableRequest::Split`
548
546
  # can also be provided.
549
547
  # @yield [column_families] A block for adding column_families.
550
548
  # @yieldparam [Hash{String => Google::Cloud::Bigtable::ColumnFamily}]
551
549
  # Cluster map of cluster name and cluster object.
552
550
  # (See {Google::Cloud::Bigtable::Instance::ClusterMap})
553
- # GC Rules for column family see {Google::Cloud::Bigtable::GcRule})
551
+ # See rules for column families at {Google::Cloud::Bigtable::GcRule})
554
552
  #
555
553
  # @return [Google::Cloud::Bigtable::Table]
556
554
  #
@@ -603,29 +601,29 @@ module Google
603
601
  )
604
602
  end
605
603
 
606
- # Create app profile of instance with routing policy.
607
- # Only one routing policy can applied to app profile. It can be
608
- # multi cluster routing or single cluster routing
604
+ # Create app profile for an instance with a routing policy.
605
+ # Only one routing policy can applied to app profile. The policy can be
606
+ # multi-cluster routing or single cluster routing.
609
607
  #
610
608
  # @param name [String] Unique Id of the app profile
611
609
  # @param routing_policy [Google::Bigtable::Admin::V2::AppProfile::SingleClusterRouting | Google::Bigtable::Admin::V2::AppProfile::MultiClusterRoutingUseAny]
612
- # The routing policy for all read/write requests which use this app profile.
610
+ # The routing policy for all read/write requests that use this app profile.
613
611
  # A value must be explicitly set.
614
612
  #
615
613
  # Routing Policies:
616
614
  # * `multi_cluster_routing` - Read/write requests may be routed to any
617
- # cluster in the instance, and will fail over to another cluster in the event
615
+ # cluster in the instance and will fail over to another cluster in the event
618
616
  # of transient errors or delays. Choosing this option sacrifices
619
617
  # read-your-writes consistency to improve availability.
620
618
  # * `single_cluster_routing` - Unconditionally routes all read/write requests
621
- # to a specific cluster. This option preserves read-your-writes consistency,
619
+ # to a specific cluster. This option preserves read-your-writes consistency
622
620
  # but does not improve availability.
623
- # Value contain `cluster_id` and optional field `allow_transactional_writes`.
624
- # @param description [String] Description of the use case for this AppProfile
621
+ # Value contains `cluster_id` and optional field `allow_transactional_writes`.
622
+ # @param description [String] Description of the use case for this app profile
625
623
  # @param etag [String]
626
624
  # Strongly validated etag for optimistic concurrency control. Preserve the
627
625
  # value returned from `GetAppProfile` when calling `UpdateAppProfile` to
628
- # fail the request if there has been a modification in the mean time. The
626
+ # fail the request if there has been a modification in the meantime. The
629
627
  # `update_mask` of the request need not include `etag` for this protection
630
628
  # to apply.
631
629
  # See [Wikipedia](https://en.wikipedia.org/wiki/HTTP_ETag) and
@@ -635,7 +633,7 @@ module Google
635
633
  # Default value is `false`
636
634
  # @return [Google::Cloud::Bigtable::AppProfile]
637
635
  #
638
- # @example Create app profile with single cluster routing policy
636
+ # @example Create an app profile with a single cluster routing policy
639
637
  # require "google/cloud/bigtable"
640
638
  #
641
639
  # bigtable = Google::Cloud::Bigtable.new
@@ -654,7 +652,7 @@ module Google
654
652
  # )
655
653
  # puts app_profile.name
656
654
  #
657
- # @example Create app profile with multi cluster routing policy
655
+ # @example Create an app profile with multi-cluster routing policy
658
656
  # require "google/cloud/bigtable"
659
657
  #
660
658
  # bigtable = Google::Cloud::Bigtable.new