google-cloud-bigtable 2.6.0 → 2.6.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +2 -1
  3. data/CHANGELOG.md +24 -0
  4. data/OVERVIEW.md +1 -1
  5. data/lib/google/cloud/bigtable/app_profile/job.rb +4 -4
  6. data/lib/google/cloud/bigtable/app_profile/list.rb +5 -7
  7. data/lib/google/cloud/bigtable/app_profile.rb +20 -21
  8. data/lib/google/cloud/bigtable/backup/job.rb +8 -8
  9. data/lib/google/cloud/bigtable/backup/list.rb +9 -11
  10. data/lib/google/cloud/bigtable/backup.rb +36 -36
  11. data/lib/google/cloud/bigtable/cluster/job.rb +2 -2
  12. data/lib/google/cloud/bigtable/cluster.rb +15 -15
  13. data/lib/google/cloud/bigtable/column_family.rb +2 -2
  14. data/lib/google/cloud/bigtable/column_family_map.rb +14 -14
  15. data/lib/google/cloud/bigtable/column_range.rb +7 -7
  16. data/lib/google/cloud/bigtable/encryption_info.rb +4 -4
  17. data/lib/google/cloud/bigtable/gc_rule.rb +20 -20
  18. data/lib/google/cloud/bigtable/instance/cluster_map.rb +6 -6
  19. data/lib/google/cloud/bigtable/instance/job.rb +4 -4
  20. data/lib/google/cloud/bigtable/instance.rb +40 -40
  21. data/lib/google/cloud/bigtable/mutation_entry.rb +21 -21
  22. data/lib/google/cloud/bigtable/mutation_operations.rb +34 -34
  23. data/lib/google/cloud/bigtable/policy.rb +4 -4
  24. data/lib/google/cloud/bigtable/project.rb +15 -15
  25. data/lib/google/cloud/bigtable/read_operations.rb +31 -31
  26. data/lib/google/cloud/bigtable/routing_policy.rb +6 -6
  27. data/lib/google/cloud/bigtable/row_filter/chain_filter.rb +30 -29
  28. data/lib/google/cloud/bigtable/row_filter/condition_filter.rb +6 -6
  29. data/lib/google/cloud/bigtable/row_filter/interleave_filter.rb +27 -26
  30. data/lib/google/cloud/bigtable/row_filter.rb +28 -28
  31. data/lib/google/cloud/bigtable/row_range.rb +18 -18
  32. data/lib/google/cloud/bigtable/sample_row_key.rb +1 -1
  33. data/lib/google/cloud/bigtable/status.rb +2 -2
  34. data/lib/google/cloud/bigtable/table/cluster_state.rb +1 -1
  35. data/lib/google/cloud/bigtable/table/list.rb +2 -2
  36. data/lib/google/cloud/bigtable/table/restore_job.rb +12 -12
  37. data/lib/google/cloud/bigtable/table.rb +34 -34
  38. data/lib/google/cloud/bigtable/value_range.rb +18 -18
  39. data/lib/google/cloud/bigtable/version.rb +1 -1
  40. data/lib/google/cloud/bigtable.rb +2 -0
  41. metadata +3 -3
@@ -30,7 +30,7 @@ module Google
30
30
  # require "google/cloud/bigtable"
31
31
  #
32
32
  # bigtable = Google::Cloud::Bigtable.new
33
- # table = bigtable.table("my-instance", "my-table")
33
+ # table = bigtable.table "my-instance", "my-table"
34
34
  #
35
35
  # # Range that includes all row keys including "user-001" to "user-005"
36
36
  # table.new_row_range.from("user-001").to("user-005", inclusive: true)
@@ -39,19 +39,19 @@ module Google
39
39
  # table.new_row_range.from("user-001").to("user-010")
40
40
  #
41
41
  # # Range that includes all row keys including "user-001" up until end of the row keys.
42
- # table.new_row_range.from("user-001")
42
+ # table.new_row_range.from "user-001"
43
43
  #
44
44
  # # Range that includes all row keys exclusive "user-001" up until end of the row keys.
45
- # table.new_row_range.from("user-001", inclusive: false)
45
+ # table.new_row_range.from "user-001", inclusive: false
46
46
  #
