google-cloud-bigtable 2.6.1 → 2.6.2

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 (38) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -0
  3. data/lib/google/cloud/bigtable/app_profile.rb +20 -21
  4. data/lib/google/cloud/bigtable/app_profile/job.rb +4 -4
  5. data/lib/google/cloud/bigtable/app_profile/list.rb +5 -7
  6. data/lib/google/cloud/bigtable/backup.rb +36 -36
  7. data/lib/google/cloud/bigtable/backup/job.rb +8 -8
  8. data/lib/google/cloud/bigtable/backup/list.rb +9 -11
  9. data/lib/google/cloud/bigtable/cluster.rb +15 -15
  10. data/lib/google/cloud/bigtable/cluster/job.rb +2 -2
  11. data/lib/google/cloud/bigtable/column_family.rb +2 -2
  12. data/lib/google/cloud/bigtable/column_family_map.rb +14 -14
  13. data/lib/google/cloud/bigtable/column_range.rb +7 -7
  14. data/lib/google/cloud/bigtable/encryption_info.rb +4 -4
  15. data/lib/google/cloud/bigtable/gc_rule.rb +20 -20
  16. data/lib/google/cloud/bigtable/instance.rb +40 -40
  17. data/lib/google/cloud/bigtable/instance/cluster_map.rb +6 -6
  18. data/lib/google/cloud/bigtable/instance/job.rb +4 -4
  19. data/lib/google/cloud/bigtable/mutation_entry.rb +21 -21
  20. data/lib/google/cloud/bigtable/mutation_operations.rb +34 -34
  21. data/lib/google/cloud/bigtable/policy.rb +4 -4
  22. data/lib/google/cloud/bigtable/project.rb +15 -15
  23. data/lib/google/cloud/bigtable/read_operations.rb +31 -31
  24. data/lib/google/cloud/bigtable/routing_policy.rb +6 -6
  25. data/lib/google/cloud/bigtable/row_filter.rb +28 -28
  26. data/lib/google/cloud/bigtable/row_filter/chain_filter.rb +30 -29
  27. data/lib/google/cloud/bigtable/row_filter/condition_filter.rb +6 -6
  28. data/lib/google/cloud/bigtable/row_filter/interleave_filter.rb +27 -26
  29. data/lib/google/cloud/bigtable/row_range.rb +18 -18
  30. data/lib/google/cloud/bigtable/sample_row_key.rb +1 -1
  31. data/lib/google/cloud/bigtable/status.rb +2 -2
  32. data/lib/google/cloud/bigtable/table.rb +34 -34
  33. data/lib/google/cloud/bigtable/table/cluster_state.rb +1 -1
  34. data/lib/google/cloud/bigtable/table/list.rb +2 -2
  35. data/lib/google/cloud/bigtable/table/restore_job.rb +12 -12
  36. data/lib/google/cloud/bigtable/value_range.rb +18 -18
  37. data/lib/google/cloud/bigtable/version.rb +1 -1
  38. metadata +2 -2
@@ -30,8 +30,8 @@ module Google
30
30
  #
31
31
  # bigtable = Google::Cloud::Bigtable.new
32
32
  #
33
- # job = bigtable.create_instance("my-instance") do |clusters|
34
- # clusters.add("test-cluster", "us-east1-b", nodes: 3, storage_type: :SSD)
33
+ # job = bigtable.create_instance "my-instance" do |clusters|
34
+ # clusters.add "test-cluster", "us-east1-b", nodes: 3, storage_type: :SSD
35
35
  # end
36
36
  #
37
37
  # job.wait_until_done!
@@ -74,8 +74,8 @@ module Google
74
74
  #
75
75
  # bigtable = Google::Cloud::Bigtable.new
76
76
  #
77
- # job = bigtable.create_instance("my-instance") do |clusters|
78
- # clusters.add("test-cluster", "us-east1-b", nodes: 3, storage_type: :SSD)
77
+ # job = bigtable.create_instance "my-instance" do |clusters|
78
+ # clusters.add "test-cluster", "us-east1-b", nodes: 3, storage_type: :SSD
79
79
  # end
80
80
  #
81
81
  # job.wait_until_done!
@@ -86,8 +86,8 @@ module Google
86
86
  # bigtable = Google::Cloud::Bigtable.new
87
87
  #
88
88
  # kms_key_name = "projects/a/locations/b/keyRings/c/cryptoKeys/d"
