google-cloud-bigtable 1.0.2 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +34 -0
  3. data/TROUBLESHOOTING.md +2 -8
  4. data/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb +27 -24
  5. data/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb +60 -57
  6. data/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb +90 -23
  7. data/lib/google/bigtable/admin/v2/bigtable_table_admin_services_pb.rb +125 -98
  8. data/lib/google/bigtable/admin/v2/common_pb.rb +9 -4
  9. data/lib/google/bigtable/admin/v2/instance_pb.rb +12 -11
  10. data/lib/google/bigtable/admin/v2/table_pb.rb +52 -14
  11. data/lib/google/bigtable/v2/bigtable_pb.rb +17 -17
  12. data/lib/google/bigtable/v2/bigtable_services_pb.rb +39 -39
  13. data/lib/google/bigtable/v2/data_pb.rb +21 -21
  14. data/lib/google/cloud/bigtable/admin.rb +3 -3
  15. data/lib/google/cloud/bigtable/admin/v2.rb +4 -3
  16. data/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin_client.rb +60 -50
  17. data/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin_client_config.json +1 -1
  18. data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin_client.rb +547 -58
  19. data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin_client_config.json +31 -1
  20. data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/bigtable_instance_admin.rb +46 -39
  21. data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/bigtable_table_admin.rb +281 -53
  22. data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/instance.rb +15 -17
  23. data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/table.rb +119 -26
  24. data/lib/google/cloud/bigtable/app_profile/list.rb +2 -2
  25. data/lib/google/cloud/bigtable/backup.rb +324 -0
  26. data/lib/google/cloud/bigtable/backup/job.rb +87 -0
  27. data/lib/google/cloud/bigtable/backup/list.rb +167 -0
  28. data/lib/google/cloud/bigtable/cluster.rb +99 -0
  29. data/lib/google/cloud/bigtable/cluster/list.rb +1 -1
  30. data/lib/google/cloud/bigtable/column_family_map.rb +1 -1
  31. data/lib/google/cloud/bigtable/instance.rb +4 -7
  32. data/lib/google/cloud/bigtable/instance/list.rb +1 -1
  33. data/lib/google/cloud/bigtable/longrunning_job.rb +11 -0
  34. data/lib/google/cloud/bigtable/policy.rb +1 -1
  35. data/lib/google/cloud/bigtable/service.rb +131 -0
  36. data/lib/google/cloud/bigtable/table.rb +112 -0
  37. data/lib/google/cloud/bigtable/table/cluster_state.rb +25 -4
  38. data/lib/google/cloud/bigtable/table/list.rb +1 -1
  39. data/lib/google/cloud/bigtable/table/restore_job.rb +117 -0
  40. data/lib/google/cloud/bigtable/v2.rb +1 -1
  41. data/lib/google/cloud/bigtable/v2/bigtable_client.rb +3 -0
  42. data/lib/google/cloud/bigtable/v2/bigtable_client_config.json +7 -7
  43. data/lib/google/cloud/bigtable/version.rb +1 -1
  44. metadata +9 -5
@@ -21,7 +21,7 @@ module Google
21
21
  # rubocop:disable LineLength
22
22
 
23
23
  ##
24
- # # Ruby Client for Cloud Bigtable API ([GA](https://github.com/googleapis/google-cloud-ruby#versioning))
24
+ # # Ruby Client for Cloud Bigtable API
25
25
  #
26
26
  # [Cloud Bigtable API][Product Documentation]:
27
27
  # API for reading and writing the contents of Bigtables associated with a
@@ -160,6 +160,9 @@ module Google
160
160
  google_api_client.freeze
161
161
 
162
162
  headers = { :"x-goog-api-client" => google_api_client }
163
+ if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
164
+ headers[:"x-goog-user-project"] = credentials.quota_project_id
165
+ end
163
166
  headers.merge!(metadata) unless metadata.nil?