47
47
  # # Range with unbounded from and the exclusive end "user-010"
48
- # table.new_row_range.to("user-010")
48
+ # table.new_row_range.to "user-010"
49
49
  #
50
50
  # # Range that includes all row keys including from and end row keys "user-001", "user-010"
51
- # table.new_row_range.between("user-001", "user-010")
51
+ # table.new_row_range.between "user-001", "user-010"
52
52
  #
53
53
  # # Range that includes all row keys including "user-001" up until "user-010"
54
- # table.new_row_range.of("user-001", "user-010")
54
+ # table.new_row_range.of "user-001", "user-010"
55
55
  #
56
56
  class RowRange
57
57
  # @private
@@ -72,17 +72,17 @@ module Google
72
72
  # require "google/cloud/bigtable"
73
73
  #
74
74
  # bigtable = Google::Cloud::Bigtable.new
75
- # table = bigtable.table("my-instance", "my-table")
75
+ # table = bigtable.table "my-instance", "my-table"
76
76
  #
77
- # range = table.new_row_range.from("key-001")
77
+ # range = table.new_row_range.from "key-001"
78
78
  #
79
79
  # @example Exclusive lower bound.
80
80
  # require "google/cloud/bigtable"
81
81
  #
82
82
  # bigtable = Google::Cloud::Bigtable.new
83
- # table = bigtable.table("my-instance", "my-table")
83
+ # table = bigtable.table "my-instance", "my-table"
84
84
  #
85
- # range = table.new_row_range.from("key-001", inclusive: false)
85
+ # range = table.new_row_range.from "key-001", inclusive: false
86
86
  #
87
87
  def from key, inclusive: true
88
88
  if inclusive
@@ -105,17 +105,17 @@ module Google
105
105
  # require "google/cloud/bigtable"
106
106
  #
107
107
  # bigtable = Google::Cloud::Bigtable.new
108
- # table = bigtable.table("my-instance", "my-table")
108
+ # table = bigtable.table "my-instance", "my-table"
109
109
  #
110
- # range = table.new_row_range.to("key-001", inclusive: true)
110
+ # range = table.new_row_range.to "key-001", inclusive: true
111
111
  #
112
112
  # @example Exclusive upper bound.
113
113
  # require "google/cloud/bigtable"
114
114
  #
115
115
  # bigtable = Google::Cloud::Bigtable.new
116
- # table = bigtable.table("my-instance", "my-table")
116
+ # table = bigtable.table "my-instance", "my-table"
117
117
  #
118
- # range = table.new_row_range.to("key-001")
118
+ # range = table.new_row_range.to "key-001"
119
119
  #
120
120
  def to key, inclusive: false
121
121
  if inclusive
@@ -138,9 +138,9 @@ module Google
138
138
  # require "google/cloud/bigtable"
139
139
  #
140
140
  # bigtable = Google::Cloud::Bigtable.new
141
- # table = bigtable.table("my-instance", "my-table")
141
+ # table = bigtable.table "my-instance", "my-table"
142
142
  #
143
- # range = table.new_row_range.between("key-001", "key-010")
143
+ # range = table.new_row_range.between "key-001", "key-010"
144
144
  #
145
145
  def between from_key, to_key
146
146
  from(from_key).to(to_key, inclusive: true)
@@ -158,9 +158,9 @@ module Google
158
158
  # require "google/cloud/bigtable"
159
159
  #
160
160
  # bigtable = Google::Cloud::Bigtable.new
161
- # table = bigtable.table("my-instance", "my-table")
161
+ # table = bigtable.table "my-instance", "my-table"
162
162
  #
163
- # range = table.new_row_range.of("key-001", "key-010")
163
+ # range = table.new_row_range.of "key-001", "key-010"
164
164
  #
165
165
  def of from_key, to_key
166
166
  from(from_key).to(to_key)
@@ -42,7 +42,7 @@ module Google
42
42
  #
43
43
  # bigtable = Google::Cloud::Bigtable.new
44
44
  #
45
- # table = bigtable.table("my-instance", "my-table")
45
+ # table = bigtable.table "my-instance", "my-table"
46
46
  #