89
- # job = bigtable.create_instance("my-instance") do |clusters|
90
- # clusters.add("test-cluster", "us-east1-b", kms_key: kms_key_name)
89
+ # job = bigtable.create_instance "my-instance" do |clusters|
90
+ # clusters.add "test-cluster", "us-east1-b", kms_key: kms_key_name
91
91
  # end
92
92
  #
93
93
  # job.wait_until_done!
@@ -38,9 +38,9 @@ module Google
38
38
  # "my-instance",
39
39
  # display_name: "Instance for user data",
40
40
  # type: :DEVELOPMENT,
41
- # labels: { "env" => "dev"}
41
+ # labels: { "env" => "dev" }
42
42
  # ) do |clusters|
43
- # clusters.add("test-cluster", "us-east1-b") # nodes not allowed
43
+ # clusters.add "test-cluster", "us-east1-b" # nodes not allowed
44
44
  # end
45
45
  #
46
46
  # # Check and reload.
@@ -74,9 +74,9 @@ module Google
74
74
  # "my-instance",
75
75
  # display_name: "Instance for user data",
76
76
  # type: :DEVELOPMENT,
77
- # labels: { "env" => "dev"}
77
+ # labels: { "env" => "dev" }
78
78
  # ) do |clusters|
79
- # clusters.add("test-cluster", "us-east1-b") # nodes not allowed
79
+ # clusters.add "test-cluster", "us-east1-b" # nodes not allowed
80
80
  # end
81
81
  #
82
82
  # job.done? #=> false
@@ -33,14 +33,14 @@ module Google
33
33
  # See {Google::Cloud::Bigtable::Table#check_and_mutate_row}
34
34
  #
35
35
  # @example
36
- # entry = Google::Cloud::Bigtable::MutationEntry.new("user-1")
37
- # timestamp_micros = (Time.now.to_f * 1000000).round(-3)
36
+ # entry = Google::Cloud::Bigtable::MutationEntry.new "user-1"
37
+ # timestamp_micros = (Time.now.to_f * 1_000_000).round(-3)
38
38
  # entry.set_cell(
39
39
  # "cf1", "fiel01", "XYZ", timestamp: timestamp_micros
40
40
  # ).delete_cells(
41
41
  # "cf2",
42
42
  # "field02",
43
- # timestamp_from: timestamp_micros - 5000000,
43
+ # timestamp_from: timestamp_micros - 5_000_000,
44
44
  # timestamp_to: timestamp_micros
45
45
  # ).delete_from_family("cf3").delete_from_row
46
46
  #
@@ -48,10 +48,10 @@ module Google
48
48
  # require "google/cloud/bigtable"
49
49
  #
50
50
  # bigtable = Google::Cloud::Bigtable.new
51
- # table = bigtable.table("my-instance", "my-table")
51
+ # table = bigtable.table "my-instance", "my-table"
52
52
  #
53
- # entry = table.new_mutation_entry("user-1")
54
- # timestamp_micros = (Time.now.to_f * 1000000).round(-3)
53
+ # entry = table.new_mutation_entry "user-1"
54
+ # timestamp_micros = (Time.now.to_f * 1_000_000).round(-3)
55
55
  # entry.set_cell(
56
56
  # "cf1", "fiel01", "XYZ", timestamp: timestamp_micros
57
57
  # )
@@ -101,16 +101,16 @@ module Google
101
101
  # @return [MutationEntry] `self` object of entry for chaining.
102
102
  #
103
103
  # @example
104
- # entry = Google::Cloud::Bigtable::MutationEntry.new("user-1")
105
- # entry.set_cell("cf1", "field01", "XYZ")
104
+ # entry = Google::Cloud::Bigtable::MutationEntry.new "user-1"
105
+ # entry.set_cell "cf1", "field01", "XYZ"
106
106
  #
107
107
  # @example With timestamp.
108
- # entry = Google::Cloud::Bigtable::MutationEntry.new("user-1")
108
+ # entry = Google::Cloud::Bigtable::MutationEntry.new "user-1"
109
109
  # entry.set_cell(
110
110
  # "cf1",
111
111
  # "field1",
112
112
  # "XYZ",
113
- # timestamp: (Time.now.to_f * 1000000).round(-3) # microseconds
113
+ # timestamp: (Time.now.to_f * 1_000_000).round(-3) # microseconds
114
114
  # )
115
115
  #
116
116
  def set_cell family, qualifier, value, timestamp: nil
