google-cloud-bigtable 1.1.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/CHANGELOG.md +54 -0
- data/TROUBLESHOOTING.md +2 -8
- data/lib/google-cloud-bigtable.rb +29 -27
- data/lib/google/cloud/bigtable.rb +18 -26
- data/lib/google/cloud/bigtable/app_profile.rb +3 -3
- data/lib/google/cloud/bigtable/app_profile/list.rb +6 -4
- data/lib/google/cloud/bigtable/backup.rb +324 -0
- data/lib/google/cloud/bigtable/backup/job.rb +87 -0
- data/lib/google/cloud/bigtable/backup/list.rb +167 -0
- data/lib/google/cloud/bigtable/chunk_processor.rb +1 -1
- data/lib/google/cloud/bigtable/cluster.rb +101 -2
- data/lib/google/cloud/bigtable/cluster/list.rb +2 -2
- data/lib/google/cloud/bigtable/column_family.rb +2 -2
- data/lib/google/cloud/bigtable/column_family_map.rb +11 -11
- data/lib/google/cloud/bigtable/column_range.rb +2 -2
- data/lib/google/cloud/bigtable/credentials.rb +36 -2
- data/lib/google/cloud/bigtable/gc_rule.rb +7 -7
- data/lib/google/cloud/bigtable/instance.rb +6 -6
- data/lib/google/cloud/bigtable/instance/cluster_map.rb +1 -1
- data/lib/google/cloud/bigtable/instance/list.rb +2 -2
- data/lib/google/cloud/bigtable/longrunning_job.rb +13 -2
- data/lib/google/cloud/bigtable/mutation_entry.rb +10 -9
- data/lib/google/cloud/bigtable/mutation_operations.rb +2 -2
- data/lib/google/cloud/bigtable/project.rb +1 -1
- data/lib/google/cloud/bigtable/read_modify_write_rule.rb +2 -2
- data/lib/google/cloud/bigtable/read_operations.rb +2 -2
- data/lib/google/cloud/bigtable/routing_policy.rb +2 -2
- data/lib/google/cloud/bigtable/row_filter/chain_filter.rb +3 -3
- data/lib/google/cloud/bigtable/row_filter/condition_filter.rb +3 -3
- data/lib/google/cloud/bigtable/row_filter/interleave_filter.rb +3 -3
- data/lib/google/cloud/bigtable/row_filter/simple_filter.rb +3 -3
- data/lib/google/cloud/bigtable/row_range.rb +2 -2
- data/lib/google/cloud/bigtable/rows_mutator.rb +3 -3
- data/lib/google/cloud/bigtable/rows_reader.rb +10 -10
- data/lib/google/cloud/bigtable/sample_row_key.rb +2 -2
- data/lib/google/cloud/bigtable/service.rb +241 -245
- data/lib/google/cloud/bigtable/table.rb +5 -4
- data/lib/google/cloud/bigtable/table/cluster_state.rb +27 -6
- data/lib/google/cloud/bigtable/table/list.rb +2 -2
- data/lib/google/cloud/bigtable/table/restore_job.rb +117 -0
- data/lib/google/cloud/bigtable/value_range.rb +2 -2
- data/lib/google/cloud/bigtable/version.rb +1 -1
- metadata +18 -96
- data/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb +0 -142
- data/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb +0 -87
- data/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb +0 -141
- data/lib/google/bigtable/admin/v2/bigtable_table_admin_services_pb.rb +0 -127
- data/lib/google/bigtable/admin/v2/common_pb.rb +0 -25
- data/lib/google/bigtable/admin/v2/instance_pb.rb +0 -73
- data/lib/google/bigtable/admin/v2/table_pb.rb +0 -89
- data/lib/google/bigtable/v2/bigtable_pb.rb +0 -113
- data/lib/google/bigtable/v2/bigtable_services_pb.rb +0 -68
- data/lib/google/bigtable/v2/data_pb.rb +0 -156
- data/lib/google/cloud/bigtable/admin.rb +0 -202
- data/lib/google/cloud/bigtable/admin/credentials.rb +0 -27
- data/lib/google/cloud/bigtable/admin/v2.rb +0 -222
- data/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin_client.rb +0 -1441
- data/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin_client_config.json +0 -139
- data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin_client.rb +0 -1245
- data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin_client_config.json +0 -133
- data/lib/google/cloud/bigtable/admin/v2/credentials.rb +0 -51
- data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/bigtable_instance_admin.rb +0 -290
- data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/bigtable_table_admin.rb +0 -359
- data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/instance.rb +0 -195
- data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/table.rb +0 -210
- data/lib/google/cloud/bigtable/admin/v2/doc/google/iam/v1/iam_policy.rb +0 -64
- data/lib/google/cloud/bigtable/admin/v2/doc/google/iam/v1/options.rb +0 -33
- data/lib/google/cloud/bigtable/admin/v2/doc/google/iam/v1/policy.rb +0 -151
- data/lib/google/cloud/bigtable/admin/v2/doc/google/longrunning/operations.rb +0 -51
- data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/any.rb +0 -131
- data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/duration.rb +0 -91
- data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/empty.rb +0 -29
- data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/field_mask.rb +0 -222
- data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/timestamp.rb +0 -113
- data/lib/google/cloud/bigtable/admin/v2/doc/google/rpc/status.rb +0 -39
- data/lib/google/cloud/bigtable/admin/v2/doc/google/type/expr.rb +0 -45
- data/lib/google/cloud/bigtable/v2.rb +0 -146
- data/lib/google/cloud/bigtable/v2/bigtable_client.rb +0 -588
- data/lib/google/cloud/bigtable/v2/bigtable_client_config.json +0 -83
- data/lib/google/cloud/bigtable/v2/credentials.rb +0 -46
- data/lib/google/cloud/bigtable/v2/doc/google/bigtable/v2/bigtable.rb +0 -290
- data/lib/google/cloud/bigtable/v2/doc/google/bigtable/v2/data.rb +0 -493
- data/lib/google/cloud/bigtable/v2/doc/google/protobuf/any.rb +0 -131
- data/lib/google/cloud/bigtable/v2/doc/google/protobuf/wrappers.rb +0 -34
- data/lib/google/cloud/bigtable/v2/doc/google/rpc/status.rb +0 -39
@@ -1,142 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/bigtable/admin/v2/bigtable_instance_admin.proto
|
3
|
-
|
4
|
-
|
5
|
-
require 'google/protobuf'
|
6
|
-
|
7
|
-
require 'google/api/annotations_pb'
|
8
|
-
require 'google/bigtable/admin/v2/instance_pb'
|
9
|
-
require 'google/iam/v1/iam_policy_pb'
|
10
|
-
require 'google/iam/v1/policy_pb'
|
11
|
-
require 'google/longrunning/operations_pb'
|
12
|
-
require 'google/protobuf/empty_pb'
|
13
|
-
require 'google/protobuf/field_mask_pb'
|
14
|
-
require 'google/protobuf/timestamp_pb'
|
15
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
16
|
-
add_message "google.bigtable.admin.v2.CreateInstanceRequest" do
|
17
|
-
optional :parent, :string, 1
|
18
|
-
optional :instance_id, :string, 2
|
19
|
-
optional :instance, :message, 3, "google.bigtable.admin.v2.Instance"
|
20
|
-
map :clusters, :string, :message, 4, "google.bigtable.admin.v2.Cluster"
|
21
|
-
end
|
22
|
-
add_message "google.bigtable.admin.v2.GetInstanceRequest" do
|
23
|
-
optional :name, :string, 1
|
24
|
-
end
|
25
|
-
add_message "google.bigtable.admin.v2.ListInstancesRequest" do
|
26
|
-
optional :parent, :string, 1
|
27
|
-
optional :page_token, :string, 2
|
28
|
-
end
|
29
|
-
add_message "google.bigtable.admin.v2.ListInstancesResponse" do
|
30
|
-
repeated :instances, :message, 1, "google.bigtable.admin.v2.Instance"
|
31
|
-
repeated :failed_locations, :string, 2
|
32
|
-
optional :next_page_token, :string, 3
|
33
|
-
end
|
34
|
-
add_message "google.bigtable.admin.v2.PartialUpdateInstanceRequest" do
|
35
|
-
optional :instance, :message, 1, "google.bigtable.admin.v2.Instance"
|
36
|
-
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
37
|
-
end
|
38
|
-
add_message "google.bigtable.admin.v2.DeleteInstanceRequest" do
|
39
|
-
optional :name, :string, 1
|
40
|
-
end
|
41
|
-
add_message "google.bigtable.admin.v2.CreateClusterRequest" do
|
42
|
-
optional :parent, :string, 1
|
43
|
-
optional :cluster_id, :string, 2
|
44
|
-
optional :cluster, :message, 3, "google.bigtable.admin.v2.Cluster"
|
45
|
-
end
|
46
|
-
add_message "google.bigtable.admin.v2.GetClusterRequest" do
|
47
|
-
optional :name, :string, 1
|
48
|
-
end
|
49
|
-
add_message "google.bigtable.admin.v2.ListClustersRequest" do
|
50
|
-
optional :parent, :string, 1
|
51
|
-
optional :page_token, :string, 2
|
52
|
-
end
|
53
|
-
add_message "google.bigtable.admin.v2.ListClustersResponse" do
|
54
|
-
repeated :clusters, :message, 1, "google.bigtable.admin.v2.Cluster"
|
55
|
-
repeated :failed_locations, :string, 2
|
56
|
-
optional :next_page_token, :string, 3
|
57
|
-
end
|
58
|
-
add_message "google.bigtable.admin.v2.DeleteClusterRequest" do
|
59
|
-
optional :name, :string, 1
|
60
|
-
end
|
61
|
-
add_message "google.bigtable.admin.v2.CreateInstanceMetadata" do
|
62
|
-
optional :original_request, :message, 1, "google.bigtable.admin.v2.CreateInstanceRequest"
|
63
|
-
optional :request_time, :message, 2, "google.protobuf.Timestamp"
|
64
|
-
optional :finish_time, :message, 3, "google.protobuf.Timestamp"
|
65
|
-
end
|
66
|
-
add_message "google.bigtable.admin.v2.UpdateInstanceMetadata" do
|
67
|
-
optional :original_request, :message, 1, "google.bigtable.admin.v2.PartialUpdateInstanceRequest"
|
68
|
-
optional :request_time, :message, 2, "google.protobuf.Timestamp"
|
69
|
-
optional :finish_time, :message, 3, "google.protobuf.Timestamp"
|
70
|
-
end
|
71
|
-
add_message "google.bigtable.admin.v2.CreateClusterMetadata" do
|
72
|
-
optional :original_request, :message, 1, "google.bigtable.admin.v2.CreateClusterRequest"
|
73
|
-
optional :request_time, :message, 2, "google.protobuf.Timestamp"
|
74
|
-
optional :finish_time, :message, 3, "google.protobuf.Timestamp"
|
75
|
-
end
|
76
|
-
add_message "google.bigtable.admin.v2.UpdateClusterMetadata" do
|
77
|
-
optional :original_request, :message, 1, "google.bigtable.admin.v2.Cluster"
|
78
|
-
optional :request_time, :message, 2, "google.protobuf.Timestamp"
|
79
|
-
optional :finish_time, :message, 3, "google.protobuf.Timestamp"
|
80
|
-
end
|
81
|
-
add_message "google.bigtable.admin.v2.CreateAppProfileRequest" do
|
82
|
-
optional :parent, :string, 1
|
83
|
-
optional :app_profile_id, :string, 2
|
84
|
-
optional :app_profile, :message, 3, "google.bigtable.admin.v2.AppProfile"
|
85
|
-
optional :ignore_warnings, :bool, 4
|
86
|
-
end
|
87
|
-
add_message "google.bigtable.admin.v2.GetAppProfileRequest" do
|
88
|
-
optional :name, :string, 1
|
89
|
-
end
|
90
|
-
add_message "google.bigtable.admin.v2.ListAppProfilesRequest" do
|
91
|
-
optional :parent, :string, 1
|
92
|
-
optional :page_size, :int32, 3
|
93
|
-
optional :page_token, :string, 2
|
94
|
-
end
|
95
|
-
add_message "google.bigtable.admin.v2.ListAppProfilesResponse" do
|
96
|
-
repeated :app_profiles, :message, 1, "google.bigtable.admin.v2.AppProfile"
|
97
|
-
optional :next_page_token, :string, 2
|
98
|
-
repeated :failed_locations, :string, 3
|
99
|
-
end
|
100
|
-
add_message "google.bigtable.admin.v2.UpdateAppProfileRequest" do
|
101
|
-
optional :app_profile, :message, 1, "google.bigtable.admin.v2.AppProfile"
|
102
|
-
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
103
|
-
optional :ignore_warnings, :bool, 3
|
104
|
-
end
|
105
|
-
add_message "google.bigtable.admin.v2.DeleteAppProfileRequest" do
|
106
|
-
optional :name, :string, 1
|
107
|
-
optional :ignore_warnings, :bool, 2
|
108
|
-
end
|
109
|
-
add_message "google.bigtable.admin.v2.UpdateAppProfileMetadata" do
|
110
|
-
end
|
111
|
-
end
|
112
|
-
|
113
|
-
module Google
|
114
|
-
module Bigtable
|
115
|
-
module Admin
|
116
|
-
module V2
|
117
|
-
CreateInstanceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateInstanceRequest").msgclass
|
118
|
-
GetInstanceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetInstanceRequest").msgclass
|
119
|
-
ListInstancesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListInstancesRequest").msgclass
|
120
|
-
ListInstancesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListInstancesResponse").msgclass
|
121
|
-
PartialUpdateInstanceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.PartialUpdateInstanceRequest").msgclass
|
122
|
-
DeleteInstanceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteInstanceRequest").msgclass
|
123
|
-
CreateClusterRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateClusterRequest").msgclass
|
124
|
-
GetClusterRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetClusterRequest").msgclass
|
125
|
-
ListClustersRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListClustersRequest").msgclass
|
126
|
-
ListClustersResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListClustersResponse").msgclass
|
127
|
-
DeleteClusterRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteClusterRequest").msgclass
|
128
|
-
CreateInstanceMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateInstanceMetadata").msgclass
|
129
|
-
UpdateInstanceMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateInstanceMetadata").msgclass
|
130
|
-
CreateClusterMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateClusterMetadata").msgclass
|
131
|
-
UpdateClusterMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateClusterMetadata").msgclass
|
132
|
-
CreateAppProfileRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateAppProfileRequest").msgclass
|
133
|
-
GetAppProfileRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetAppProfileRequest").msgclass
|
134
|
-
ListAppProfilesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListAppProfilesRequest").msgclass
|
135
|
-
ListAppProfilesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListAppProfilesResponse").msgclass
|
136
|
-
UpdateAppProfileRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateAppProfileRequest").msgclass
|
137
|
-
DeleteAppProfileRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteAppProfileRequest").msgclass
|
138
|
-
UpdateAppProfileMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateAppProfileMetadata").msgclass
|
139
|
-
end
|
140
|
-
end
|
141
|
-
end
|
142
|
-
end
|
@@ -1,87 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# Source: google/bigtable/admin/v2/bigtable_instance_admin.proto for package 'google.bigtable.admin.v2'
|
3
|
-
# Original file comments:
|
4
|
-
# Copyright 2018 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
|
-
|
21
|
-
require 'grpc'
|
22
|
-
require 'google/bigtable/admin/v2/bigtable_instance_admin_pb'
|
23
|
-
|
24
|
-
module Google
|
25
|
-
module Bigtable
|
26
|
-
module Admin
|
27
|
-
module V2
|
28
|
-
module BigtableInstanceAdmin
|
29
|
-
# Service for creating, configuring, and deleting Cloud Bigtable Instances and
|
30
|
-
# Clusters. Provides access to the Instance and Cluster schemas only, not the
|
31
|
-
# tables' metadata or data stored in those 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.BigtableInstanceAdmin'
|
39
|
-
|
40
|
-
# Create an instance within a project.
|
41
|
-
rpc :CreateInstance, CreateInstanceRequest, Google::Longrunning::Operation
|
42
|
-
# Gets information about an instance.
|
43
|
-
rpc :GetInstance, GetInstanceRequest, Instance
|
44
|
-
# Lists information about instances in a project.
|
45
|
-
rpc :ListInstances, ListInstancesRequest, ListInstancesResponse
|
46
|
-
# Updates an instance within a project.
|
47
|
-
rpc :UpdateInstance, Instance, Instance
|
48
|
-
# Partially updates an instance within a project.
|
49
|
-
rpc :PartialUpdateInstance, PartialUpdateInstanceRequest, Google::Longrunning::Operation
|
50
|
-
# Delete an instance from a project.
|
51
|
-
rpc :DeleteInstance, DeleteInstanceRequest, Google::Protobuf::Empty
|
52
|
-
# Creates a cluster within an instance.
|
53
|
-
rpc :CreateCluster, CreateClusterRequest, Google::Longrunning::Operation
|
54
|
-
# Gets information about a cluster.
|
55
|
-
rpc :GetCluster, GetClusterRequest, Cluster
|
56
|
-
# Lists information about clusters in an instance.
|
57
|
-
rpc :ListClusters, ListClustersRequest, ListClustersResponse
|
58
|
-
# Updates a cluster within an instance.
|
59
|
-
rpc :UpdateCluster, Cluster, Google::Longrunning::Operation
|
60
|
-
# Deletes a cluster from an instance.
|
61
|
-
rpc :DeleteCluster, DeleteClusterRequest, Google::Protobuf::Empty
|
62
|
-
# Creates an app profile within an instance.
|
63
|
-
rpc :CreateAppProfile, CreateAppProfileRequest, AppProfile
|
64
|
-
# Gets information about an app profile.
|
65
|
-
rpc :GetAppProfile, GetAppProfileRequest, AppProfile
|
66
|
-
# Lists information about app profiles in an instance.
|
67
|
-
rpc :ListAppProfiles, ListAppProfilesRequest, ListAppProfilesResponse
|
68
|
-
# Updates an app profile within an instance.
|
69
|
-
rpc :UpdateAppProfile, UpdateAppProfileRequest, Google::Longrunning::Operation
|
70
|
-
# Deletes an app profile from an instance.
|
71
|
-
rpc :DeleteAppProfile, DeleteAppProfileRequest, Google::Protobuf::Empty
|
72
|
-
# Gets the access control policy for an instance resource. Returns an empty
|
73
|
-
# policy if an instance exists but does not have a policy set.
|
74
|
-
rpc :GetIamPolicy, Google::Iam::V1::GetIamPolicyRequest, Google::Iam::V1::Policy
|
75
|
-
# Sets the access control policy on an instance resource. Replaces any
|
76
|
-
# existing policy.
|
77
|
-
rpc :SetIamPolicy, Google::Iam::V1::SetIamPolicyRequest, Google::Iam::V1::Policy
|
78
|
-
# Returns permissions that the caller has on the specified instance resource.
|
79
|
-
rpc :TestIamPermissions, Google::Iam::V1::TestIamPermissionsRequest, Google::Iam::V1::TestIamPermissionsResponse
|
80
|
-
end
|
81
|
-
|
82
|
-
Stub = Service.rpc_stub_class
|
83
|
-
end
|
84
|
-
end
|
85
|
-
end
|
86
|
-
end
|
87
|
-
end
|
@@ -1,141 +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/bigtable/admin/v2/table_pb'
|
9
|
-
require 'google/iam/v1/iam_policy_pb'
|
10
|
-
require 'google/iam/v1/policy_pb'
|
11
|
-
require 'google/longrunning/operations_pb'
|
12
|
-
require 'google/protobuf/duration_pb'
|
13
|
-
require 'google/protobuf/empty_pb'
|
14
|
-
require 'google/protobuf/timestamp_pb'
|
15
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
16
|
-
add_message "google.bigtable.admin.v2.CreateTableRequest" do
|
17
|
-
optional :parent, :string, 1
|
18
|
-
optional :table_id, :string, 2
|
19
|
-
optional :table, :message, 3, "google.bigtable.admin.v2.Table"
|
20
|
-
repeated :initial_splits, :message, 4, "google.bigtable.admin.v2.CreateTableRequest.Split"
|
21
|
-
end
|
22
|
-
add_message "google.bigtable.admin.v2.CreateTableRequest.Split" do
|
23
|
-
optional :key, :bytes, 1
|
24
|
-
end
|
25
|
-
add_message "google.bigtable.admin.v2.CreateTableFromSnapshotRequest" do
|
26
|
-
optional :parent, :string, 1
|
27
|
-
optional :table_id, :string, 2
|
28
|
-
optional :source_snapshot, :string, 3
|
29
|
-
end
|
30
|
-
add_message "google.bigtable.admin.v2.DropRowRangeRequest" do
|
31
|
-
optional :name, :string, 1
|
32
|
-
oneof :target do
|
33
|
-
optional :row_key_prefix, :bytes, 2
|
34
|
-
optional :delete_all_data_from_table, :bool, 3
|
35
|
-
end
|
36
|
-
end
|
37
|
-
add_message "google.bigtable.admin.v2.ListTablesRequest" do
|
38
|
-
optional :parent, :string, 1
|
39
|
-
optional :view, :enum, 2, "google.bigtable.admin.v2.Table.View"
|
40
|
-
optional :page_size, :int32, 4
|
41
|
-
optional :page_token, :string, 3
|
42
|
-
end
|
43
|
-
add_message "google.bigtable.admin.v2.ListTablesResponse" do
|
44
|
-
repeated :tables, :message, 1, "google.bigtable.admin.v2.Table"
|
45
|
-
optional :next_page_token, :string, 2
|
46
|
-
end
|
47
|
-
add_message "google.bigtable.admin.v2.GetTableRequest" do
|
48
|
-
optional :name, :string, 1
|
49
|
-
optional :view, :enum, 2, "google.bigtable.admin.v2.Table.View"
|
50
|
-
end
|
51
|
-
add_message "google.bigtable.admin.v2.DeleteTableRequest" do
|
52
|
-
optional :name, :string, 1
|
53
|
-
end
|
54
|
-
add_message "google.bigtable.admin.v2.ModifyColumnFamiliesRequest" do
|
55
|
-
optional :name, :string, 1
|
56
|
-
repeated :modifications, :message, 2, "google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification"
|
57
|
-
end
|
58
|
-
add_message "google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification" do
|
59
|
-
optional :id, :string, 1
|
60
|
-
oneof :mod do
|
61
|
-
optional :create, :message, 2, "google.bigtable.admin.v2.ColumnFamily"
|
62
|
-
optional :update, :message, 3, "google.bigtable.admin.v2.ColumnFamily"
|
63
|
-
optional :drop, :bool, 4
|
64
|
-
end
|
65
|
-
end
|
66
|
-
add_message "google.bigtable.admin.v2.GenerateConsistencyTokenRequest" do
|
67
|
-
optional :name, :string, 1
|
68
|
-
end
|
69
|
-
add_message "google.bigtable.admin.v2.GenerateConsistencyTokenResponse" do
|
70
|
-
optional :consistency_token, :string, 1
|
71
|
-
end
|
72
|
-
add_message "google.bigtable.admin.v2.CheckConsistencyRequest" do
|
73
|
-
optional :name, :string, 1
|
74
|
-
optional :consistency_token, :string, 2
|
75
|
-
end
|
76
|
-
add_message "google.bigtable.admin.v2.CheckConsistencyResponse" do
|
77
|
-
optional :consistent, :bool, 1
|
78
|
-
end
|
79
|
-
add_message "google.bigtable.admin.v2.SnapshotTableRequest" do
|
80
|
-
optional :name, :string, 1
|
81
|
-
optional :cluster, :string, 2
|
82
|
-
optional :snapshot_id, :string, 3
|
83
|
-
optional :ttl, :message, 4, "google.protobuf.Duration"
|
84
|
-
optional :description, :string, 5
|
85
|
-
end
|
86
|
-
add_message "google.bigtable.admin.v2.GetSnapshotRequest" do
|
87
|
-
optional :name, :string, 1
|
88
|
-
end
|
89
|
-
add_message "google.bigtable.admin.v2.ListSnapshotsRequest" do
|
90
|
-
optional :parent, :string, 1
|
91
|
-
optional :page_size, :int32, 2
|
92
|
-
optional :page_token, :string, 3
|
93
|
-
end
|
94
|
-
add_message "google.bigtable.admin.v2.ListSnapshotsResponse" do
|
95
|
-
repeated :snapshots, :message, 1, "google.bigtable.admin.v2.Snapshot"
|
96
|
-
optional :next_page_token, :string, 2
|
97
|
-
end
|
98
|
-
add_message "google.bigtable.admin.v2.DeleteSnapshotRequest" do
|
99
|
-
optional :name, :string, 1
|
100
|
-
end
|
101
|
-
add_message "google.bigtable.admin.v2.SnapshotTableMetadata" do
|
102
|
-
optional :original_request, :message, 1, "google.bigtable.admin.v2.SnapshotTableRequest"
|
103
|
-
optional :request_time, :message, 2, "google.protobuf.Timestamp"
|
104
|
-
optional :finish_time, :message, 3, "google.protobuf.Timestamp"
|
105
|
-
end
|
106
|
-
add_message "google.bigtable.admin.v2.CreateTableFromSnapshotMetadata" do
|
107
|
-
optional :original_request, :message, 1, "google.bigtable.admin.v2.CreateTableFromSnapshotRequest"
|
108
|
-
optional :request_time, :message, 2, "google.protobuf.Timestamp"
|
109
|
-
optional :finish_time, :message, 3, "google.protobuf.Timestamp"
|
110
|
-
end
|
111
|
-
end
|
112
|
-
|
113
|
-
module Google
|
114
|
-
module Bigtable
|
115
|
-
module Admin
|
116
|
-
module V2
|
117
|
-
CreateTableRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateTableRequest").msgclass
|
118
|
-
CreateTableRequest::Split = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateTableRequest.Split").msgclass
|
119
|
-
CreateTableFromSnapshotRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateTableFromSnapshotRequest").msgclass
|
120
|
-
DropRowRangeRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DropRowRangeRequest").msgclass
|
121
|
-
ListTablesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListTablesRequest").msgclass
|
122
|
-
ListTablesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListTablesResponse").msgclass
|
123
|
-
GetTableRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetTableRequest").msgclass
|
124
|
-
DeleteTableRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteTableRequest").msgclass
|
125
|
-
ModifyColumnFamiliesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ModifyColumnFamiliesRequest").msgclass
|
126
|
-
ModifyColumnFamiliesRequest::Modification = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification").msgclass
|
127
|
-
GenerateConsistencyTokenRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GenerateConsistencyTokenRequest").msgclass
|
128
|
-
GenerateConsistencyTokenResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GenerateConsistencyTokenResponse").msgclass
|
129
|
-
CheckConsistencyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CheckConsistencyRequest").msgclass
|
130
|
-
CheckConsistencyResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CheckConsistencyResponse").msgclass
|
131
|
-
SnapshotTableRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.SnapshotTableRequest").msgclass
|
132
|
-
GetSnapshotRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetSnapshotRequest").msgclass
|
133
|
-
ListSnapshotsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListSnapshotsRequest").msgclass
|
134
|
-
ListSnapshotsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListSnapshotsResponse").msgclass
|
135
|
-
DeleteSnapshotRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteSnapshotRequest").msgclass
|
136
|
-
SnapshotTableMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.SnapshotTableMetadata").msgclass
|
137
|
-
CreateTableFromSnapshotMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateTableFromSnapshotMetadata").msgclass
|
138
|
-
end
|
139
|
-
end
|
140
|
-
end
|
141
|
-
end
|
@@ -1,127 +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.bigtable.admin.v2'
|
3
|
-
# Original file comments:
|
4
|
-
# Copyright 2018 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
|
-
|
21
|
-
require 'grpc'
|
22
|
-
require 'google/bigtable/admin/v2/bigtable_table_admin_pb'
|
23
|
-
|
24
|
-
module Google
|
25
|
-
module Bigtable
|
26
|
-
module Admin
|
27
|
-
module V2
|
28
|
-
module BigtableTableAdmin
|
29
|
-
# Service for creating, configuring, and deleting Cloud Bigtable tables.
|
30
|
-
#
|
31
|
-
#
|
32
|
-
# Provides access to the table schemas only, not the data stored within
|
33
|
-
# the tables.
|
34
|
-
class Service
|
35
|
-
|
36
|
-
include GRPC::GenericService
|
37
|
-
|
38
|
-
self.marshal_class_method = :encode
|
39
|
-
self.unmarshal_class_method = :decode
|
40
|
-
self.service_name = 'google.bigtable.admin.v2.BigtableTableAdmin'
|
41
|
-
|
42
|
-
# Creates a new table in the specified instance.
|
43
|
-
# The table can be created with a full set of initial column families,
|
44
|
-
# specified in the request.
|
45
|
-
rpc :CreateTable, CreateTableRequest, Table
|
46
|
-
# Creates a new table from the specified snapshot. The target table must
|
47
|
-
# not exist. The snapshot and the table must be in the same instance.
|
48
|
-
#
|
49
|
-
# Note: This is a private alpha release of Cloud Bigtable snapshots. This
|
50
|
-
# feature is not currently available to most Cloud Bigtable customers. This
|
51
|
-
# feature might be changed in backward-incompatible ways and is not
|
52
|
-
# recommended for production use. It is not subject to any SLA or deprecation
|
53
|
-
# policy.
|
54
|
-
rpc :CreateTableFromSnapshot, CreateTableFromSnapshotRequest, Google::Longrunning::Operation
|
55
|
-
# Lists all tables served from a specified instance.
|
56
|
-
rpc :ListTables, ListTablesRequest, ListTablesResponse
|
57
|
-
# Gets metadata information about the specified table.
|
58
|
-
rpc :GetTable, GetTableRequest, Table
|
59
|
-
# Permanently deletes a specified table and all of its data.
|
60
|
-
rpc :DeleteTable, DeleteTableRequest, Google::Protobuf::Empty
|
61
|
-
# Performs a series of column family modifications on the specified table.
|
62
|
-
# Either all or none of the modifications will occur before this method
|
63
|
-
# returns, but data requests received prior to that point may see a table
|
64
|
-
# where only some modifications have taken effect.
|
65
|
-
rpc :ModifyColumnFamilies, ModifyColumnFamiliesRequest, Table
|
66
|
-
# Permanently drop/delete a row range from a specified table. The request can
|
67
|
-
# specify whether to delete all rows in a table, or only those that match a
|
68
|
-
# particular prefix.
|
69
|
-
rpc :DropRowRange, DropRowRangeRequest, Google::Protobuf::Empty
|
70
|
-
# Generates a consistency token for a Table, which can be used in
|
71
|
-
# CheckConsistency to check whether mutations to the table that finished
|
72
|
-
# before this call started have been replicated. The tokens will be available
|
73
|
-
# for 90 days.
|
74
|
-
rpc :GenerateConsistencyToken, GenerateConsistencyTokenRequest, GenerateConsistencyTokenResponse
|
75
|
-
# Checks replication consistency based on a consistency token, that is, if
|
76
|
-
# replication has caught up based on the conditions specified in the token
|
77
|
-
# and the check request.
|
78
|
-
rpc :CheckConsistency, CheckConsistencyRequest, CheckConsistencyResponse
|
79
|
-
# Creates a new snapshot in the specified cluster from the specified
|
80
|
-
# source table. The cluster and the table must be in the same instance.
|
81
|
-
#
|
82
|
-
# Note: This is a private alpha release of Cloud Bigtable snapshots. This
|
83
|
-
# feature is not currently available to most Cloud Bigtable customers. This
|
84
|
-
# feature might be changed in backward-incompatible ways and is not
|
85
|
-
# recommended for production use. It is not subject to any SLA or deprecation
|
86
|
-
# policy.
|
87
|
-
rpc :SnapshotTable, SnapshotTableRequest, Google::Longrunning::Operation
|
88
|
-
# Gets metadata information about the specified snapshot.
|
89
|
-
#
|
90
|
-
# Note: This is a private alpha release of Cloud Bigtable snapshots. This
|
91
|
-
# feature is not currently available to most Cloud Bigtable customers. This
|
92
|
-
# feature might be changed in backward-incompatible ways and is not
|
93
|
-
# recommended for production use. It is not subject to any SLA or deprecation
|
94
|
-
# policy.
|
95
|
-
rpc :GetSnapshot, GetSnapshotRequest, Snapshot
|
96
|
-
# Lists all snapshots associated with the specified cluster.
|
97
|
-
#
|
98
|
-
# Note: This is a private alpha release of Cloud Bigtable snapshots. This
|
99
|
-
# feature is not currently available to most Cloud Bigtable customers. This
|
100
|
-
# feature might be changed in backward-incompatible ways and is not
|
101
|
-
# recommended for production use. It is not subject to any SLA or deprecation
|
102
|
-
# policy.
|
103
|
-
rpc :ListSnapshots, ListSnapshotsRequest, ListSnapshotsResponse
|
104
|
-
# Permanently deletes the specified snapshot.
|
105
|
-
#
|
106
|
-
# Note: This is a private alpha release of Cloud Bigtable snapshots. This
|
107
|
-
# feature is not currently available to most Cloud Bigtable customers. This
|
108
|
-
# feature might be changed in backward-incompatible ways and is not
|
109
|
-
# recommended for production use. It is not subject to any SLA or deprecation
|
110
|
-
# policy.
|
111
|
-
rpc :DeleteSnapshot, DeleteSnapshotRequest, Google::Protobuf::Empty
|
112
|
-
# Gets the access control policy for a table resource. Returns an empty
|
113
|
-
# policy if an table exists but does not have a policy set.
|
114
|
-
rpc :GetIamPolicy, Google::Iam::V1::GetIamPolicyRequest, Google::Iam::V1::Policy
|
115
|
-
# Sets the access control policy on a table resource. Replaces any existing
|
116
|
-
# policy.
|
117
|
-
rpc :SetIamPolicy, Google::Iam::V1::SetIamPolicyRequest, Google::Iam::V1::Policy
|
118
|
-
# Returns permissions that the caller has on the specified table resource.
|
119
|
-
rpc :TestIamPermissions, Google::Iam::V1::TestIamPermissionsRequest, Google::Iam::V1::TestIamPermissionsResponse
|
120
|
-
end
|
121
|
-
|
122
|
-
Stub = Service.rpc_stub_class
|
123
|
-
end
|
124
|
-
end
|
125
|
-
end
|
126
|
-
end
|
127
|
-
end
|