47
47
  # table.sample_row_keys.each do |r|
48
48
  # p r
@@ -35,12 +35,12 @@ module Google
35
35
  #
36
36
  # bigtable = Google::Cloud::Bigtable.new
37
37
  #
38
- # table = bigtable.table("my-instance", "my-table")
38
+ # table = bigtable.table "my-instance", "my-table"
39
39
  #
40
40
  # entries = []
41
41
  # entries << table.new_mutation_entry("row-1").set_cell("cf1", "field1", "XYZ")
42
42
  # entries << table.new_mutation_entry("row-2").set_cell("cf1", "field1", "ABC")
43
- # responses = table.mutate_rows(entries)
43
+ # responses = table.mutate_rows entries
44
44
  #
45
45
  # responses.each do |response|
46
46
  # puts response.status.description
@@ -31,7 +31,7 @@ module Google
31
31
  #
32
32
  # bigtable = Google::Cloud::Bigtable.new
33
33
  #
34
- # table = bigtable.table("my-instance", "my-table", view: :FULL, perform_lookup: true)
34
+ # table = bigtable.table "my-instance", "my-table", view: :FULL, perform_lookup: true
35
35
  #
36
36
  # table.cluster_states.each do |cs|
37
37
  # puts cs.cluster_name
@@ -48,7 +48,7 @@ module Google
48
48
  #
49
49
  # bigtable = Google::Cloud::Bigtable.new
50
50
  #
51
- # tables = bigtable.tables("my-instance")
51
+ # tables = bigtable.tables "my-instance"
52
52
  # if tables.next?
53
53
  # next_tables = tables.next
54
54
  # end
@@ -67,7 +67,7 @@ module Google
67
67
  #
68
68
  # bigtable = Google::Cloud::Bigtable.new
69
69
  #
70
- # tables = bigtable.tables("my-instance")
70
+ # tables = bigtable.tables "my-instance"
71
71
  # if tables.next?
72
72
  # next_tables = tables.next
73
73
  # end
@@ -32,12 +32,12 @@ module Google
32
32
  # require "google/cloud/bigtable"
33
33
  #
34
34
  # bigtable = Google::Cloud::Bigtable.new
35
- # instance = bigtable.instance("my-instance")
36
- # cluster = instance.cluster("my-cluster")
35
+ # instance = bigtable.instance "my-instance"
36
+ # cluster = instance.cluster "my-cluster"
37
37
  #
38
- # backup = cluster.backup("my-backup")
38
+ # backup = cluster.backup "my-backup"
39
39
  #
40
- # job = backup.restore("my-new-table")
40
+ # job = backup.restore "my-new-table"
41
41
  #
42
42
  # job.wait_until_done!
43
43
  # job.done? #=> true
@@ -60,12 +60,12 @@ module Google
60
60
  # require "google/cloud/bigtable"
61
61
  #
62
62
  # bigtable = Google::Cloud::Bigtable.new
63
- # instance = bigtable.instance("my-instance")
64
- # cluster = instance.cluster("my-cluster")
63
+ # instance = bigtable.instance "my-instance"
64
+ # cluster = instance.cluster "my-cluster"
65
65
  #
66
- # backup = cluster.backup("my-backup")
66
+ # backup = cluster.backup "my-backup"
67
67
  #
68
- # job = backup.restore("my-new-table")
68
+ # job = backup.restore "my-new-table"
69
69
  #
70
70
  # job.wait_until_done!
71
71
  # job.done? #=> true
@@ -90,12 +90,12 @@ module Google
90
90
  # require "google/cloud/bigtable"
91
91
  #
92
92
  # bigtable = Google::Cloud::Bigtable.new
93
- # instance = bigtable.instance("my-instance")
94
- # cluster = instance.cluster("my-cluster")
93
+ # instance = bigtable.instance "my-instance"
94
+ # cluster = instance.cluster "my-cluster"
95
95
  #
96
- # backup = cluster.backup("my-backup")
96
+ # backup = cluster.backup "my-backup"
97
97
  #
98
- # job = backup.restore("my-new-table")
98
+ # job = backup.restore "my-new-table"
99
99
  #