164
167
  client_config_file = Pathname.new(__dir__).join(
165
168
  "bigtable_client_config.json"
@@ -49,22 +49,22 @@
49
49
  "methods": {
50
50
  "ReadRows": {
51
51
  "timeout_millis": 43200000,
52
- "retry_codes_name": "idempotent",
52
+ "retry_codes_name": "non_idempotent",
53
53
  "retry_params_name": "read_rows_params"
54
54
  },
55
55
  "SampleRowKeys": {
56
- "timeout_millis": 20000,
57
- "retry_codes_name": "idempotent",
58
- "retry_params_name": "idempotent_params"
56
+ "timeout_millis": 60000,
57
+ "retry_codes_name": "non_idempotent",
58
+ "retry_params_name": "non_idempotent_params"
59
59
  },
60
60
  "MutateRow": {
61
- "timeout_millis": 20000,
61
+ "timeout_millis": 60000,
62
62
  "retry_codes_name": "idempotent",
63
63
  "retry_params_name": "idempotent_params"
64
64
  },
65
65
  "MutateRows": {
66
- "timeout_millis": 60000,
67
- "retry_codes_name": "idempotent",
66
+ "timeout_millis": 600000,
67
+ "retry_codes_name": "non_idempotent",
68
68
  "retry_params_name": "mutate_rows_params"
69
69
  },
70
70
  "CheckAndMutateRow": {
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Bigtable
19
- VERSION = "1.0.2".freeze
19
+ VERSION = "1.3.0".freeze
20
20
  end
21
21
  end
22
22
  end
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: 1.0.2
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-23 00:00:00.000000000 Z
11
+ date: 2020-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-cloud-core
@@ -112,14 +112,14 @@ dependencies:
112
112
  requirements:
113
113
  - - "~>"
114
114
  - !ruby/object:Gem::Version
115
- version: '5.10'
115
+ version: '5.14'
116
116
  type: :development
117
117
  prerelease: false
118
118
  version_requirements: !ruby/object:Gem::Requirement
119
119
  requirements:
120
120
  - - "~>"
121
121
  - !ruby/object:Gem::Version
122
- version: '5.10'
122
+ version: '5.14'
123
123
  - !ruby/object:Gem::Dependency
124
124
  name: minitest-focus
125
125
  requirement: !ruby/object:Gem::Requirement
@@ -258,6 +258,9 @@ files:
258
258
  - lib/google/cloud/bigtable/app_profile.rb
259
259
  - lib/google/cloud/bigtable/app_profile/job.rb
260
260
  - lib/google/cloud/bigtable/app_profile/list.rb
261
+ - lib/google/cloud/bigtable/backup.rb
262
+ - lib/google/cloud/bigtable/backup/job.rb
263
+ - lib/google/cloud/bigtable/backup/list.rb
261
264
  - lib/google/cloud/bigtable/chunk_processor.rb
262
265
  - lib/google/cloud/bigtable/cluster.rb
263
266
  - lib/google/cloud/bigtable/cluster/job.rb
@@ -296,6 +299,7 @@ files:
296
299
  - lib/google/cloud/bigtable/table.rb
297
300
  - lib/google/cloud/bigtable/table/cluster_state.rb
298
301
  - lib/google/cloud/bigtable/table/list.rb
302
+ - lib/google/cloud/bigtable/table/restore_job.rb
299
303
  - lib/google/cloud/bigtable/v2.rb
300
304
  - lib/google/cloud/bigtable/v2/bigtable_client.rb
301
305
  - lib/google/cloud/bigtable/v2/bigtable_client_config.json
@@ -326,7 +330,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
326
330
  - !ruby/object:Gem::Version
327
331
  version: '0'
328
332
  requirements: []
329
- rubygems_version: 3.0.6
333
+ rubygems_version: 3.1.3
330
334
  signing_key:
331
335
  specification_version: 4
332
336
  summary: API Client library for Cloud Bigtable API