google-cloud-bigtable 1.3.0 → 2.0.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 (84) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +1 -1
  3. data/CHANGELOG.md +26 -0
  4. data/lib/google-cloud-bigtable.rb +29 -27
  5. data/lib/google/cloud/bigtable.rb +18 -26
  6. data/lib/google/cloud/bigtable/app_profile.rb +3 -3
  7. data/lib/google/cloud/bigtable/app_profile/list.rb +4 -2
  8. data/lib/google/cloud/bigtable/backup.rb +2 -2
  9. data/lib/google/cloud/bigtable/backup/list.rb +2 -2
  10. data/lib/google/cloud/bigtable/chunk_processor.rb +1 -1
  11. data/lib/google/cloud/bigtable/cluster.rb +2 -2
  12. data/lib/google/cloud/bigtable/cluster/list.rb +1 -1
  13. data/lib/google/cloud/bigtable/column_family.rb +2 -2
  14. data/lib/google/cloud/bigtable/column_family_map.rb +10 -10
  15. data/lib/google/cloud/bigtable/column_range.rb +2 -2
  16. data/lib/google/cloud/bigtable/credentials.rb +36 -2
  17. data/lib/google/cloud/bigtable/gc_rule.rb +7 -7
  18. data/lib/google/cloud/bigtable/instance.rb +6 -6
  19. data/lib/google/cloud/bigtable/instance/cluster_map.rb +1 -1
  20. data/lib/google/cloud/bigtable/instance/list.rb +1 -1
  21. data/lib/google/cloud/bigtable/longrunning_job.rb +2 -2
  22. data/lib/google/cloud/bigtable/mutation_entry.rb +10 -9
  23. data/lib/google/cloud/bigtable/mutation_operations.rb +2 -2
  24. data/lib/google/cloud/bigtable/project.rb +1 -1
  25. data/lib/google/cloud/bigtable/read_modify_write_rule.rb +2 -2
  26. data/lib/google/cloud/bigtable/read_operations.rb +2 -2
  27. data/lib/google/cloud/bigtable/routing_policy.rb +2 -2
  28. data/lib/google/cloud/bigtable/row_filter/chain_filter.rb +3 -3
  29. data/lib/google/cloud/bigtable/row_filter/condition_filter.rb +3 -3
  30. data/lib/google/cloud/bigtable/row_filter/interleave_filter.rb +3 -3
  31. data/lib/google/cloud/bigtable/row_filter/simple_filter.rb +3 -3
  32. data/lib/google/cloud/bigtable/row_range.rb +2 -2
  33. data/lib/google/cloud/bigtable/rows_mutator.rb +3 -3
  34. data/lib/google/cloud/bigtable/rows_reader.rb +10 -10
  35. data/lib/google/cloud/bigtable/sample_row_key.rb +2 -2
  36. data/lib/google/cloud/bigtable/service.rb +198 -281
  37. data/lib/google/cloud/bigtable/table.rb +5 -4
  38. data/lib/google/cloud/bigtable/table/cluster_state.rb +2 -2
  39. data/lib/google/cloud/bigtable/table/list.rb +1 -1
  40. data/lib/google/cloud/bigtable/value_range.rb +2 -2
  41. data/lib/google/cloud/bigtable/version.rb +1 -1
  42. metadata +11 -93
  43. data/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb +0 -145
  44. data/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb +0 -90
  45. data/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb +0 -208
  46. data/lib/google/bigtable/admin/v2/bigtable_table_admin_services_pb.rb +0 -154
  47. data/lib/google/bigtable/admin/v2/common_pb.rb +0 -30
  48. data/lib/google/bigtable/admin/v2/instance_pb.rb +0 -74
  49. data/lib/google/bigtable/admin/v2/table_pb.rb +0 -127
  50. data/lib/google/bigtable/v2/bigtable_pb.rb +0 -113
  51. data/lib/google/bigtable/v2/bigtable_services_pb.rb +0 -68
  52. data/lib/google/bigtable/v2/data_pb.rb +0 -156
  53. data/lib/google/cloud/bigtable/admin.rb +0 -202
  54. data/lib/google/cloud/bigtable/admin/credentials.rb +0 -27
  55. data/lib/google/cloud/bigtable/admin/v2.rb +0 -223
  56. data/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin_client.rb +0 -1451
  57. data/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin_client_config.json +0 -139
  58. data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin_client.rb +0 -1734
  59. data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin_client_config.json +0 -163
  60. data/lib/google/cloud/bigtable/admin/v2/credentials.rb +0 -51
  61. data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/bigtable_instance_admin.rb +0 -297
  62. data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/bigtable_table_admin.rb +0 -587
  63. data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/instance.rb +0 -193
  64. data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/table.rb +0 -303
  65. data/lib/google/cloud/bigtable/admin/v2/doc/google/iam/v1/iam_policy.rb +0 -64
  66. data/lib/google/cloud/bigtable/admin/v2/doc/google/iam/v1/options.rb +0 -33
  67. data/lib/google/cloud/bigtable/admin/v2/doc/google/iam/v1/policy.rb +0 -151
  68. data/lib/google/cloud/bigtable/admin/v2/doc/google/longrunning/operations.rb +0 -51
  69. data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/any.rb +0 -131
  70. data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/duration.rb +0 -91
  71. data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/empty.rb +0 -29
  72. data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/field_mask.rb +0 -222
  73. data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/timestamp.rb +0 -113
  74. data/lib/google/cloud/bigtable/admin/v2/doc/google/rpc/status.rb +0 -39
  75. data/lib/google/cloud/bigtable/admin/v2/doc/google/type/expr.rb +0 -45
  76. data/lib/google/cloud/bigtable/v2.rb +0 -146
  77. data/lib/google/cloud/bigtable/v2/bigtable_client.rb +0 -591
  78. data/lib/google/cloud/bigtable/v2/bigtable_client_config.json +0 -83
  79. data/lib/google/cloud/bigtable/v2/credentials.rb +0 -46
  80. data/lib/google/cloud/bigtable/v2/doc/google/bigtable/v2/bigtable.rb +0 -290
  81. data/lib/google/cloud/bigtable/v2/doc/google/bigtable/v2/data.rb +0 -493
  82. data/lib/google/cloud/bigtable/v2/doc/google/protobuf/any.rb +0 -131
  83. data/lib/google/cloud/bigtable/v2/doc/google/protobuf/wrappers.rb +0 -34
  84. data/lib/google/cloud/bigtable/v2/doc/google/rpc/status.rb +0 -39