100
100
  # job.wait_until_done!
101
101
  # job.done? #=> true
@@ -37,7 +37,7 @@ module Google
37
37
  #
38
38
  # bigtable = Google::Cloud::Bigtable.new
39
39
  #
40
- # table = bigtable.table("my-instance", "my-table")
40
+ # table = bigtable.table "my-instance", "my-table"
41
41
  #
42
42
  # if table.exists?
43
43
  # p "Table exists."
@@ -158,7 +158,7 @@ module Google
158
158
  #
159
159
  # bigtable = Google::Cloud::Bigtable.new
160
160
  #
161
- # table = bigtable.table("my-instance", "my-table", view: :FULL, perform_lookup: true)
161
+ # table = bigtable.table "my-instance", "my-table", view: :FULL, perform_lookup: true
162
162
  #
163
163
  # table.cluster_states.each do |cs|
164
164
  # puts cs.cluster_name
@@ -207,7 +207,7 @@ module Google
207
207
  #
208
208
  # bigtable = Google::Cloud::Bigtable.new
209
209
  #
210
- # table = bigtable.table("my-instance", "my-table", perform_lookup: true)
210
+ # table = bigtable.table "my-instance", "my-table", perform_lookup: true
211
211
  #
212
212
  # table.column_families.each do |name, cf|
213
213
  # puts name
@@ -222,15 +222,15 @@ module Google
222
222
  #
223
223
  # bigtable = Google::Cloud::Bigtable.new
224
224
  #
225
- # table = bigtable.table("my-instance", "my-table", perform_lookup: true)
225
+ # table = bigtable.table "my-instance", "my-table", perform_lookup: true
226
226
  #
227
227
  # table.column_families do |cfm|
228
228
  # cfm.add "cf4", gc_rule: Google::Cloud::Bigtable::GcRule.max_age(600)
229
229
  # cfm.add "cf5", gc_rule: Google::Cloud::Bigtable::GcRule.max_versions(5)
230
230
  #
231
- # rule_1 = Google::Cloud::Bigtable::GcRule.max_versions(3)
232
- # rule_2 = Google::Cloud::Bigtable::GcRule.max_age(600)
233
- # rule_union = Google::Cloud::Bigtable::GcRule.union(rule_1, rule_2)
231
+ # rule_1 = Google::Cloud::Bigtable::GcRule.max_versions 3
232
+ # rule_2 = Google::Cloud::Bigtable::GcRule.max_age 600
233
+ # rule_union = Google::Cloud::Bigtable::GcRule.union rule_1, rule_2
234
234
  # cfm.update "cf2", gc_rule: rule_union
235
235
  #
236
236
  # cfm.delete "cf3"
@@ -296,7 +296,7 @@ module Google
296
296
  #
297
297
  # bigtable = Google::Cloud::Bigtable.new
298
298
  #
299
- # table = bigtable.table("my-instance", "my-table", perform_lookup: true)
299
+ # table = bigtable.table "my-instance", "my-table", perform_lookup: true
300
300
  # policy = table.policy
301
301
  #
302
302
  # @example Update the policy by passing a block.
@@ -304,10 +304,10 @@ module Google
304
304
  #
305
305
  # bigtable = Google::Cloud::Bigtable.new
306
306
  #
307
- # table = bigtable.table("my-instance", "my-table", perform_lookup: true)
307
+ # table = bigtable.table "my-instance", "my-table", perform_lookup: true
308
308
  #
309
309
  # table.policy do |p|
310
- # p.add("roles/owner", "user:owner@example.com")
310
+ # p.add "roles/owner", "user:owner@example.com"
311
311
  # end # 2 API calls
312
312
  #
313
313
  def policy
@@ -338,11 +338,11 @@ module Google
338
338
  #
339
339
  # bigtable = Google::Cloud::Bigtable.new
340
340
  #
341
- # table = bigtable.table("my-instance", "my-table", perform_lookup: true)
341
+ # table = bigtable.table "my-instance", "my-table", perform_lookup: true
342
342
  #
343
343
  # policy = table.policy