@@ -158,25 +158,25 @@ module Google
158
158
  # @return [MutationEntry] `self` object of entry for chaining.
159
159
  #
160
160
  # @example Without timestamp range.
161
- # entry = Google::Cloud::Bigtable::MutationEntry.new("user-1")
162
- # entry.delete_cells("cf1", "field1")
161
+ # entry = Google::Cloud::Bigtable::MutationEntry.new "user-1"
162
+ # entry.delete_cells "cf1", "field1"
163
163
  #
164
164
  # @example With timestamp range.
165
- # entry = Google::Cloud::Bigtable::MutationEntry.new("user-1")
166
- # timestamp_micros = (Time.now.to_f * 1000000).round(-3)
165
+ # entry = Google::Cloud::Bigtable::MutationEntry.new "user-1"
166
+ # timestamp_micros = (Time.now.to_f * 1_000_000).round(-3)
167
167
  # entry.delete_cells(
168
168
  # "cf1",
169
169
  # "field1",
170
- # timestamp_from: timestamp_micros - 5000000,
170
+ # timestamp_from: timestamp_micros - 5_000_000,
171
171
  # timestamp_to: timestamp_micros
172
172
  # )
173
173
  # @example With timestamp range with lower boundary only.
174
- # entry = Google::Cloud::Bigtable::MutationEntry.new("user-1")
175
- # timestamp_micros = (Time.now.to_f * 1000000).round(-3)
174
+ # entry = Google::Cloud::Bigtable::MutationEntry.new "user-1"
175
+ # timestamp_micros = (Time.now.to_f * 1_000_000).round(-3)
176
176
  # entry.delete_cells(
177
177
  # "cf1",
178
178
  # "field1",
179
- # timestamp_from: timestamp_micros - 5000000
179
+ # timestamp_from: timestamp_micros - 5_000_000
180
180
  # )
181
181
  #
182
182
  def delete_cells family, qualifier, timestamp_from: nil, timestamp_to: nil
@@ -203,8 +203,8 @@ module Google
203
203
  # @return [MutationEntry] `self` object of entry for chaining.
204
204
  #
205
205
  # @example
206
- # entry = Google::Cloud::Bigtable::MutationEntry.new("user-1")
207
- # entry.delete_from_family("cf1")
206
+ # entry = Google::Cloud::Bigtable::MutationEntry.new "user-1"
207
+ # entry.delete_from_family "cf1"
208
208
  #
209
209
  def delete_from_family family
210
210
  @mutations << Google::Cloud::Bigtable::V2::Mutation.new(delete_from_family: { family_name: family })
@@ -219,7 +219,7 @@ module Google
219
219
  # @return [MutationEntry] `self` object of entry for chaining.
220
220
  #
221
221
  # @example
222
- # entry = Google::Cloud::Bigtable::MutationEntry.new("user-1")
222
+ # entry = Google::Cloud::Bigtable::MutationEntry.new "user-1"
223
223
  # entry.delete_from_row
224
224
  #
225
225
  def delete_from_row
@@ -50,28 +50,28 @@ module Google
50
50
  #
51
51
  # bigtable = Google::Cloud::Bigtable.new
52
52
  #
53
- # table = bigtable.table("my-instance", "my-table")
53
+ # table = bigtable.table "my-instance", "my-table"
54
54
  #
55
- # entry = table.new_mutation_entry("user-1")
56
- # entry.set_cell("cf1", "field1", "XYZ")
57
- # table.mutate_row(entry)
55
+ # entry = table.new_mutation_entry "user-1"
56
+ # entry.set_cell "cf1", "field1", "XYZ"
57
+ # table.mutate_row entry
58
58
  #
59
59
  # @example Multiple mutations on row.
60
60
  # require "google/cloud/bigtable"
61
61
  #
62
62
  # bigtable = Google::Cloud::Bigtable.new
63
63
  #
64
- # table = bigtable.table("my-instance", "my-table")
64
+ # table = bigtable.table "my-instance", "my-table"
65
65
  #
66
- # entry = table.new_mutation_entry("user-1")
66
+ # entry = table.new_mutation_entry "user-1"
67
67
  # entry.set_cell(
68
68
  # "cf1",
69
69
  # "field1",
70
70
  # "XYZ",
71
- # timestamp: (Time.now.to_f * 1000000).round(-3) # microseconds
72
- # ).delete_cells("cf2", "field02")
71
+ # timestamp: (Time.now.to_f * 1_000_000).round(-3) # microseconds
72
+ # ).delete_cells "cf2", "field02"
73
73
  #
