google-cloud-bigtable 0.1.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.
- checksums.yaml +7 -0
- data/.yardopts +10 -0
- data/LICENSE +201 -0
- data/README.md +65 -0
- data/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb +139 -0
- data/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb +85 -0
- data/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb +137 -0
- data/lib/google/bigtable/admin/v2/bigtable_table_admin_services_pb.rb +117 -0
- data/lib/google/bigtable/admin/v2/common_pb.rb +24 -0
- data/lib/google/bigtable/admin/v2/instance_pb.rb +72 -0
- data/lib/google/bigtable/admin/v2/table_pb.rb +88 -0
- data/lib/google/bigtable/v2/bigtable_pb.rb +109 -0
- data/lib/google/bigtable/v2/bigtable_services_pb.rb +67 -0
- data/lib/google/bigtable/v2/data_pb.rb +155 -0
- data/lib/google/cloud/bigtable/admin/credentials.rb +26 -0
- data/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin_client.rb +1417 -0
- data/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin_client_config.json +123 -0
- data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin_client.rb +1079 -0
- data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin_client_config.json +109 -0
- data/lib/google/cloud/bigtable/admin/v2/credentials.rb +50 -0
- data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/bigtable_instance_admin.rb +279 -0
- data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/bigtable_table_admin.rb +353 -0
- data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/instance.rb +194 -0
- data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/table.rb +209 -0
- data/lib/google/cloud/bigtable/admin/v2/doc/google/iam/v1/iam_policy.rb +62 -0
- data/lib/google/cloud/bigtable/admin/v2/doc/google/iam/v1/policy.rb +127 -0
- data/lib/google/cloud/bigtable/admin/v2/doc/google/longrunning/operations.rb +92 -0
- data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/any.rb +124 -0
- data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/duration.rb +90 -0
- data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/empty.rb +28 -0
- data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/field_mask.rb +223 -0
- data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/timestamp.rb +106 -0
- data/lib/google/cloud/bigtable/admin/v2/doc/google/rpc/status.rb +83 -0
- data/lib/google/cloud/bigtable/admin/v2.rb +200 -0
- data/lib/google/cloud/bigtable/admin.rb +196 -0
- data/lib/google/cloud/bigtable/app_profile/job.rb +102 -0
- data/lib/google/cloud/bigtable/app_profile/list.rb +159 -0
- data/lib/google/cloud/bigtable/app_profile.rb +373 -0
- data/lib/google/cloud/bigtable/chunk_processor.rb +253 -0
- data/lib/google/cloud/bigtable/cluster/job.rb +92 -0
- data/lib/google/cloud/bigtable/cluster/list.rb +169 -0
- data/lib/google/cloud/bigtable/cluster.rb +264 -0
- data/lib/google/cloud/bigtable/column_family.rb +280 -0
- data/lib/google/cloud/bigtable/column_range.rb +186 -0
- data/lib/google/cloud/bigtable/convert.rb +75 -0
- data/lib/google/cloud/bigtable/credentials.rb +24 -0
- data/lib/google/cloud/bigtable/errors.rb +35 -0
- data/lib/google/cloud/bigtable/gc_rule.rb +215 -0
- data/lib/google/cloud/bigtable/instance/cluster_map.rb +70 -0
- data/lib/google/cloud/bigtable/instance/job.rb +97 -0
- data/lib/google/cloud/bigtable/instance/list.rb +159 -0
- data/lib/google/cloud/bigtable/instance.rb +921 -0
- data/lib/google/cloud/bigtable/longrunning_job.rb +105 -0
- data/lib/google/cloud/bigtable/mutation_entry.rb +244 -0
- data/lib/google/cloud/bigtable/mutation_operations.rb +338 -0
- data/lib/google/cloud/bigtable/policy.rb +163 -0
- data/lib/google/cloud/bigtable/project.rb +580 -0
- data/lib/google/cloud/bigtable/read_modify_write_rule.rb +129 -0
- data/lib/google/cloud/bigtable/read_operations.rb +345 -0
- data/lib/google/cloud/bigtable/row.rb +125 -0
- data/lib/google/cloud/bigtable/row_filter/chain_filter.rb +539 -0
- data/lib/google/cloud/bigtable/row_filter/condition_filter.rb +108 -0
- data/lib/google/cloud/bigtable/row_filter/interleave_filter.rb +570 -0
- data/lib/google/cloud/bigtable/row_filter/simple_filter.rb +273 -0
- data/lib/google/cloud/bigtable/row_filter.rb +593 -0
- data/lib/google/cloud/bigtable/row_range.rb +174 -0
- data/lib/google/cloud/bigtable/rows_mutator.rb +120 -0
- data/lib/google/cloud/bigtable/rows_reader.rb +196 -0
- data/lib/google/cloud/bigtable/sample_row_key.rb +82 -0
- data/lib/google/cloud/bigtable/service.rb +817 -0
- data/lib/google/cloud/bigtable/table/cluster_state.rb +93 -0
- data/lib/google/cloud/bigtable/table/column_family_map.rb +68 -0
- data/lib/google/cloud/bigtable/table/list.rb +147 -0
- data/lib/google/cloud/bigtable/table.rb +676 -0
- data/lib/google/cloud/bigtable/v2/bigtable_client.rb +579 -0
- data/lib/google/cloud/bigtable/v2/bigtable_client_config.json +65 -0
- data/lib/google/cloud/bigtable/v2/credentials.rb +45 -0
- data/lib/google/cloud/bigtable/v2/doc/google/bigtable/v2/bigtable.rb +286 -0
- data/lib/google/cloud/bigtable/v2/doc/google/bigtable/v2/data.rb +492 -0
- data/lib/google/cloud/bigtable/v2/doc/google/protobuf/any.rb +124 -0
- data/lib/google/cloud/bigtable/v2/doc/google/protobuf/wrappers.rb +89 -0
- data/lib/google/cloud/bigtable/v2/doc/google/rpc/status.rb +83 -0
- data/lib/google/cloud/bigtable/v2.rb +132 -0
- data/lib/google/cloud/bigtable/value_range.rb +175 -0
- data/lib/google/cloud/bigtable/version.rb +22 -0
- data/lib/google/cloud/bigtable.rb +223 -0
- data/lib/google-cloud-bigtable.rb +167 -0
- metadata +283 -0
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# source: google/bigtable/admin/v2/bigtable_table_admin.proto
|
|
3
|
+
|
|
4
|
+
require 'google/protobuf'
|
|
5
|
+
|
|
6
|
+
require 'google/api/annotations_pb'
|
|
7
|
+
require 'google/bigtable/admin/v2/table_pb'
|
|
8
|
+
require 'google/longrunning/operations_pb'
|
|
9
|
+
require 'google/protobuf/duration_pb'
|
|
10
|
+
require 'google/protobuf/empty_pb'
|
|
11
|
+
require 'google/protobuf/timestamp_pb'
|
|
12
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
13
|
+
add_message "google.bigtable.admin.v2.CreateTableRequest" do
|
|
14
|
+
optional :parent, :string, 1
|
|
15
|
+
optional :table_id, :string, 2
|
|
16
|
+
optional :table, :message, 3, "google.bigtable.admin.v2.Table"
|
|
17
|
+
repeated :initial_splits, :message, 4, "google.bigtable.admin.v2.CreateTableRequest.Split"
|
|
18
|
+
end
|
|
19
|
+
add_message "google.bigtable.admin.v2.CreateTableRequest.Split" do
|
|
20
|
+
optional :key, :bytes, 1
|
|
21
|
+
end
|
|
22
|
+
add_message "google.bigtable.admin.v2.CreateTableFromSnapshotRequest" do
|
|
23
|
+
optional :parent, :string, 1
|
|
24
|
+
optional :table_id, :string, 2
|
|
25
|
+
optional :source_snapshot, :string, 3
|
|
26
|
+
end
|
|
27
|
+
add_message "google.bigtable.admin.v2.DropRowRangeRequest" do
|
|
28
|
+
optional :name, :string, 1
|
|
29
|
+
oneof :target do
|
|
30
|
+
optional :row_key_prefix, :bytes, 2
|
|
31
|
+
optional :delete_all_data_from_table, :bool, 3
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
add_message "google.bigtable.admin.v2.ListTablesRequest" do
|
|
35
|
+
optional :parent, :string, 1
|
|
36
|
+
optional :view, :enum, 2, "google.bigtable.admin.v2.Table.View"
|
|
37
|
+
optional :page_token, :string, 3
|
|
38
|
+
end
|
|
39
|
+
add_message "google.bigtable.admin.v2.ListTablesResponse" do
|
|
40
|
+
repeated :tables, :message, 1, "google.bigtable.admin.v2.Table"
|
|
41
|
+
optional :next_page_token, :string, 2
|
|
42
|
+
end
|
|
43
|
+
add_message "google.bigtable.admin.v2.GetTableRequest" do
|
|
44
|
+
optional :name, :string, 1
|
|
45
|
+
optional :view, :enum, 2, "google.bigtable.admin.v2.Table.View"
|
|
46
|
+
end
|
|
47
|
+
add_message "google.bigtable.admin.v2.DeleteTableRequest" do
|
|
48
|
+
optional :name, :string, 1
|
|
49
|
+
end
|
|
50
|
+
add_message "google.bigtable.admin.v2.ModifyColumnFamiliesRequest" do
|
|
51
|
+
optional :name, :string, 1
|
|
52
|
+
repeated :modifications, :message, 2, "google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification"
|
|
53
|
+
end
|
|
54
|
+
add_message "google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification" do
|
|
55
|
+
optional :id, :string, 1
|
|
56
|
+
oneof :mod do
|
|
57
|
+
optional :create, :message, 2, "google.bigtable.admin.v2.ColumnFamily"
|
|
58
|
+
optional :update, :message, 3, "google.bigtable.admin.v2.ColumnFamily"
|
|
59
|
+
optional :drop, :bool, 4
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
add_message "google.bigtable.admin.v2.GenerateConsistencyTokenRequest" do
|
|
63
|
+
optional :name, :string, 1
|
|
64
|
+
end
|
|
65
|
+
add_message "google.bigtable.admin.v2.GenerateConsistencyTokenResponse" do
|
|
66
|
+
optional :consistency_token, :string, 1
|
|
67
|
+
end
|
|
68
|
+
add_message "google.bigtable.admin.v2.CheckConsistencyRequest" do
|
|
69
|
+
optional :name, :string, 1
|
|
70
|
+
optional :consistency_token, :string, 2
|
|
71
|
+
end
|
|
72
|
+
add_message "google.bigtable.admin.v2.CheckConsistencyResponse" do
|
|
73
|
+
optional :consistent, :bool, 1
|
|
74
|
+
end
|
|
75
|
+
add_message "google.bigtable.admin.v2.SnapshotTableRequest" do
|
|
76
|
+
optional :name, :string, 1
|
|
77
|
+
optional :cluster, :string, 2
|
|
78
|
+
optional :snapshot_id, :string, 3
|
|
79
|
+
optional :ttl, :message, 4, "google.protobuf.Duration"
|
|
80
|
+
optional :description, :string, 5
|
|
81
|
+
end
|
|
82
|
+
add_message "google.bigtable.admin.v2.GetSnapshotRequest" do
|
|
83
|
+
optional :name, :string, 1
|
|
84
|
+
end
|
|
85
|
+
add_message "google.bigtable.admin.v2.ListSnapshotsRequest" do
|
|
86
|
+
optional :parent, :string, 1
|
|
87
|
+
optional :page_size, :int32, 2
|
|
88
|
+
optional :page_token, :string, 3
|
|
89
|
+
end
|
|
90
|
+
add_message "google.bigtable.admin.v2.ListSnapshotsResponse" do
|
|
91
|
+
repeated :snapshots, :message, 1, "google.bigtable.admin.v2.Snapshot"
|
|
92
|
+
optional :next_page_token, :string, 2
|
|
93
|
+
end
|
|
94
|
+
add_message "google.bigtable.admin.v2.DeleteSnapshotRequest" do
|
|
95
|
+
optional :name, :string, 1
|
|
96
|
+
end
|
|
97
|
+
add_message "google.bigtable.admin.v2.SnapshotTableMetadata" do
|
|
98
|
+
optional :original_request, :message, 1, "google.bigtable.admin.v2.SnapshotTableRequest"
|
|
99
|
+
optional :request_time, :message, 2, "google.protobuf.Timestamp"
|
|
100
|
+
optional :finish_time, :message, 3, "google.protobuf.Timestamp"
|
|
101
|
+
end
|
|
102
|
+
add_message "google.bigtable.admin.v2.CreateTableFromSnapshotMetadata" do
|
|
103
|
+
optional :original_request, :message, 1, "google.bigtable.admin.v2.CreateTableFromSnapshotRequest"
|
|
104
|
+
optional :request_time, :message, 2, "google.protobuf.Timestamp"
|
|
105
|
+
optional :finish_time, :message, 3, "google.protobuf.Timestamp"
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
module Google
|
|
110
|
+
module Bigtable
|
|
111
|
+
module Admin
|
|
112
|
+
module V2
|
|
113
|
+
CreateTableRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateTableRequest").msgclass
|
|
114
|
+
CreateTableRequest::Split = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateTableRequest.Split").msgclass
|
|
115
|
+
CreateTableFromSnapshotRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateTableFromSnapshotRequest").msgclass
|
|
116
|
+
DropRowRangeRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DropRowRangeRequest").msgclass
|
|
117
|
+
ListTablesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListTablesRequest").msgclass
|
|
118
|
+
ListTablesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListTablesResponse").msgclass
|
|
119
|
+
GetTableRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetTableRequest").msgclass
|
|
120
|
+
DeleteTableRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteTableRequest").msgclass
|
|
121
|
+
ModifyColumnFamiliesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ModifyColumnFamiliesRequest").msgclass
|
|
122
|
+
ModifyColumnFamiliesRequest::Modification = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification").msgclass
|
|
123
|
+
GenerateConsistencyTokenRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GenerateConsistencyTokenRequest").msgclass
|
|
124
|
+
GenerateConsistencyTokenResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GenerateConsistencyTokenResponse").msgclass
|
|
125
|
+
CheckConsistencyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CheckConsistencyRequest").msgclass
|
|
126
|
+
CheckConsistencyResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CheckConsistencyResponse").msgclass
|
|
127
|
+
SnapshotTableRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.SnapshotTableRequest").msgclass
|
|
128
|
+
GetSnapshotRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetSnapshotRequest").msgclass
|
|
129
|
+
ListSnapshotsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListSnapshotsRequest").msgclass
|
|
130
|
+
ListSnapshotsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListSnapshotsResponse").msgclass
|
|
131
|
+
DeleteSnapshotRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteSnapshotRequest").msgclass
|
|
132
|
+
SnapshotTableMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.SnapshotTableMetadata").msgclass
|
|
133
|
+
CreateTableFromSnapshotMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateTableFromSnapshotMetadata").msgclass
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
end
|
|
137
|
+
end
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# Source: google/bigtable/admin/v2/bigtable_table_admin.proto for package 'google.bigtable.admin.v2'
|
|
3
|
+
# Original file comments:
|
|
4
|
+
# Copyright 2018 Google Inc.
|
|
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
|
+
require 'grpc'
|
|
20
|
+
require 'google/bigtable/admin/v2/bigtable_table_admin_pb'
|
|
21
|
+
|
|
22
|
+
module Google
|
|
23
|
+
module Bigtable
|
|
24
|
+
module Admin
|
|
25
|
+
module V2
|
|
26
|
+
module BigtableTableAdmin
|
|
27
|
+
# Service for creating, configuring, and deleting Cloud Bigtable tables.
|
|
28
|
+
#
|
|
29
|
+
#
|
|
30
|
+
# Provides access to the table schemas only, not the data stored within
|
|
31
|
+
# the tables.
|
|
32
|
+
class Service
|
|
33
|
+
|
|
34
|
+
include GRPC::GenericService
|
|
35
|
+
|
|
36
|
+
self.marshal_class_method = :encode
|
|
37
|
+
self.unmarshal_class_method = :decode
|
|
38
|
+
self.service_name = 'google.bigtable.admin.v2.BigtableTableAdmin'
|
|
39
|
+
|
|
40
|
+
# Creates a new table in the specified instance.
|
|
41
|
+
# The table can be created with a full set of initial column families,
|
|
42
|
+
# specified in the request.
|
|
43
|
+
rpc :CreateTable, CreateTableRequest, Table
|
|
44
|
+
# Creates a new table from the specified snapshot. The target table must
|
|
45
|
+
# not exist. The snapshot and the table must be in the same instance.
|
|
46
|
+
#
|
|
47
|
+
# Note: This is a private alpha release of Cloud Bigtable snapshots. This
|
|
48
|
+
# feature is not currently available to most Cloud Bigtable customers. This
|
|
49
|
+
# feature might be changed in backward-incompatible ways and is not
|
|
50
|
+
# recommended for production use. It is not subject to any SLA or deprecation
|
|
51
|
+
# policy.
|
|
52
|
+
rpc :CreateTableFromSnapshot, CreateTableFromSnapshotRequest, Google::Longrunning::Operation
|
|
53
|
+
# Lists all tables served from a specified instance.
|
|
54
|
+
rpc :ListTables, ListTablesRequest, ListTablesResponse
|
|
55
|
+
# Gets metadata information about the specified table.
|
|
56
|
+
rpc :GetTable, GetTableRequest, Table
|
|
57
|
+
# Permanently deletes a specified table and all of its data.
|
|
58
|
+
rpc :DeleteTable, DeleteTableRequest, Google::Protobuf::Empty
|
|
59
|
+
# Performs a series of column family modifications on the specified table.
|
|
60
|
+
# Either all or none of the modifications will occur before this method
|
|
61
|
+
# returns, but data requests received prior to that point may see a table
|
|
62
|
+
# where only some modifications have taken effect.
|
|
63
|
+
rpc :ModifyColumnFamilies, ModifyColumnFamiliesRequest, Table
|
|
64
|
+
# Permanently drop/delete a row range from a specified table. The request can
|
|
65
|
+
# specify whether to delete all rows in a table, or only those that match a
|
|
66
|
+
# particular prefix.
|
|
67
|
+
rpc :DropRowRange, DropRowRangeRequest, Google::Protobuf::Empty
|
|
68
|
+
# Generates a consistency token for a Table, which can be used in
|
|
69
|
+
# CheckConsistency to check whether mutations to the table that finished
|
|
70
|
+
# before this call started have been replicated. The tokens will be available
|
|
71
|
+
# for 90 days.
|
|
72
|
+
rpc :GenerateConsistencyToken, GenerateConsistencyTokenRequest, GenerateConsistencyTokenResponse
|
|
73
|
+
# Checks replication consistency based on a consistency token, that is, if
|
|
74
|
+
# replication has caught up based on the conditions specified in the token
|
|
75
|
+
# and the check request.
|
|
76
|
+
rpc :CheckConsistency, CheckConsistencyRequest, CheckConsistencyResponse
|
|
77
|
+
# Creates a new snapshot in the specified cluster from the specified
|
|
78
|
+
# source table. The cluster and the table must be in the same instance.
|
|
79
|
+
#
|
|
80
|
+
# Note: This is a private alpha release of Cloud Bigtable snapshots. This
|
|
81
|
+
# feature is not currently available to most Cloud Bigtable customers. This
|
|
82
|
+
# feature might be changed in backward-incompatible ways and is not
|
|
83
|
+
# recommended for production use. It is not subject to any SLA or deprecation
|
|
84
|
+
# policy.
|
|
85
|
+
rpc :SnapshotTable, SnapshotTableRequest, Google::Longrunning::Operation
|
|
86
|
+
# Gets metadata information about the specified snapshot.
|
|
87
|
+
#
|
|
88
|
+
# Note: This is a private alpha release of Cloud Bigtable snapshots. This
|
|
89
|
+
# feature is not currently available to most Cloud Bigtable customers. This
|
|
90
|
+
# feature might be changed in backward-incompatible ways and is not
|
|
91
|
+
# recommended for production use. It is not subject to any SLA or deprecation
|
|
92
|
+
# policy.
|
|
93
|
+
rpc :GetSnapshot, GetSnapshotRequest, Snapshot
|
|
94
|
+
# Lists all snapshots associated with the specified cluster.
|
|
95
|
+
#
|
|
96
|
+
# Note: This is a private alpha release of Cloud Bigtable snapshots. This
|
|
97
|
+
# feature is not currently available to most Cloud Bigtable customers. This
|
|
98
|
+
# feature might be changed in backward-incompatible ways and is not
|
|
99
|
+
# recommended for production use. It is not subject to any SLA or deprecation
|
|
100
|
+
# policy.
|
|
101
|
+
rpc :ListSnapshots, ListSnapshotsRequest, ListSnapshotsResponse
|
|
102
|
+
# Permanently deletes the specified snapshot.
|
|
103
|
+
#
|
|
104
|
+
# Note: This is a private alpha release of Cloud Bigtable snapshots. This
|
|
105
|
+
# feature is not currently available to most Cloud Bigtable customers. This
|
|
106
|
+
# feature might be changed in backward-incompatible ways and is not
|
|
107
|
+
# recommended for production use. It is not subject to any SLA or deprecation
|
|
108
|
+
# policy.
|
|
109
|
+
rpc :DeleteSnapshot, DeleteSnapshotRequest, Google::Protobuf::Empty
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
Stub = Service.rpc_stub_class
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# source: google/bigtable/admin/v2/common.proto
|
|
3
|
+
|
|
4
|
+
require 'google/protobuf'
|
|
5
|
+
|
|
6
|
+
require 'google/api/annotations_pb'
|
|
7
|
+
require 'google/protobuf/timestamp_pb'
|
|
8
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
9
|
+
add_enum "google.bigtable.admin.v2.StorageType" do
|
|
10
|
+
value :STORAGE_TYPE_UNSPECIFIED, 0
|
|
11
|
+
value :SSD, 1
|
|
12
|
+
value :HDD, 2
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
module Google
|
|
17
|
+
module Bigtable
|
|
18
|
+
module Admin
|
|
19
|
+
module V2
|
|
20
|
+
StorageType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.StorageType").enummodule
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# source: google/bigtable/admin/v2/instance.proto
|
|
3
|
+
|
|
4
|
+
require 'google/protobuf'
|
|
5
|
+
|
|
6
|
+
require 'google/api/annotations_pb'
|
|
7
|
+
require 'google/bigtable/admin/v2/common_pb'
|
|
8
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
9
|
+
add_message "google.bigtable.admin.v2.Instance" do
|
|
10
|
+
optional :name, :string, 1
|
|
11
|
+
optional :display_name, :string, 2
|
|
12
|
+
optional :state, :enum, 3, "google.bigtable.admin.v2.Instance.State"
|
|
13
|
+
optional :type, :enum, 4, "google.bigtable.admin.v2.Instance.Type"
|
|
14
|
+
map :labels, :string, :string, 5
|
|
15
|
+
end
|
|
16
|
+
add_enum "google.bigtable.admin.v2.Instance.State" do
|
|
17
|
+
value :STATE_NOT_KNOWN, 0
|
|
18
|
+
value :READY, 1
|
|
19
|
+
value :CREATING, 2
|
|
20
|
+
end
|
|
21
|
+
add_enum "google.bigtable.admin.v2.Instance.Type" do
|
|
22
|
+
value :TYPE_UNSPECIFIED, 0
|
|
23
|
+
value :PRODUCTION, 1
|
|
24
|
+
value :DEVELOPMENT, 2
|
|
25
|
+
end
|
|
26
|
+
add_message "google.bigtable.admin.v2.Cluster" do
|
|
27
|
+
optional :name, :string, 1
|
|
28
|
+
optional :location, :string, 2
|
|
29
|
+
optional :state, :enum, 3, "google.bigtable.admin.v2.Cluster.State"
|
|
30
|
+
optional :serve_nodes, :int32, 4
|
|
31
|
+
optional :default_storage_type, :enum, 5, "google.bigtable.admin.v2.StorageType"
|
|
32
|
+
end
|
|
33
|
+
add_enum "google.bigtable.admin.v2.Cluster.State" do
|
|
34
|
+
value :STATE_NOT_KNOWN, 0
|
|
35
|
+
value :READY, 1
|
|
36
|
+
value :CREATING, 2
|
|
37
|
+
value :RESIZING, 3
|
|
38
|
+
value :DISABLED, 4
|
|
39
|
+
end
|
|
40
|
+
add_message "google.bigtable.admin.v2.AppProfile" do
|
|
41
|
+
optional :name, :string, 1
|
|
42
|
+
optional :etag, :string, 2
|
|
43
|
+
optional :description, :string, 3
|
|
44
|
+
oneof :routing_policy do
|
|
45
|
+
optional :multi_cluster_routing_use_any, :message, 5, "google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny"
|
|
46
|
+
optional :single_cluster_routing, :message, 6, "google.bigtable.admin.v2.AppProfile.SingleClusterRouting"
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
add_message "google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny" do
|
|
50
|
+
end
|
|
51
|
+
add_message "google.bigtable.admin.v2.AppProfile.SingleClusterRouting" do
|
|
52
|
+
optional :cluster_id, :string, 1
|
|
53
|
+
optional :allow_transactional_writes, :bool, 2
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
module Google
|
|
58
|
+
module Bigtable
|
|
59
|
+
module Admin
|
|
60
|
+
module V2
|
|
61
|
+
Instance = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance").msgclass
|
|
62
|
+
Instance::State = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance.State").enummodule
|
|
63
|
+
Instance::Type = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance.Type").enummodule
|
|
64
|
+
Cluster = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster").msgclass
|
|
65
|
+
Cluster::State = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.State").enummodule
|
|
66
|
+
AppProfile = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile").msgclass
|
|
67
|
+
AppProfile::MultiClusterRoutingUseAny = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny").msgclass
|
|
68
|
+
AppProfile::SingleClusterRouting = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.SingleClusterRouting").msgclass
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# source: google/bigtable/admin/v2/table.proto
|
|
3
|
+
|
|
4
|
+
require 'google/protobuf'
|
|
5
|
+
|
|
6
|
+
require 'google/api/annotations_pb'
|
|
7
|
+
require 'google/protobuf/duration_pb'
|
|
8
|
+
require 'google/protobuf/timestamp_pb'
|
|
9
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
10
|
+
add_message "google.bigtable.admin.v2.Table" do
|
|
11
|
+
optional :name, :string, 1
|
|
12
|
+
map :cluster_states, :string, :message, 2, "google.bigtable.admin.v2.Table.ClusterState"
|
|
13
|
+
map :column_families, :string, :message, 3, "google.bigtable.admin.v2.ColumnFamily"
|
|
14
|
+
optional :granularity, :enum, 4, "google.bigtable.admin.v2.Table.TimestampGranularity"
|
|
15
|
+
end
|
|
16
|
+
add_message "google.bigtable.admin.v2.Table.ClusterState" do
|
|
17
|
+
optional :replication_state, :enum, 1, "google.bigtable.admin.v2.Table.ClusterState.ReplicationState"
|
|
18
|
+
end
|
|
19
|
+
add_enum "google.bigtable.admin.v2.Table.ClusterState.ReplicationState" do
|
|
20
|
+
value :STATE_NOT_KNOWN, 0
|
|
21
|
+
value :INITIALIZING, 1
|
|
22
|
+
value :PLANNED_MAINTENANCE, 2
|
|
23
|
+
value :UNPLANNED_MAINTENANCE, 3
|
|
24
|
+
value :READY, 4
|
|
25
|
+
end
|
|
26
|
+
add_enum "google.bigtable.admin.v2.Table.TimestampGranularity" do
|
|
27
|
+
value :TIMESTAMP_GRANULARITY_UNSPECIFIED, 0
|
|
28
|
+
value :MILLIS, 1
|
|
29
|
+
end
|
|
30
|
+
add_enum "google.bigtable.admin.v2.Table.View" do
|
|
31
|
+
value :VIEW_UNSPECIFIED, 0
|
|
32
|
+
value :NAME_ONLY, 1
|
|
33
|
+
value :SCHEMA_VIEW, 2
|
|
34
|
+
value :REPLICATION_VIEW, 3
|
|
35
|
+
value :FULL, 4
|
|
36
|
+
end
|
|
37
|
+
add_message "google.bigtable.admin.v2.ColumnFamily" do
|
|
38
|
+
optional :gc_rule, :message, 1, "google.bigtable.admin.v2.GcRule"
|
|
39
|
+
end
|
|
40
|
+
add_message "google.bigtable.admin.v2.GcRule" do
|
|
41
|
+
oneof :rule do
|
|
42
|
+
optional :max_num_versions, :int32, 1
|
|
43
|
+
optional :max_age, :message, 2, "google.protobuf.Duration"
|
|
44
|
+
optional :intersection, :message, 3, "google.bigtable.admin.v2.GcRule.Intersection"
|
|
45
|
+
optional :union, :message, 4, "google.bigtable.admin.v2.GcRule.Union"
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
add_message "google.bigtable.admin.v2.GcRule.Intersection" do
|
|
49
|
+
repeated :rules, :message, 1, "google.bigtable.admin.v2.GcRule"
|
|
50
|
+
end
|
|
51
|
+
add_message "google.bigtable.admin.v2.GcRule.Union" do
|
|
52
|
+
repeated :rules, :message, 1, "google.bigtable.admin.v2.GcRule"
|
|
53
|
+
end
|
|
54
|
+
add_message "google.bigtable.admin.v2.Snapshot" do
|
|
55
|
+
optional :name, :string, 1
|
|
56
|
+
optional :source_table, :message, 2, "google.bigtable.admin.v2.Table"
|
|
57
|
+
optional :data_size_bytes, :int64, 3
|
|
58
|
+
optional :create_time, :message, 4, "google.protobuf.Timestamp"
|
|
59
|
+
optional :delete_time, :message, 5, "google.protobuf.Timestamp"
|
|
60
|
+
optional :state, :enum, 6, "google.bigtable.admin.v2.Snapshot.State"
|
|
61
|
+
optional :description, :string, 7
|
|
62
|
+
end
|
|
63
|
+
add_enum "google.bigtable.admin.v2.Snapshot.State" do
|
|
64
|
+
value :STATE_NOT_KNOWN, 0
|
|
65
|
+
value :READY, 1
|
|
66
|
+
value :CREATING, 2
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
module Google
|
|
71
|
+
module Bigtable
|
|
72
|
+
module Admin
|
|
73
|
+
module V2
|
|
74
|
+
Table = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table").msgclass
|
|
75
|
+
Table::ClusterState = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.ClusterState").msgclass
|
|
76
|
+
Table::ClusterState::ReplicationState = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.ClusterState.ReplicationState").enummodule
|
|
77
|
+
Table::TimestampGranularity = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.TimestampGranularity").enummodule
|
|
78
|
+
Table::View = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.View").enummodule
|
|
79
|
+
ColumnFamily = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ColumnFamily").msgclass
|
|
80
|
+
GcRule = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GcRule").msgclass
|
|
81
|
+
GcRule::Intersection = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GcRule.Intersection").msgclass
|
|
82
|
+
GcRule::Union = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GcRule.Union").msgclass
|
|
83
|
+
Snapshot = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Snapshot").msgclass
|
|
84
|
+
Snapshot::State = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Snapshot.State").enummodule
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
end
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# source: google/bigtable/v2/bigtable.proto
|
|
3
|
+
|
|
4
|
+
require 'google/protobuf'
|
|
5
|
+
|
|
6
|
+
require 'google/api/annotations_pb'
|
|
7
|
+
require 'google/bigtable/v2/data_pb'
|
|
8
|
+
require 'google/protobuf/wrappers_pb'
|
|
9
|
+
require 'google/rpc/status_pb'
|
|
10
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
11
|
+
add_message "google.bigtable.v2.ReadRowsRequest" do
|
|
12
|
+
optional :table_name, :string, 1
|
|
13
|
+
optional :app_profile_id, :string, 5
|
|
14
|
+
optional :rows, :message, 2, "google.bigtable.v2.RowSet"
|
|
15
|
+
optional :filter, :message, 3, "google.bigtable.v2.RowFilter"
|
|
16
|
+
optional :rows_limit, :int64, 4
|
|
17
|
+
end
|
|
18
|
+
add_message "google.bigtable.v2.ReadRowsResponse" do
|
|
19
|
+
repeated :chunks, :message, 1, "google.bigtable.v2.ReadRowsResponse.CellChunk"
|
|
20
|
+
optional :last_scanned_row_key, :bytes, 2
|
|
21
|
+
end
|
|
22
|
+
add_message "google.bigtable.v2.ReadRowsResponse.CellChunk" do
|
|
23
|
+
optional :row_key, :bytes, 1
|
|
24
|
+
optional :family_name, :message, 2, "google.protobuf.StringValue"
|
|
25
|
+
optional :qualifier, :message, 3, "google.protobuf.BytesValue"
|
|
26
|
+
optional :timestamp_micros, :int64, 4
|
|
27
|
+
repeated :labels, :string, 5
|
|
28
|
+
optional :value, :bytes, 6
|
|
29
|
+
optional :value_size, :int32, 7
|
|
30
|
+
oneof :row_status do
|
|
31
|
+
optional :reset_row, :bool, 8
|
|
32
|
+
optional :commit_row, :bool, 9
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
add_message "google.bigtable.v2.SampleRowKeysRequest" do
|
|
36
|
+
optional :table_name, :string, 1
|
|
37
|
+
optional :app_profile_id, :string, 2
|
|
38
|
+
end
|
|
39
|
+
add_message "google.bigtable.v2.SampleRowKeysResponse" do
|
|
40
|
+
optional :row_key, :bytes, 1
|
|
41
|
+
optional :offset_bytes, :int64, 2
|
|
42
|
+
end
|
|
43
|
+
add_message "google.bigtable.v2.MutateRowRequest" do
|
|
44
|
+
optional :table_name, :string, 1
|
|
45
|
+
optional :app_profile_id, :string, 4
|
|
46
|
+
optional :row_key, :bytes, 2
|
|
47
|
+
repeated :mutations, :message, 3, "google.bigtable.v2.Mutation"
|
|
48
|
+
end
|
|
49
|
+
add_message "google.bigtable.v2.MutateRowResponse" do
|
|
50
|
+
end
|
|
51
|
+
add_message "google.bigtable.v2.MutateRowsRequest" do
|
|
52
|
+
optional :table_name, :string, 1
|
|
53
|
+
optional :app_profile_id, :string, 3
|
|
54
|
+
repeated :entries, :message, 2, "google.bigtable.v2.MutateRowsRequest.Entry"
|
|
55
|
+
end
|
|
56
|
+
add_message "google.bigtable.v2.MutateRowsRequest.Entry" do
|
|
57
|
+
optional :row_key, :bytes, 1
|
|
58
|
+
repeated :mutations, :message, 2, "google.bigtable.v2.Mutation"
|
|
59
|
+
end
|
|
60
|
+
add_message "google.bigtable.v2.MutateRowsResponse" do
|
|
61
|
+
repeated :entries, :message, 1, "google.bigtable.v2.MutateRowsResponse.Entry"
|
|
62
|
+
end
|
|
63
|
+
add_message "google.bigtable.v2.MutateRowsResponse.Entry" do
|
|
64
|
+
optional :index, :int64, 1
|
|
65
|
+
optional :status, :message, 2, "google.rpc.Status"
|
|
66
|
+
end
|
|
67
|
+
add_message "google.bigtable.v2.CheckAndMutateRowRequest" do
|
|
68
|
+
optional :table_name, :string, 1
|
|
69
|
+
optional :app_profile_id, :string, 7
|
|
70
|
+
optional :row_key, :bytes, 2
|
|
71
|
+
optional :predicate_filter, :message, 6, "google.bigtable.v2.RowFilter"
|
|
72
|
+
repeated :true_mutations, :message, 4, "google.bigtable.v2.Mutation"
|
|
73
|
+
repeated :false_mutations, :message, 5, "google.bigtable.v2.Mutation"
|
|
74
|
+
end
|
|
75
|
+
add_message "google.bigtable.v2.CheckAndMutateRowResponse" do
|
|
76
|
+
optional :predicate_matched, :bool, 1
|
|
77
|
+
end
|
|
78
|
+
add_message "google.bigtable.v2.ReadModifyWriteRowRequest" do
|
|
79
|
+
optional :table_name, :string, 1
|
|
80
|
+
optional :app_profile_id, :string, 4
|
|
81
|
+
optional :row_key, :bytes, 2
|
|
82
|
+
repeated :rules, :message, 3, "google.bigtable.v2.ReadModifyWriteRule"
|
|
83
|
+
end
|
|
84
|
+
add_message "google.bigtable.v2.ReadModifyWriteRowResponse" do
|
|
85
|
+
optional :row, :message, 1, "google.bigtable.v2.Row"
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
module Google
|
|
90
|
+
module Bigtable
|
|
91
|
+
module V2
|
|
92
|
+
ReadRowsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.ReadRowsRequest").msgclass
|
|
93
|
+
ReadRowsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.ReadRowsResponse").msgclass
|
|
94
|
+
ReadRowsResponse::CellChunk = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.ReadRowsResponse.CellChunk").msgclass
|
|
95
|
+
SampleRowKeysRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.SampleRowKeysRequest").msgclass
|
|
96
|
+
SampleRowKeysResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.SampleRowKeysResponse").msgclass
|
|
97
|
+
MutateRowRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.MutateRowRequest").msgclass
|
|
98
|
+
MutateRowResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.MutateRowResponse").msgclass
|
|
99
|
+
MutateRowsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.MutateRowsRequest").msgclass
|
|
100
|
+
MutateRowsRequest::Entry = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.MutateRowsRequest.Entry").msgclass
|
|
101
|
+
MutateRowsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.MutateRowsResponse").msgclass
|
|
102
|
+
MutateRowsResponse::Entry = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.MutateRowsResponse.Entry").msgclass
|
|
103
|
+
CheckAndMutateRowRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.CheckAndMutateRowRequest").msgclass
|
|
104
|
+
CheckAndMutateRowResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.CheckAndMutateRowResponse").msgclass
|
|
105
|
+
ReadModifyWriteRowRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.ReadModifyWriteRowRequest").msgclass
|
|
106
|
+
ReadModifyWriteRowResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.ReadModifyWriteRowResponse").msgclass
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
|
+
end
|