344
- # policy.add("roles/owner", "user:owner@example.com")
345
- # updated_policy = table.update_policy(policy)
344
+ # policy.add "roles/owner", "user:owner@example.com"
345
+ # updated_policy = table.update_policy policy
346
346
  #
347
347
  # puts updated_policy.roles
348
348
  #
@@ -372,7 +372,7 @@ module Google
372
372
  #
373
373
  # bigtable = Google::Cloud::Bigtable.new
374
374
  #
375
- # table = bigtable.table("my-instance", "my-table", perform_lookup: true)
375
+ # table = bigtable.table "my-instance", "my-table", perform_lookup: true
376
376
  #
377
377
  # permissions = table.test_iam_permissions(
378
378
  # "bigtable.tables.delete",
@@ -397,7 +397,7 @@ module Google
397
397
  #
398
398
  # bigtable = Google::Cloud::Bigtable.new
399
399
  #
400
- # table = bigtable.table("my-instance", "my-table")
400
+ # table = bigtable.table "my-instance", "my-table"
401
401
  # table.delete
402
402
  #
403
403
  def delete
@@ -416,7 +416,7 @@ module Google
416
416
  #
417
417
  # bigtable = Google::Cloud::Bigtable.new
418
418
  #
419
- # table = bigtable.table("my-instance", "my-table")
419
+ # table = bigtable.table "my-instance", "my-table"
420
420
  #
421
421
  # if table.exists?
422
422
  # p "Table exists."
@@ -429,8 +429,8 @@ module Google
429
429
  #
430
430
  # bigtable = Google::Cloud::Bigtable.new
431
431
  #
432
- # instance = bigtable.instance("my-instance")
433
- # table = instance.table("my-table")
432
+ # instance = bigtable.instance "my-instance"
433
+ # table = instance.table "my-table"
434
434
  #
435
435
  # if table.exists?
436
436
  # p "Table exists."
@@ -489,8 +489,8 @@ module Google
489
489
  #
490
490
  # bigtable = Google::Cloud::Bigtable.new
491
491
  #
492
- # instance = bigtable.instance("my-instance")
493
- # table = instance.table("my-table")
492
+ # instance = bigtable.instance "my-instance"
493
+ # table = instance.table "my-table"
494
494
  #
495
495
  # table.generate_consistency_token # "l947XelENinaxJQP0nnrZJjHnAF7YrwW8HCJLotwrF"
496
496
  #
@@ -512,12 +512,12 @@ module Google
512
512
  #
513
513
  # bigtable = Google::Cloud::Bigtable.new
514
514
  #
515
- # instance = bigtable.instance("my-instance")
516
- # table = instance.table("my-table")
515
+ # instance = bigtable.instance "my-instance"
516
+ # table = instance.table "my-table"
517
517
  #
518
518
  # token = "l947XelENinaxJQP0nnrZJjHnAF7YrwW8HCJLotwrF"
519
519
  #
520
- # if table.check_consistency(token)
520
+ # if table.check_consistency token
521
521
  # puts "Replication is consistent"
522
522
  # end
523
523
  #
@@ -546,14 +546,14 @@ module Google
546
546
  #
547
547
  # bigtable = Google::Cloud::Bigtable.new
548
548
  #
549
- # table = bigtable.table("my-instance", "my-table", perform_lookup: true)
549
+ # table = bigtable.table "my-instance", "my-table", perform_lookup: true
550
550
  #
551
551
  # if table.wait_for_replication
552
552
  # puts "Replication done"
553
553
  # end
554
554
  #
555
555
  # # With custom timeout and interval
556
- # if table.wait_for_replication(timeout: 300, check_interval: 10)
556
+ # if table.wait_for_replication timeout: 300, check_interval: 10
557
557
  # puts "Replication done"
558
558
  # end
559
559
  #
@@ -585,12 +585,12 @@ module Google
585
585
  #
586
586
  # bigtable = Google::Cloud::Bigtable.new
587
587
  #
588
- # instance = bigtable.instance("my-instance")
589
- # table = instance.table("my-table")
588
+ # instance = bigtable.instance "my-instance"
589
+ # table = instance.table "my-table"
590
590
  # table.delete_all_rows
591
591
  #