74
- # table.mutate_row(entry)
74
+ # table.mutate_row entry
75
75
  #
76
76
  def mutate_row entry
77
77
  service.mutate_row path, entry.row_key, entry.mutations, app_profile_id: @app_profile_id
@@ -96,12 +96,12 @@ module Google
96
96
  #
97
97
  # bigtable = Google::Cloud::Bigtable.new
98
98
  #
99
- # table = bigtable.table("my-instance", "my-table")
99
+ # table = bigtable.table "my-instance", "my-table"
100
100
  #
101
101
  # entries = []
102
102
  # entries << table.new_mutation_entry("row-1").set_cell("cf1", "field1", "XYZ")
103
103
  # entries << table.new_mutation_entry("row-2").set_cell("cf1", "field1", "ABC")
104
- # responses = table.mutate_rows(entries)
104
+ # responses = table.mutate_rows entries
105
105
  #
106
106
  # responses.each do |response|
107
107
  # puts response.status.description
@@ -131,15 +131,15 @@ module Google
131
131
  # require "google/cloud/bigtable"
132
132
  #
133
133
  # bigtable = Google::Cloud::Bigtable.new
134
- # table = bigtable.table("my-instance", "my-table")
134
+ # table = bigtable.table "my-instance", "my-table"
135
135
  #
136
- # rule_1 = table.new_read_modify_write_rule("cf", "field01")
137
- # rule_1.append("append-xyz")
136
+ # rule_1 = table.new_read_modify_write_rule "cf", "field01"
137
+ # rule_1.append "append-xyz"
138
138
  #
139
- # rule_2 = table.new_read_modify_write_rule("cf", "field01")
140
- # rule_2.increment(1)
139
+ # rule_2 = table.new_read_modify_write_rule "cf", "field01"
140
+ # rule_2.increment 1
141
141
  #
142
- # row = table.read_modify_write_row("user01", [rule_1, rule_2])
142
+ # row = table.read_modify_write_row "user01", [rule_1, rule_2]
143
143
  #
144
144
  # puts row.cells
145
145
  #
@@ -147,11 +147,11 @@ module Google
147
147
  # require "google/cloud/bigtable"
148
148
  #
149
149
  # bigtable = Google::Cloud::Bigtable.new
150
- # table = bigtable.table("my-instance", "my-table")
150
+ # table = bigtable.table "my-instance", "my-table"
151
151
  #
152
152
  # rule = table.new_read_modify_write_rule("cf", "field01").append("append-xyz")
153
153
  #
154
- # row = table.read_modify_write_row("user01", rule)
154
+ # row = table.read_modify_write_row "user01", rule
155
155
  #
156
156
  # puts row.cells
157
157
  #
@@ -214,19 +214,19 @@ module Google
214
214
  # require "google/cloud/bigtable"
215
215
  #
216
216
  # bigtable = Google::Cloud::Bigtable.new
217
- # table = bigtable.table("my-instance", "my-table")
217
+ # table = bigtable.table "my-instance", "my-table"
218
218
  #
219
- # predicate_filter = Google::Cloud::Bigtable::RowFilter.key("user-10")
219
+ # predicate_filter = Google::Cloud::Bigtable::RowFilter.key "user-10"
220
220
  # on_match_mutations = Google::Cloud::Bigtable::MutationEntry.new
221
221
  # on_match_mutations.set_cell(
222
222
  # "cf1",
223
223
  # "field1",
224
224
  # "XYZ",
225
- # timestamp: (Time.now.to_f * 1000000).round(-3) # microseconds
226
- # ).delete_cells("cf2", "field02")
225
+ # timestamp: (Time.now.to_f * 1_000_000).round(-3) # microseconds
226
+ # ).delete_cells "cf2", "field02"
227
227
  #
228
228
  # otherwise_mutations = Google::Cloud::Bigtable::MutationEntry.new
229
- # otherwise_mutations.delete_from_family("cf3")
229
+ # otherwise_mutations.delete_from_family "cf3"
230
230
  #
231
231
  # predicate_matched = table.check_and_mutate_row(
232
232
  # "user01",
@@ -264,9 +264,9 @@ module Google
264
264
  # require "google/cloud/bigtable"
265
265
  #
266
266
  # bigtable = Google::Cloud::Bigtable.new
267
- # table = bigtable.table("my-instance", "my-table")
267
+ # table = bigtable.table "my-instance", "my-table"
268
268
  #