@@ -1,208 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/bigtable/admin/v2/bigtable_table_admin.proto
3
-
4
-
5
- require 'google/protobuf'
6
-
7
- require 'google/api/annotations_pb'
8
- require 'google/api/client_pb'
9
- require 'google/api/field_behavior_pb'
10
- require 'google/api/resource_pb'
11
- require 'google/bigtable/admin/v2/common_pb'
12
- require 'google/bigtable/admin/v2/table_pb'
13
- require 'google/iam/v1/iam_policy_pb'
14
- require 'google/iam/v1/policy_pb'
15
- require 'google/longrunning/operations_pb'
16
- require 'google/protobuf/duration_pb'
17
- require 'google/protobuf/empty_pb'
18
- require 'google/protobuf/field_mask_pb'
19
- require 'google/protobuf/timestamp_pb'
20
- Google::Protobuf::DescriptorPool.generated_pool.build do
21
- add_message "google.bigtable.admin.v2.CreateTableRequest" do
22
- optional :parent, :string, 1
23
- optional :table_id, :string, 2
24
- optional :table, :message, 3, "google.bigtable.admin.v2.Table"
25
- repeated :initial_splits, :message, 4, "google.bigtable.admin.v2.CreateTableRequest.Split"
26
- end
27
- add_message "google.bigtable.admin.v2.CreateTableRequest.Split" do
28
- optional :key, :bytes, 1
29
- end
30
- add_message "google.bigtable.admin.v2.CreateTableFromSnapshotRequest" do
31
- optional :parent, :string, 1
32
- optional :table_id, :string, 2
33
- optional :source_snapshot, :string, 3
34
- end
35
- add_message "google.bigtable.admin.v2.DropRowRangeRequest" do
36
- optional :name, :string, 1
37
- oneof :target do
38
- optional :row_key_prefix, :bytes, 2
39
- optional :delete_all_data_from_table, :bool, 3
40
- end
41
- end
42
- add_message "google.bigtable.admin.v2.ListTablesRequest" do
43
- optional :parent, :string, 1
44
- optional :view, :enum, 2, "google.bigtable.admin.v2.Table.View"
45
- optional :page_size, :int32, 4
46
- optional :page_token, :string, 3
47
- end
48
- add_message "google.bigtable.admin.v2.ListTablesResponse" do
49
- repeated :tables, :message, 1, "google.bigtable.admin.v2.Table"
50
- optional :next_page_token, :string, 2
51
- end
52
- add_message "google.bigtable.admin.v2.GetTableRequest" do
53
- optional :name, :string, 1
54
- optional :view, :enum, 2, "google.bigtable.admin.v2.Table.View"
55
- end
56
- add_message "google.bigtable.admin.v2.DeleteTableRequest" do
57
- optional :name, :string, 1
58
- end
59
- add_message "google.bigtable.admin.v2.ModifyColumnFamiliesRequest" do
60
- optional :name, :string, 1
61
- repeated :modifications, :message, 2, "google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification"
62
- end
63
- add_message "google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification" do
64
- optional :id, :string, 1
65
- oneof :mod do
66
- optional :create, :message, 2, "google.bigtable.admin.v2.ColumnFamily"
67
- optional :update, :message, 3, "google.bigtable.admin.v2.ColumnFamily"
68
- optional :drop, :bool, 4
69
- end
70
- end
71
- add_message "google.bigtable.admin.v2.GenerateConsistencyTokenRequest" do
72
- optional :name, :string, 1
73
- end
74
- add_message "google.bigtable.admin.v2.GenerateConsistencyTokenResponse" do
75
- optional :consistency_token, :string, 1
76
- end
77
- add_message "google.bigtable.admin.v2.CheckConsistencyRequest" do
78
- optional :name, :string, 1
79
- optional :consistency_token, :string, 2
80
- end
81
- add_message "google.bigtable.admin.v2.CheckConsistencyResponse" do
82
- optional :consistent, :bool, 1
83
- end
84
- add_message "google.bigtable.admin.v2.SnapshotTableRequest" do
85
- optional :name, :string, 1
86
- optional :cluster, :string, 2
87
- optional :snapshot_id, :string, 3
88
- optional :ttl, :message, 4, "google.protobuf.Duration"
89
- optional :description, :string, 5
90
- end
91
- add_message "google.bigtable.admin.v2.GetSnapshotRequest" do
92
- optional :name, :string, 1
93
- end
94
- add_message "google.bigtable.admin.v2.ListSnapshotsRequest" do
95
- optional :parent, :string, 1
96
- optional :page_size, :int32, 2
97
- optional :page_token, :string, 3
98
- end
99
- add_message "google.bigtable.admin.v2.ListSnapshotsResponse" do
100
- repeated :snapshots, :message, 1, "google.bigtable.admin.v2.Snapshot"
101
- optional :next_page_token, :string, 2
102
- end
103
- add_message "google.bigtable.admin.v2.DeleteSnapshotRequest" do
104
- optional :name, :string, 1
105
- end
106
- add_message "google.bigtable.admin.v2.SnapshotTableMetadata" do
107
- optional :original_request, :message, 1, "google.bigtable.admin.v2.SnapshotTableRequest"
108
- optional :request_time, :message, 2, "google.protobuf.Timestamp"
109
- optional :finish_time, :message, 3, "google.protobuf.Timestamp"
110
- end
111
- add_message "google.bigtable.admin.v2.CreateTableFromSnapshotMetadata" do
112
- optional :original_request, :message, 1, "google.bigtable.admin.v2.CreateTableFromSnapshotRequest"
113
- optional :request_time, :message, 2, "google.protobuf.Timestamp"
114
- optional :finish_time, :message, 3, "google.protobuf.Timestamp"
115
- end
116
- add_message "google.bigtable.admin.v2.CreateBackupRequest" do
117
- optional :parent, :string, 1
118
- optional :backup_id, :string, 2
119
- optional :backup, :message, 3, "google.bigtable.admin.v2.Backup"
120
- end
121
- add_message "google.bigtable.admin.v2.CreateBackupMetadata" do
122
- optional :name, :string, 1
123
- optional :source_table, :string, 2
124
- optional :start_time, :message, 3, "google.protobuf.Timestamp"
125
- optional :end_time, :message, 4, "google.protobuf.Timestamp"
126
- end
127
- add_message "google.bigtable.admin.v2.GetBackupRequest" do
128
- optional :name, :string, 1
129
- end
130
- add_message "google.bigtable.admin.v2.UpdateBackupRequest" do
131
- optional :backup, :message, 1, "google.bigtable.admin.v2.Backup"
132
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
133
- end
134
- add_message "google.bigtable.admin.v2.DeleteBackupRequest" do
135
- optional :name, :string, 1
136
- end
137
- add_message "google.bigtable.admin.v2.ListBackupsRequest" do
138
- optional :parent, :string, 1
139
- optional :filter, :string, 2
140
- optional :order_by, :string, 3
141
- optional :page_size, :int32, 4
142
- optional :page_token, :string, 5
143
- end
144
- add_message "google.bigtable.admin.v2.ListBackupsResponse" do
145
- repeated :backups, :message, 1, "google.bigtable.admin.v2.Backup"
146
- optional :next_page_token, :string, 2
147
- end
148
- add_message "google.bigtable.admin.v2.RestoreTableRequest" do
149
- optional :parent, :string, 1
150
- optional :table_id, :string, 2
151
- oneof :source do
152
- optional :backup, :string, 3
153
- end
154
- end
155
- add_message "google.bigtable.admin.v2.RestoreTableMetadata" do
156
- optional :name, :string, 1
157
- optional :source_type, :enum, 2, "google.bigtable.admin.v2.RestoreSourceType"
158
- optional :optimize_table_operation_name, :string, 4
159
- optional :progress, :message, 5, "google.bigtable.admin.v2.OperationProgress"
160
- oneof :source_info do
161
- optional :backup_info, :message, 3, "google.bigtable.admin.v2.BackupInfo"
162
- end
163
- end
164
- add_message "google.bigtable.admin.v2.OptimizeRestoredTableMetadata" do
165
- optional :name, :string, 1
166
- optional :progress, :message, 2, "google.bigtable.admin.v2.OperationProgress"
167
- end
168
- end
169
-
170
- module Google
171
- module Bigtable
172
- module Admin
173
- end
174
- end
175
- end
176
- module Google::Bigtable::Admin::V2
177
- CreateTableRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateTableRequest").msgclass
178
- CreateTableRequest::Split = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateTableRequest.Split").msgclass
179
- CreateTableFromSnapshotRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateTableFromSnapshotRequest").msgclass
180
- DropRowRangeRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DropRowRangeRequest").msgclass
181
- ListTablesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListTablesRequest").msgclass
182
- ListTablesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListTablesResponse").msgclass
183
- GetTableRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetTableRequest").msgclass
184
- DeleteTableRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteTableRequest").msgclass
185
- ModifyColumnFamiliesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ModifyColumnFamiliesRequest").msgclass
186
- ModifyColumnFamiliesRequest::Modification = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification").msgclass
187
- GenerateConsistencyTokenRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GenerateConsistencyTokenRequest").msgclass
188
- GenerateConsistencyTokenResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GenerateConsistencyTokenResponse").msgclass
189
- CheckConsistencyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CheckConsistencyRequest").msgclass
190
- CheckConsistencyResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CheckConsistencyResponse").msgclass
191
- SnapshotTableRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.SnapshotTableRequest").msgclass
192
- GetSnapshotRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetSnapshotRequest").msgclass
193
- ListSnapshotsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListSnapshotsRequest").msgclass
194
- ListSnapshotsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListSnapshotsResponse").msgclass
195
- DeleteSnapshotRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteSnapshotRequest").msgclass
196
- SnapshotTableMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.SnapshotTableMetadata").msgclass
197
- CreateTableFromSnapshotMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateTableFromSnapshotMetadata").msgclass
198
- CreateBackupRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateBackupRequest").msgclass
199
- CreateBackupMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateBackupMetadata").msgclass
200
- GetBackupRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetBackupRequest").msgclass
201
- UpdateBackupRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateBackupRequest").msgclass
202
- DeleteBackupRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteBackupRequest").msgclass
203
- ListBackupsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListBackupsRequest").msgclass
204
- ListBackupsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListBackupsResponse").msgclass
205
- RestoreTableRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.RestoreTableRequest").msgclass
206
- RestoreTableMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.RestoreTableMetadata").msgclass
207
- OptimizeRestoredTableMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.OptimizeRestoredTableMetadata").msgclass
208
- end
@@ -1,154 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: google/bigtable/admin/v2/bigtable_table_admin.proto for package 'Google::Cloud::Bigtable::Admin::V2'
3
- # Original file comments:
4
- # Copyright 2020 Google LLC
5
- #
6
- # Licensed under the Apache License, Version 2.0 (the "License");
7
- # you may not use this file except in compliance with the License.
8
- # You may obtain a copy of the License at
9
- #
10
- # http://www.apache.org/licenses/LICENSE-2.0
11
- #
12
- # Unless required by applicable law or agreed to in writing, software
13
- # distributed under the License is distributed on an "AS IS" BASIS,
14
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- # See the License for the specific language governing permissions and
16
- # limitations under the License.
17
- #
18
-
19
-
20
- require 'grpc'
21
- require 'google/bigtable/admin/v2/bigtable_table_admin_pb'
22
-
23
- module Google
24
- module Bigtable
25
- module Admin
26
- end
27
- end
28
- end
29
- module Google::Bigtable::Admin::V2
30
- module BigtableTableAdmin
31
- # Service for creating, configuring, and deleting Cloud Bigtable tables.
32
- #
33
- #
34
- # Provides access to the table schemas only, not the data stored within
35
- # the tables.
36
- class Service
37
-
38
- include GRPC::GenericService
39
-
40
- self.marshal_class_method = :encode
41
- self.unmarshal_class_method = :decode
42
- self.service_name = 'google.bigtable.admin.v2.BigtableTableAdmin'
43
-
44
- # Creates a new table in the specified instance.
45
- # The table can be created with a full set of initial column families,
46
- # specified in the request.
47
- rpc :CreateTable, CreateTableRequest, Table
48
- # Creates a new table from the specified snapshot. The target table must
49
- # not exist. The snapshot and the table must be in the same instance.
50
- #
51
- # Note: This is a private alpha release of Cloud Bigtable snapshots. This
52
- # feature is not currently available to most Cloud Bigtable customers. This
53
- # feature might be changed in backward-incompatible ways and is not
54
- # recommended for production use. It is not subject to any SLA or deprecation
55
- # policy.
56
- rpc :CreateTableFromSnapshot, CreateTableFromSnapshotRequest, Google::Longrunning::Operation
57
- # Lists all tables served from a specified instance.
58
- rpc :ListTables, ListTablesRequest, ListTablesResponse
59
- # Gets metadata information about the specified table.
60
- rpc :GetTable, GetTableRequest, Table
61
- # Permanently deletes a specified table and all of its data.
62
- rpc :DeleteTable, DeleteTableRequest, Google::Protobuf::Empty
63
- # Performs a series of column family modifications on the specified table.
64
- # Either all or none of the modifications will occur before this method
65
- # returns, but data requests received prior to that point may see a table
66
- # where only some modifications have taken effect.
67
- rpc :ModifyColumnFamilies, ModifyColumnFamiliesRequest, Table
68
- # Permanently drop/delete a row range from a specified table. The request can
69
- # specify whether to delete all rows in a table, or only those that match a
70
- # particular prefix.
71
- rpc :DropRowRange, DropRowRangeRequest, Google::Protobuf::Empty
72
- # Generates a consistency token for a Table, which can be used in
73
- # CheckConsistency to check whether mutations to the table that finished
74
- # before this call started have been replicated. The tokens will be available
75
- # for 90 days.
76
- rpc :GenerateConsistencyToken, GenerateConsistencyTokenRequest, GenerateConsistencyTokenResponse
77
- # Checks replication consistency based on a consistency token, that is, if
78
- # replication has caught up based on the conditions specified in the token
79
- # and the check request.
80
- rpc :CheckConsistency, CheckConsistencyRequest, CheckConsistencyResponse
81
- # Creates a new snapshot in the specified cluster from the specified
82
- # source table. The cluster and the table must be in the same instance.
83
- #
84
- # Note: This is a private alpha release of Cloud Bigtable snapshots. This
85
- # feature is not currently available to most Cloud Bigtable customers. This
86
- # feature might be changed in backward-incompatible ways and is not
87
- # recommended for production use. It is not subject to any SLA or deprecation
88
- # policy.
89
- rpc :SnapshotTable, SnapshotTableRequest, Google::Longrunning::Operation
90
- # Gets metadata information about the specified snapshot.
91
- #
92
- # Note: This is a private alpha release of Cloud Bigtable snapshots. This
93
- # feature is not currently available to most Cloud Bigtable customers. This
94
- # feature might be changed in backward-incompatible ways and is not
95
- # recommended for production use. It is not subject to any SLA or deprecation
96
- # policy.
97
- rpc :GetSnapshot, GetSnapshotRequest, Snapshot
98
- # Lists all snapshots associated with the specified cluster.
99
- #
100
- # Note: This is a private alpha release of Cloud Bigtable snapshots. This
101
- # feature is not currently available to most Cloud Bigtable customers. This
102
- # feature might be changed in backward-incompatible ways and is not
103
- # recommended for production use. It is not subject to any SLA or deprecation
104
- # policy.
105
- rpc :ListSnapshots, ListSnapshotsRequest, ListSnapshotsResponse
106
- # Permanently deletes the specified snapshot.
107
- #
108
- # Note: This is a private alpha release of Cloud Bigtable snapshots. This
109
- # feature is not currently available to most Cloud Bigtable customers. This
110
- # feature might be changed in backward-incompatible ways and is not
111
- # recommended for production use. It is not subject to any SLA or deprecation
112
- # policy.
113
- rpc :DeleteSnapshot, DeleteSnapshotRequest, Google::Protobuf::Empty
114
- # Starts creating a new Cloud Bigtable Backup. The returned backup
115
- # [long-running operation][google.longrunning.Operation] can be used to
116
- # track creation of the backup. The
117
- # [metadata][google.longrunning.Operation.metadata] field type is
118
- # [CreateBackupMetadata][google.bigtable.admin.v2.CreateBackupMetadata]. The
119
- # [response][google.longrunning.Operation.response] field type is
120
- # [Backup][google.bigtable.admin.v2.Backup], if successful. Cancelling the
121
- # returned operation will stop the creation and delete the backup.
122
- rpc :CreateBackup, CreateBackupRequest, Google::Longrunning::Operation
123
- # Gets metadata on a pending or completed Cloud Bigtable Backup.
124
- rpc :GetBackup, GetBackupRequest, Backup
125
- # Updates a pending or completed Cloud Bigtable Backup.
126
- rpc :UpdateBackup, UpdateBackupRequest, Backup
127
- # Deletes a pending or completed Cloud Bigtable backup.
128
- rpc :DeleteBackup, DeleteBackupRequest, Google::Protobuf::Empty
129
- # Lists Cloud Bigtable backups. Returns both completed and pending
130
- # backups.
131
- rpc :ListBackups, ListBackupsRequest, ListBackupsResponse
132
- # Create a new table by restoring from a completed backup. The new table
133
- # must be in the same instance as the instance containing the backup. The
134
- # returned table [long-running operation][google.longrunning.Operation] can
135
- # be used to track the progress of the operation, and to cancel it. The
136
- # [metadata][google.longrunning.Operation.metadata] field type is
137
- # [RestoreTableMetadata][google.bigtable.admin.RestoreTableMetadata]. The
138
- # [response][google.longrunning.Operation.response] type is
139
- # [Table][google.bigtable.admin.v2.Table], if successful.
140
- rpc :RestoreTable, RestoreTableRequest, Google::Longrunning::Operation
141
- # Gets the access control policy for a resource.
142
- # Returns an empty policy if the resource exists but does not have a policy
143
- # set.
144
- rpc :GetIamPolicy, Google::Iam::V1::GetIamPolicyRequest, Google::Iam::V1::Policy
145
- # Sets the access control policy on a Table or Backup resource.
146
- # Replaces any existing policy.
147
- rpc :SetIamPolicy, Google::Iam::V1::SetIamPolicyRequest, Google::Iam::V1::Policy
148
- # Returns permissions that the caller has on the specified table resource.
149
- rpc :TestIamPermissions, Google::Iam::V1::TestIamPermissionsRequest, Google::Iam::V1::TestIamPermissionsResponse
150
- end
151
-
152
- Stub = Service.rpc_stub_class
153
- end
154
- end
@@ -1,30 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/bigtable/admin/v2/common.proto
3
-
4
-
5
- require 'google/protobuf'
6
-
7
- require 'google/protobuf/timestamp_pb'
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_message "google.bigtable.admin.v2.OperationProgress" do
10
- optional :progress_percent, :int32, 1
11
- optional :start_time, :message, 2, "google.protobuf.Timestamp"
12
- optional :end_time, :message, 3, "google.protobuf.Timestamp"
13
- end
14
- add_enum "google.bigtable.admin.v2.StorageType" do
15
- value :STORAGE_TYPE_UNSPECIFIED, 0
16
- value :SSD, 1
17
- value :HDD, 2
18
- end
19
- end
20
-
21
- module Google
22
- module Bigtable
23
- module Admin
24
- end
25
- end
26
- end
27
- module Google::Bigtable::Admin::V2
28
- OperationProgress = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.OperationProgress").msgclass
29
- StorageType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.StorageType").enummodule
30
- end
@@ -1,74 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/bigtable/admin/v2/instance.proto
3
-
4
-
5
- require 'google/protobuf'
6
-
7
- require 'google/api/field_behavior_pb'
8
- require 'google/api/resource_pb'
9
- require 'google/bigtable/admin/v2/common_pb'
10
- Google::Protobuf::DescriptorPool.generated_pool.build do
11
- add_message "google.bigtable.admin.v2.Instance" do
12
- optional :name, :string, 1
13
- optional :display_name, :string, 2
14
- optional :state, :enum, 3, "google.bigtable.admin.v2.Instance.State"
15
- optional :type, :enum, 4, "google.bigtable.admin.v2.Instance.Type"
16
- map :labels, :string, :string, 5
17
- end
18
- add_enum "google.bigtable.admin.v2.Instance.State" do
19
- value :STATE_NOT_KNOWN, 0
20
- value :READY, 1
21
- value :CREATING, 2
22
- end
23
- add_enum "google.bigtable.admin.v2.Instance.Type" do
24
- value :TYPE_UNSPECIFIED, 0
25
- value :PRODUCTION, 1
26
- value :DEVELOPMENT, 2
27
- end
28
- add_message "google.bigtable.admin.v2.Cluster" do
29
- optional :name, :string, 1
30
- optional :location, :string, 2
31
- optional :state, :enum, 3, "google.bigtable.admin.v2.Cluster.State"
32
- optional :serve_nodes, :int32, 4
33
- optional :default_storage_type, :enum, 5, "google.bigtable.admin.v2.StorageType"
34
- end
35
- add_enum "google.bigtable.admin.v2.Cluster.State" do
36
- value :STATE_NOT_KNOWN, 0
37
- value :READY, 1
38
- value :CREATING, 2
39
- value :RESIZING, 3
40
- value :DISABLED, 4
41
- end
42
- add_message "google.bigtable.admin.v2.AppProfile" do
43
- optional :name, :string, 1
44
- optional :etag, :string, 2
45
- optional :description, :string, 3
46
- oneof :routing_policy do
47
- optional :multi_cluster_routing_use_any, :message, 5, "google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny"
48
- optional :single_cluster_routing, :message, 6, "google.bigtable.admin.v2.AppProfile.SingleClusterRouting"
49
- end
50
- end
51
- add_message "google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny" do
52
- end
53
- add_message "google.bigtable.admin.v2.AppProfile.SingleClusterRouting" do
54
- optional :cluster_id, :string, 1
55
- optional :allow_transactional_writes, :bool, 2
56
- end
57
- end
58
-
59
- module Google
60
- module Bigtable
61
- module Admin
62
- end
63
- end
64
- end
65
- module Google::Bigtable::Admin::V2
66
- Instance = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance").msgclass
67
- Instance::State = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance.State").enummodule
68
- Instance::Type = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance.Type").enummodule
69
- Cluster = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster").msgclass
70
- Cluster::State = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.State").enummodule
71
- AppProfile = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile").msgclass
72
- AppProfile::MultiClusterRoutingUseAny = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny").msgclass
73
- AppProfile::SingleClusterRouting = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.SingleClusterRouting").msgclass
74
- end