592
592
  # # With timeout
593
- # table.delete_all_rows(timeout: 120) # 120 seconds.
593
+ # table.delete_all_rows timeout: 120 # 120 seconds.
594
594
  #
595
595
  def delete_all_rows timeout: nil
596
596
  drop_row_range delete_all_data: true, timeout: timeout
@@ -607,12 +607,12 @@ module Google
607
607
  #
608
608
  # bigtable = Google::Cloud::Bigtable.new
609
609
  #
610
- # table = bigtable.table("my-instance", "my-table")
610
+ # table = bigtable.table "my-instance", "my-table"
611
611
  #
612
- # table.delete_rows_by_prefix("user-100")
612
+ # table.delete_rows_by_prefix "user-100"
613
613
  #
614
614
  # # With timeout
615
- # table.delete_rows_by_prefix("user-1", timeout: 120) # 120 seconds.
615
+ # table.delete_rows_by_prefix "user-1", timeout: 120 # 120 seconds.
616
616
  #
617
617
  def delete_rows_by_prefix prefix, timeout: nil
618
618
  drop_row_range row_key_prefix: prefix, timeout: timeout
@@ -631,13 +631,13 @@ module Google
631
631
  #
632
632
  # bigtable = Google::Cloud::Bigtable.new
633
633
  #
634
- # table = bigtable.table("my-instance", "my-table")
634
+ # table = bigtable.table "my-instance", "my-table"
635
635
  #
636
636
  # # Delete rows using row key prefix.
637
- # table.drop_row_range(row_key_prefix: "user-100")
637
+ # table.drop_row_range row_key_prefix: "user-100"
638
638
  #
639
639
  # # Delete all data With timeout
640
- # table.drop_row_range(delete_all_data: true, timeout: 120) # 120 seconds.
640
+ # table.drop_row_range delete_all_data: true, timeout: 120 # 120 seconds.
641
641
  #
642
642
  def drop_row_range row_key_prefix: nil, delete_all_data: nil, timeout: nil
643
643
  ensure_service!
@@ -34,7 +34,7 @@ module Google
34
34
  # require "google/cloud/bigtable"
35
35
  #
36
36
  # bigtable = Google::Cloud::Bigtable.new
37
- # table = bigtable.table("my-instance", "my-table")
37
+ # table = bigtable.table "my-instance", "my-table"
38
38
  #
39
39
  # # Range that includes all row keys including "value-001" to "value-005" excluding.
40
40
  # table.new_value_range.from("value-001").to("value-005")
@@ -43,19 +43,19 @@ module Google
43
43
  # table.new_value_range.from("value-001").to("value-010", inclusive: true)
44
44
  #
45
45
  # # Range that includes all row keys including "value-001" up until end of the row keys.
46
- # table.new_value_range.from("value-001")
46
+ # table.new_value_range.from "value-001"
47
47
  #
48
48
  # # Range that includes all row keys exclusive "value-001" up until end of the row keys.
49
- # table.new_value_range.from("value-001", inclusive: false)
49
+ # table.new_value_range.from "value-001", inclusive: false
50
50
  #
51
51
  # # Range with unbounded from and the exclusive end "value-100".
52
- # table.new_value_range.to("value-100")
52
+ # table.new_value_range.to "value-100"
53
53
  #
54
54
  # # Range that includes all row keys including from and end row keys "value-001", "value-100".
55
- # table.new_value_range.between("value-001", "value-100")
55
+ # table.new_value_range.between "value-001", "value-100"
56
56
  #
57
57
  # # Range that includes all row keys including "value-001" up until "value-100".
58
- # table.new_value_range.of("value-001", "value-100")
58
+ # table.new_value_range.of "value-001", "value-100"
59
59
  #
60
60
  class ValueRange
61
61
  # @private
@@ -78,17 +78,17 @@ module Google
78
78
  # require "google/cloud/bigtable"
79
79
  #
80
80
  # bigtable = Google::Cloud::Bigtable.new
81
- # table = bigtable.table("my-instance", "my-table")
81
+ # table = bigtable.table "my-instance", "my-table"
82
82
  #