269
- # entry = table.new_mutation_entry("row-key-1")
269
+ # entry = table.new_mutation_entry "row-key-1"
270
270
  #
271
271
  # # Without row key
272
272
  # entry = table.new_mutation_entry
@@ -289,17 +289,17 @@ module Google
289
289
  # require "google/cloud/bigtable"
290
290
  #
291
291
  # bigtable = Google::Cloud::Bigtable.new
292
- # table = bigtable.table("my-instance", "my-table")
293
- # rule = table.new_read_modify_write_rule("cf", "qualifier-1")
294
- # rule.append("append-xyz")
292
+ # table = bigtable.table "my-instance", "my-table"
293
+ # rule = table.new_read_modify_write_rule "cf", "qualifier-1"
294
+ # rule.append "append-xyz"
295
295
  #
296
296
  # @example Create rule to increment qualifier value.
297
297
  # require "google/cloud/bigtable"
298
298
  #
299
299
  # bigtable = Google::Cloud::Bigtable.new
300
- # table = bigtable.table("my-instance", "my-table")
301
- # rule = table.new_read_modify_write_rule("cf", "qualifier-1")
302
- # rule.increment(100)
300
+ # table = bigtable.table "my-instance", "my-table"
301
+ # rule = table.new_read_modify_write_rule "cf", "qualifier-1"
302
+ # rule.increment 100
303
303
  #
304
304
  def new_read_modify_write_rule family, qualifier
305
305
  Google::Cloud::Bigtable::ReadModifyWriteRule.new family, qualifier
@@ -323,12 +323,12 @@ module Google
323
323
  #
324
324
  # bigtable = Google::Cloud::Bigtable.new
325
325
  #
326
- # table = bigtable.table("my-instance", "my-table")
326
+ # table = bigtable.table "my-instance", "my-table"
327
327
  #
328
328
  # entries = []
329
329
  # entries << table.new_mutation_entry("row-1").set_cell("cf1", "field1", "XYZ")
330
330
  # entries << table.new_mutation_entry("row-2").set_cell("cf1", "field1", "ABC")
331
- # responses = table.mutate_rows(entries)
331
+ # responses = table.mutate_rows entries
332
332
  #
333
333
  # responses.each do |response|
334
334
  # puts response.status.description
@@ -49,8 +49,8 @@ module Google
49
49
  # instance = bigtable.instance "my-instance"
50
50
  #
51
51
  # policy = instance.policy
52
- # policy.remove("roles/owner", "user:owner@example.com")
53
- # policy.add("roles/owner", "user:newowner@example.com")
52
+ # policy.remove "roles/owner", "user:owner@example.com"
53
+ # policy.add "roles/owner", "user:newowner@example.com"
54
54
  # policy.roles["roles/viewer"] = ["allUsers"]
55
55
  #
56
56
  class Policy
@@ -85,7 +85,7 @@ module Google
85
85
  # instance = bigtable.instance "my-instance"
86
86
  #
87
87
  # policy = instance.policy
88
- # policy.add("roles/owner", "user:newowner@example.com")
88
+ # policy.add "roles/owner", "user:newowner@example.com"
89
89
  #
90
90
  def add role_name, member
91
91
  role(role_name) << member
@@ -111,7 +111,7 @@ module Google
111
111
  # instance = bigtable.instance "my-instance"
112
112
  #
113
113
  # policy = instance.policy
114
- # policy.remove("roles/owner", "user:newowner@example.com")
114
+ # policy.remove "roles/owner", "user:newowner@example.com"
115
115
  #
116
116
  def remove role_name, member
117
117
  role(role_name).delete member
@@ -46,7 +46,7 @@ module Google
46
46
  #
47
47
  # bigtable = Google::Cloud::Bigtable.new
48
48
  #
49
- # instance = bigtable.instance("my-instance")
49
+ # instance = bigtable.instance "my-instance"
50
50
  # clusters = bigtable.clusters # All clusters in the project
51
51
  #
52
52
  class Project
@@ -117,7 +117,7 @@ module Google
117
117
  #
118
118
  # bigtable = Google::Cloud::Bigtable.new
119
119
  #
120
- # instance = bigtable.instance("my-instance")
120
+ # instance = bigtable.instance "my-instance"
121
121
  #
122
122
  # if instance
123
123
  # puts instance.instance_id
@@ -181,9 +181,9 @@ module Google
181
181
  # "my-instance",