83
- # range = table.new_value_range.from("value-001")
83
+ # range = table.new_value_range.from "value-001"
84
84
  #
85
85
  # @example Exclusive lower bound.
86
86
  # require "google/cloud/bigtable"
87
87
  #
88
88
  # bigtable = Google::Cloud::Bigtable.new
89
- # table = bigtable.table("my-instance", "my-table")
89
+ # table = bigtable.table "my-instance", "my-table"
90
90
  #
91
- # range = table.new_value_range.from("value-001", inclusive: false)
91
+ # range = table.new_value_range.from "value-001", inclusive: false
92
92
  #
93
93
  def from value, inclusive: true
94
94
  # If value is integer, covert it to a 64-bit signed big-endian integer.
@@ -115,17 +115,17 @@ module Google
115
115
  # require "google/cloud/bigtable"
116
116
  #
117
117
  # bigtable = Google::Cloud::Bigtable.new
118
- # table = bigtable.table("my-instance", "my-table")
118
+ # table = bigtable.table "my-instance", "my-table"
119
119
  #
120
- # range = table.new_value_range.to("value-010", inclusive: true)
120
+ # range = table.new_value_range.to "value-010", inclusive: true
121
121
  #
122
122
  # @example Exclusive upper bound.
123
123
  # require "google/cloud/bigtable"
124
124
  #
125
125
  # bigtable = Google::Cloud::Bigtable.new
126
- # table = bigtable.table("my-instance", "my-table")
126
+ # table = bigtable.table "my-instance", "my-table"
127
127
  #
128
- # range = table.new_value_range.to("value-010")
128
+ # range = table.new_value_range.to "value-010"
129
129
  #
130
130
  def to value, inclusive: false
131
131
  # If value is integer, covert it to a 64-bit signed big-endian integer.
@@ -154,9 +154,9 @@ module Google
154
154
  # require "google/cloud/bigtable"
155
155
  #
156
156
  # bigtable = Google::Cloud::Bigtable.new
157
- # table = bigtable.table("my-instance", "my-table")
157
+ # table = bigtable.table "my-instance", "my-table"
158
158
  #
159
- # range = table.new_value_range.between("value-001", "value-010")
159
+ # range = table.new_value_range.between "value-001", "value-010"
160
160
  #
161
161
  def between from_value, to_value
162
162
  from(from_value).to(to_value, inclusive: true)
@@ -178,9 +178,9 @@ module Google
178
178
  # require "google/cloud/bigtable"
179
179
  #
180
180
  # bigtable = Google::Cloud::Bigtable.new
181
- # table = bigtable.table("my-instance", "my-table")
181
+ # table = bigtable.table "my-instance", "my-table"
182
182
  #
183
- # range = table.new_value_range.of("value-001", "value-010")
183
+ # range = table.new_value_range.of "value-001", "value-010"
184
184
  #
185
185
  def of from_value, to_value
186
186
  from(from_value).to(to_value)
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Bigtable
19
- VERSION = "2.6.0".freeze
19
+ VERSION = "2.6.4".freeze
20
20
  end
21
21
  end
22
22
  end
@@ -109,6 +109,8 @@ module Google
109
109
  # parameter `keyfile` is considered deprecated, but may also be used.)
110
110
  # * `scope` - (String, Array<String>) The OAuth 2.0 scopes controlling
111
111
  # the set of resources and operations that the connection can access.
112
+ # * `quota_project` - (String) The project ID for a project that can be
113
+ # used by client libraries for quota and billing purposes.
112
114
  # * `timeout` - (Integer) Default timeout to use in requests.
113
115
  # * `endpoint` - (String) Override of the endpoint host name, or `nil`
114
116
  # to use the default endpoint.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-bigtable
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.0
4
+ version: 2.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-03 00:00:00.000000000 Z
11
+ date: 2021-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-cloud-bigtable-admin-v2
@@ -249,7 +249,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
249
249
  - !ruby/object:Gem::Version
250
250
  version: '0'
251
251
  requirements: []
252
- rubygems_version: 3.2.16
252
+ rubygems_version: 3.2.17
253
253
  signing_key:
254
254
  specification_version: 4
255
255
  summary: API Client library for Cloud Bigtable API