182
182
  # display_name: "Instance for user data",
183
183
  # type: :DEVELOPMENT,
184
- # labels: { "env" => "dev"}
184
+ # labels: { "env" => "dev" }
185
185
  # ) do |clusters|
186
- # clusters.add("test-cluster", "us-east1-b") # nodes not allowed
186
+ # clusters.add "test-cluster", "us-east1-b" # nodes not allowed
187
187
  # end
188
188
  #
189
189
  # job.done? #=> false
@@ -206,9 +206,9 @@ module Google
206
206
  # job = bigtable.create_instance(
207
207
  # "my-instance",
208
208
  # display_name: "Instance for user data",
209
- # labels: { "env" => "dev"}
209
+ # labels: { "env" => "dev" }
210
210
  # ) do |clusters|
211
- # clusters.add("test-cluster", "us-east1-b", nodes: 3, storage_type: :SSD)
211
+ # clusters.add "test-cluster", "us-east1-b", nodes: 3, storage_type: :SSD
212
212
  # end
213
213
  #
214
214
  # job.done? #=> false
@@ -314,14 +314,14 @@ module Google
314
314
  #
315
315
  # bigtable = Google::Cloud::Bigtable.new
316
316
  #
317
- # table = bigtable.table("my-instance", "my-table")
317
+ # table = bigtable.table "my-instance", "my-table"
318
318
  #
319
319
  # @example Retrieve a table with a schema-only view.
320
320
  # require "google/cloud/bigtable"
321
321
  #
322
322
  # bigtable = Google::Cloud::Bigtable.new
323
323
  #
324
- # table = bigtable.table("my-instance", "my-table", perform_lookup: true)
324
+ # table = bigtable.table "my-instance", "my-table", perform_lookup: true
325
325
  # if table
326
326
  # puts table.name
327
327
  # puts table.column_families
@@ -332,7 +332,7 @@ module Google
332
332
  #
333
333
  # bigtable = Google::Cloud::Bigtable.new
334
334
  #
335
- # table = bigtable.table("my-instance", "my-table", view: :FULL, perform_lookup: true)
335
+ # table = bigtable.table "my-instance", "my-table", view: :FULL, perform_lookup: true
336
336
  # if table
337
337
  # puts table.name
338
338
  # puts table.column_families
@@ -402,7 +402,7 @@ module Google
402
402
  #
403
403
  # bigtable = Google::Cloud::Bigtable.new
404
404
  #
405
- # table = bigtable.create_table("my-instance", "my-table")
405
+ # table = bigtable.create_table "my-instance", "my-table"
406
406
  # puts table.name
407
407
  #
408
408
  # @example Create a table with initial splits and column families.
@@ -411,15 +411,15 @@ module Google
411
411
  # bigtable = Google::Cloud::Bigtable.new
412
412
  #
413
413
  # initial_splits = ["user-00001", "user-100000", "others"]
414
- # table = bigtable.create_table("my-instance", "my-table", initial_splits: initial_splits) do |cfm|
415
- # cfm.add('cf1', gc_rule: Google::Cloud::Bigtable::GcRule.max_versions(5))
416
- # cfm.add('cf2', gc_rule: Google::Cloud::Bigtable::GcRule.max_age(600))
414
+ # table = bigtable.create_table "my-instance", "my-table", initial_splits: initial_splits do |cfm|
415
+ # cfm.add "cf1", gc_rule: Google::Cloud::Bigtable::GcRule.max_versions(5)
416
+ # cfm.add "cf2", gc_rule: Google::Cloud::Bigtable::GcRule.max_age(600)
417
417
  #
418
418
  # gc_rule = Google::Cloud::Bigtable::GcRule.union(
419
419
  # Google::Cloud::Bigtable::GcRule.max_age(1800),
420
420
  # Google::Cloud::Bigtable::GcRule.max_versions(3)
421
421
  # )
422
- # cfm.add('cf3', gc_rule: gc_rule)
422
+ # cfm.add "cf3", gc_rule: gc_rule
423
423
  # end
424
424
  #
425
425
  # puts table
@@ -450,7 +450,7 @@ module Google
450
450
  #
451
451
  # bigtable = Google::Cloud::Bigtable.new
452
452
  #
453
- # bigtable.delete_table("my-instance", "my-table")
453
+ # bigtable.delete_table "my-instance", "my-table"
454
454
  #
455
455
  def delete_table instance_id, table_id
456
456
  service.delete_table instance_id, table_id