google-cloud-bigtable-admin-v2 0.1.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +64 -0
- data/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb +20 -21
- data/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb +27 -27
- data/lib/google/bigtable/admin/v2/bigtable_table_admin_services_pb.rb +30 -30
- data/lib/google/cloud/bigtable/admin/v2.rb +3 -0
- data/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/client.rb +22 -16
- data/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations.rb +90 -5
- data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/client.rb +75 -55
- data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/operations.rb +90 -5
- data/lib/google/cloud/bigtable/admin/v2/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +6 -0
- data/proto_docs/google/api/resource.rb +50 -14
- data/proto_docs/google/bigtable/admin/v2/bigtable_instance_admin.rb +1 -1
- data/proto_docs/google/bigtable/admin/v2/bigtable_table_admin.rb +114 -123
- data/proto_docs/google/longrunning/operations.rb +17 -3
- data/proto_docs/google/protobuf/any.rb +5 -2
- data/proto_docs/google/protobuf/timestamp.rb +10 -1
- metadata +7 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e851546fc3354fe87c5899aba92ceedb248455fab78ea983c14e63c3a3f6304
|
4
|
+
data.tar.gz: a33a20a24f39dd76f393e90c5b1ae0fe3ae4675aa33814ae9df4daae01d8f5ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65fb698a0a3b34284e86433e9278f6ef1a3d71fe125bce1f73a699f333bb5425e88e4b4be569b2365450149fdfe69ca4bcc26ca8cfc7c0e19b9dfc17f1690e25
|
7
|
+
data.tar.gz: 7d1486973873ddeafa6bf2dc08ca3b3525fda8f3e93b7efcfe4cc03371b2ac408a239b87d3ac1909e678380ca066e3b40e7c1f647557b3b942067b7d2c4dd1cd
|
data/README.md
CHANGED
@@ -6,6 +6,12 @@ Cloud Bigtable is a fully managed, scalable NoSQL database service for large ana
|
|
6
6
|
|
7
7
|
https://github.com/googleapis/google-cloud-ruby
|
8
8
|
|
9
|
+
This gem is a _versioned_ client. It provides basic client classes for a
|
10
|
+
specific version of the Cloud Bigtable Admin V2 API. Most users should consider using
|
11
|
+
the main client gem,
|
12
|
+
[google-cloud-bigtable-admin](https://rubygems.org/gems/google-cloud-bigtable-admin).
|
13
|
+
See the section below titled *Which client should I use?* for more information.
|
14
|
+
|
9
15
|
## Installation
|
10
16
|
|
11
17
|
```
|
@@ -73,3 +79,61 @@ in security maintenance, and not end of life. Currently, this means Ruby 2.4
|
|
73
79
|
and later. Older versions of Ruby _may_ still work, but are unsupported and not
|
74
80
|
recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
|
75
81
|
about the Ruby support schedule.
|
82
|
+
|
83
|
+
## Which client should I use?
|
84
|
+
|
85
|
+
Most modern Ruby client libraries for Google APIs come in two flavors: the main
|
86
|
+
client library with a name such as `google-cloud-bigtable-admin`,
|
87
|
+
and lower-level _versioned_ client libraries with names such as
|
88
|
+
`google-cloud-bigtable-admin-v2`.
|
89
|
+
_In most cases, you should install the main client._
|
90
|
+
|
91
|
+
### What's the difference between the main client and a versioned client?
|
92
|
+
|
93
|
+
A _versioned client_ provides a basic set of data types and client classes for
|
94
|
+
a _single version_ of a specific service. (That is, for a service with multiple
|
95
|
+
versions, there might be a separate versioned client for each service version.)
|
96
|
+
Most versioned clients are written and maintained by a code generator.
|
97
|
+
|
98
|
+
The _main client_ is designed to provide you with the _recommended_ client
|
99
|
+
interfaces for the service. There will be only one main client for any given
|
100
|
+
service, even a service with multiple versions. The main client includes
|
101
|
+
factory methods for constructing the client objects we recommend for most
|
102
|
+
users. In some cases, those will be classes provided by an underlying versioned
|
103
|
+
client; in other cases, they will be handwritten higher-level client objects
|
104
|
+
with additional capabilities, convenience methods, or best practices built in.
|
105
|
+
Generally, the main client will default to a recommended service version,
|
106
|
+
although in some cases you can override this if you need to talk to a specific
|
107
|
+
service version.
|
108
|
+
|
109
|
+
### Why would I want to use the main client?
|
110
|
+
|
111
|
+
We recommend that most users install the main client gem for a service. You can
|
112
|
+
identify this gem as the one _without_ a version in its name, e.g.
|
113
|
+
`google-cloud-bigtable-admin`.
|
114
|
+
The main client is recommended because it will embody the best practices for
|
115
|
+
accessing the service, and may also provide more convenient interfaces or
|
116
|
+
tighter integration into frameworks and third-party libraries. In addition, the
|
117
|
+
documentation and samples published by Google will generally demonstrate use of
|
118
|
+
the main client.
|
119
|
+
|
120
|
+
### Why would I want to use a versioned client?
|
121
|
+
|
122
|
+
You can use a versioned client if you are content with a possibly lower-level
|
123
|
+
class interface, you explicitly want to avoid features provided by the main
|
124
|
+
client, or you want to access a specific service version not be covered by the
|
125
|
+
main client. You can identify versioned client gems because the service version
|
126
|
+
is part of the name, e.g. `google-cloud-bigtable-admin-v2`.
|
127
|
+
|
128
|
+
### What about the google-apis-<name> clients?
|
129
|
+
|
130
|
+
Client library gems with names that begin with `google-apis-` are based on an
|
131
|
+
older code generation technology. They talk to a REST/JSON backend (whereas
|
132
|
+
most modern clients talk to a [gRPC](https://grpc.io/) backend) and they may
|
133
|
+
not offer the same performance, features, and ease of use provided by more
|
134
|
+
modern clients.
|
135
|
+
|
136
|
+
The `google-apis-` clients have wide coverage across Google services, so you
|
137
|
+
might need to use one if there is no modern client available for the service.
|
138
|
+
However, if a modern client is available, we generally recommend it over the
|
139
|
+
older `google-apis-` clients.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# Source: google/bigtable/admin/v2/bigtable_instance_admin.proto for package 'Google.Cloud.Bigtable.Admin.V2'
|
3
3
|
# Original file comments:
|
4
|
-
# Copyright
|
4
|
+
# Copyright 2020 Google LLC
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
7
|
# you may not use this file except in compliance with the License.
|
@@ -15,7 +15,6 @@
|
|
15
15
|
# See the License for the specific language governing permissions and
|
16
16
|
# limitations under the License.
|
17
17
|
#
|
18
|
-
#
|
19
18
|
|
20
19
|
require 'grpc'
|
21
20
|
require 'google/bigtable/admin/v2/bigtable_instance_admin_pb'
|
@@ -38,48 +37,48 @@ module Google
|
|
38
37
|
self.service_name = 'google.bigtable.admin.v2.BigtableInstanceAdmin'
|
39
38
|
|
40
39
|
# Create an instance within a project.
|
41
|
-
rpc :CreateInstance, Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest, Google::Longrunning::Operation
|
40
|
+
rpc :CreateInstance, ::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest, ::Google::Longrunning::Operation
|
42
41
|
# Gets information about an instance.
|
43
|
-
rpc :GetInstance, Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest, Google::Cloud::Bigtable::Admin::V2::Instance
|
42
|
+
rpc :GetInstance, ::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest, ::Google::Cloud::Bigtable::Admin::V2::Instance
|
44
43
|
# Lists information about instances in a project.
|
45
|
-
rpc :ListInstances, Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest, Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse
|
44
|
+
rpc :ListInstances, ::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest, ::Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse
|
46
45
|
# Updates an instance within a project. This method updates only the display
|
47
46
|
# name and type for an Instance. To update other Instance properties, such as
|
48
47
|
# labels, use PartialUpdateInstance.
|
49
|
-
rpc :UpdateInstance, Google::Cloud::Bigtable::Admin::V2::Instance, Google::Cloud::Bigtable::Admin::V2::Instance
|
48
|
+
rpc :UpdateInstance, ::Google::Cloud::Bigtable::Admin::V2::Instance, ::Google::Cloud::Bigtable::Admin::V2::Instance
|
50
49
|
# Partially updates an instance within a project. This method can modify all
|
51
50
|
# fields of an Instance and is the preferred way to update an Instance.
|
52
|
-
rpc :PartialUpdateInstance, Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest, Google::Longrunning::Operation
|
51
|
+
rpc :PartialUpdateInstance, ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest, ::Google::Longrunning::Operation
|
53
52
|
# Delete an instance from a project.
|
54
|
-
rpc :DeleteInstance, Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest, Google::Protobuf::Empty
|
53
|
+
rpc :DeleteInstance, ::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest, ::Google::Protobuf::Empty
|
55
54
|
# Creates a cluster within an instance.
|
56
|
-
rpc :CreateCluster, Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest, Google::Longrunning::Operation
|
55
|
+
rpc :CreateCluster, ::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest, ::Google::Longrunning::Operation
|
57
56
|
# Gets information about a cluster.
|
58
|
-
rpc :GetCluster, Google::Cloud::Bigtable::Admin::V2::GetClusterRequest, Google::Cloud::Bigtable::Admin::V2::Cluster
|
57
|
+
rpc :GetCluster, ::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest, ::Google::Cloud::Bigtable::Admin::V2::Cluster
|
59
58
|
# Lists information about clusters in an instance.
|
60
|
-
rpc :ListClusters, Google::Cloud::Bigtable::Admin::V2::ListClustersRequest, Google::Cloud::Bigtable::Admin::V2::ListClustersResponse
|
59
|
+
rpc :ListClusters, ::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest, ::Google::Cloud::Bigtable::Admin::V2::ListClustersResponse
|
61
60
|
# Updates a cluster within an instance.
|
62
|
-
rpc :UpdateCluster, Google::Cloud::Bigtable::Admin::V2::Cluster, Google::Longrunning::Operation
|
61
|
+
rpc :UpdateCluster, ::Google::Cloud::Bigtable::Admin::V2::Cluster, ::Google::Longrunning::Operation
|
63
62
|
# Deletes a cluster from an instance.
|
64
|
-
rpc :DeleteCluster, Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest, Google::Protobuf::Empty
|
63
|
+
rpc :DeleteCluster, ::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest, ::Google::Protobuf::Empty
|
65
64
|
# Creates an app profile within an instance.
|
66
|
-
rpc :CreateAppProfile, Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest, Google::Cloud::Bigtable::Admin::V2::AppProfile
|
65
|
+
rpc :CreateAppProfile, ::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest, ::Google::Cloud::Bigtable::Admin::V2::AppProfile
|
67
66
|
# Gets information about an app profile.
|
68
|
-
rpc :GetAppProfile, Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest, Google::Cloud::Bigtable::Admin::V2::AppProfile
|
67
|
+
rpc :GetAppProfile, ::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest, ::Google::Cloud::Bigtable::Admin::V2::AppProfile
|
69
68
|
# Lists information about app profiles in an instance.
|
70
|
-
rpc :ListAppProfiles, Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest, Google::Cloud::Bigtable::Admin::V2::ListAppProfilesResponse
|
69
|
+
rpc :ListAppProfiles, ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest, ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesResponse
|
71
70
|
# Updates an app profile within an instance.
|
72
|
-
rpc :UpdateAppProfile, Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest, Google::Longrunning::Operation
|
71
|
+
rpc :UpdateAppProfile, ::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest, ::Google::Longrunning::Operation
|
73
72
|
# Deletes an app profile from an instance.
|
74
|
-
rpc :DeleteAppProfile, Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest, Google::Protobuf::Empty
|
73
|
+
rpc :DeleteAppProfile, ::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest, ::Google::Protobuf::Empty
|
75
74
|
# Gets the access control policy for an instance resource. Returns an empty
|
76
75
|
# policy if an instance exists but does not have a policy set.
|
77
|
-
rpc :GetIamPolicy, Google::Iam::V1::GetIamPolicyRequest, Google::Iam::V1::Policy
|
76
|
+
rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy
|
78
77
|
# Sets the access control policy on an instance resource. Replaces any
|
79
78
|
# existing policy.
|
80
|
-
rpc :SetIamPolicy, Google::Iam::V1::SetIamPolicyRequest, Google::Iam::V1::Policy
|
79
|
+
rpc :SetIamPolicy, ::Google::Iam::V1::SetIamPolicyRequest, ::Google::Iam::V1::Policy
|
81
80
|
# Returns permissions that the caller has on the specified instance resource.
|
82
|
-
rpc :TestIamPermissions, Google::Iam::V1::TestIamPermissionsRequest, Google::Iam::V1::TestIamPermissionsResponse
|
81
|
+
rpc :TestIamPermissions, ::Google::Iam::V1::TestIamPermissionsRequest, ::Google::Iam::V1::TestIamPermissionsResponse
|
83
82
|
end
|
84
83
|
|
85
84
|
Stub = Service.rpc_stub_class
|
@@ -18,6 +18,26 @@ require 'google/protobuf/field_mask_pb'
|
|
18
18
|
require 'google/protobuf/timestamp_pb'
|
19
19
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
20
20
|
add_file("google/bigtable/admin/v2/bigtable_table_admin.proto", :syntax => :proto3) do
|
21
|
+
add_message "google.bigtable.admin.v2.RestoreTableRequest" do
|
22
|
+
optional :parent, :string, 1
|
23
|
+
optional :table_id, :string, 2
|
24
|
+
oneof :source do
|
25
|
+
optional :backup, :string, 3
|
26
|
+
end
|
27
|
+
end
|
28
|
+
add_message "google.bigtable.admin.v2.RestoreTableMetadata" do
|
29
|
+
optional :name, :string, 1
|
30
|
+
optional :source_type, :enum, 2, "google.bigtable.admin.v2.RestoreSourceType"
|
31
|
+
optional :optimize_table_operation_name, :string, 4
|
32
|
+
optional :progress, :message, 5, "google.bigtable.admin.v2.OperationProgress"
|
33
|
+
oneof :source_info do
|
34
|
+
optional :backup_info, :message, 3, "google.bigtable.admin.v2.BackupInfo"
|
35
|
+
end
|
36
|
+
end
|
37
|
+
add_message "google.bigtable.admin.v2.OptimizeRestoredTableMetadata" do
|
38
|
+
optional :name, :string, 1
|
39
|
+
optional :progress, :message, 2, "google.bigtable.admin.v2.OperationProgress"
|
40
|
+
end
|
21
41
|
add_message "google.bigtable.admin.v2.CreateTableRequest" do
|
22
42
|
optional :parent, :string, 1
|
23
43
|
optional :table_id, :string, 2
|
@@ -124,13 +144,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
124
144
|
optional :start_time, :message, 3, "google.protobuf.Timestamp"
|
125
145
|
optional :end_time, :message, 4, "google.protobuf.Timestamp"
|
126
146
|
end
|
127
|
-
add_message "google.bigtable.admin.v2.GetBackupRequest" do
|
128
|
-
optional :name, :string, 1
|
129
|
-
end
|
130
147
|
add_message "google.bigtable.admin.v2.UpdateBackupRequest" do
|
131
148
|
optional :backup, :message, 1, "google.bigtable.admin.v2.Backup"
|
132
149
|
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
133
150
|
end
|
151
|
+
add_message "google.bigtable.admin.v2.GetBackupRequest" do
|
152
|
+
optional :name, :string, 1
|
153
|
+
end
|
134
154
|
add_message "google.bigtable.admin.v2.DeleteBackupRequest" do
|
135
155
|
optional :name, :string, 1
|
136
156
|
end
|
@@ -145,26 +165,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
145
165
|
repeated :backups, :message, 1, "google.bigtable.admin.v2.Backup"
|
146
166
|
optional :next_page_token, :string, 2
|
147
167
|
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
168
|
end
|
169
169
|
end
|
170
170
|
|
@@ -173,6 +173,9 @@ module Google
|
|
173
173
|
module Bigtable
|
174
174
|
module Admin
|
175
175
|
module V2
|
176
|
+
RestoreTableRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.RestoreTableRequest").msgclass
|
177
|
+
RestoreTableMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.RestoreTableMetadata").msgclass
|
178
|
+
OptimizeRestoredTableMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.OptimizeRestoredTableMetadata").msgclass
|
176
179
|
CreateTableRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateTableRequest").msgclass
|
177
180
|
CreateTableRequest::Split = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateTableRequest.Split").msgclass
|
178
181
|
CreateTableFromSnapshotRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateTableFromSnapshotRequest").msgclass
|
@@ -196,14 +199,11 @@ module Google
|
|
196
199
|
CreateTableFromSnapshotMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateTableFromSnapshotMetadata").msgclass
|
197
200
|
CreateBackupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateBackupRequest").msgclass
|
198
201
|
CreateBackupMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateBackupMetadata").msgclass
|
199
|
-
GetBackupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetBackupRequest").msgclass
|
200
202
|
UpdateBackupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateBackupRequest").msgclass
|
203
|
+
GetBackupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetBackupRequest").msgclass
|
201
204
|
DeleteBackupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteBackupRequest").msgclass
|
202
205
|
ListBackupsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListBackupsRequest").msgclass
|
203
206
|
ListBackupsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListBackupsResponse").msgclass
|
204
|
-
RestoreTableRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.RestoreTableRequest").msgclass
|
205
|
-
RestoreTableMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.RestoreTableMetadata").msgclass
|
206
|
-
OptimizeRestoredTableMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.OptimizeRestoredTableMetadata").msgclass
|
207
207
|
end
|
208
208
|
end
|
209
209
|
end
|
@@ -41,7 +41,7 @@ module Google
|
|
41
41
|
# Creates a new table in the specified instance.
|
42
42
|
# The table can be created with a full set of initial column families,
|
43
43
|
# specified in the request.
|
44
|
-
rpc :CreateTable, Google::Cloud::Bigtable::Admin::V2::CreateTableRequest, Google::Cloud::Bigtable::Admin::V2::Table
|
44
|
+
rpc :CreateTable, ::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest, ::Google::Cloud::Bigtable::Admin::V2::Table
|
45
45
|
# Creates a new table from the specified snapshot. The target table must
|
46
46
|
# not exist. The snapshot and the table must be in the same instance.
|
47
47
|
#
|
@@ -50,31 +50,31 @@ module Google
|
|
50
50
|
# feature might be changed in backward-incompatible ways and is not
|
51
51
|
# recommended for production use. It is not subject to any SLA or deprecation
|
52
52
|
# policy.
|
53
|
-
rpc :CreateTableFromSnapshot, Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest, Google::Longrunning::Operation
|
53
|
+
rpc :CreateTableFromSnapshot, ::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest, ::Google::Longrunning::Operation
|
54
54
|
# Lists all tables served from a specified instance.
|
55
|
-
rpc :ListTables, Google::Cloud::Bigtable::Admin::V2::ListTablesRequest, Google::Cloud::Bigtable::Admin::V2::ListTablesResponse
|
55
|
+
rpc :ListTables, ::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest, ::Google::Cloud::Bigtable::Admin::V2::ListTablesResponse
|
56
56
|
# Gets metadata information about the specified table.
|
57
|
-
rpc :GetTable, Google::Cloud::Bigtable::Admin::V2::GetTableRequest, Google::Cloud::Bigtable::Admin::V2::Table
|
57
|
+
rpc :GetTable, ::Google::Cloud::Bigtable::Admin::V2::GetTableRequest, ::Google::Cloud::Bigtable::Admin::V2::Table
|
58
58
|
# Permanently deletes a specified table and all of its data.
|
59
|
-
rpc :DeleteTable, Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest, Google::Protobuf::Empty
|
59
|
+
rpc :DeleteTable, ::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest, ::Google::Protobuf::Empty
|
60
60
|
# Performs a series of column family modifications on the specified table.
|
61
61
|
# Either all or none of the modifications will occur before this method
|
62
62
|
# returns, but data requests received prior to that point may see a table
|
63
63
|
# where only some modifications have taken effect.
|
64
|
-
rpc :ModifyColumnFamilies, Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest, Google::Cloud::Bigtable::Admin::V2::Table
|
64
|
+
rpc :ModifyColumnFamilies, ::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest, ::Google::Cloud::Bigtable::Admin::V2::Table
|
65
65
|
# Permanently drop/delete a row range from a specified table. The request can
|
66
66
|
# specify whether to delete all rows in a table, or only those that match a
|
67
67
|
# particular prefix.
|
68
|
-
rpc :DropRowRange, Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest, Google::Protobuf::Empty
|
68
|
+
rpc :DropRowRange, ::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest, ::Google::Protobuf::Empty
|
69
69
|
# Generates a consistency token for a Table, which can be used in
|
70
70
|
# CheckConsistency to check whether mutations to the table that finished
|
71
71
|
# before this call started have been replicated. The tokens will be available
|
72
72
|
# for 90 days.
|
73
|
-
rpc :GenerateConsistencyToken, Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest, Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse
|
73
|
+
rpc :GenerateConsistencyToken, ::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest, ::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse
|
74
74
|
# Checks replication consistency based on a consistency token, that is, if
|
75
75
|
# replication has caught up based on the conditions specified in the token
|
76
76
|
# and the check request.
|
77
|
-
rpc :CheckConsistency, Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest, Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse
|
77
|
+
rpc :CheckConsistency, ::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest, ::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse
|
78
78
|
# Creates a new snapshot in the specified cluster from the specified
|
79
79
|
# source table. The cluster and the table must be in the same instance.
|
80
80
|
#
|
@@ -83,7 +83,7 @@ module Google
|
|
83
83
|
# feature might be changed in backward-incompatible ways and is not
|
84
84
|
# recommended for production use. It is not subject to any SLA or deprecation
|
85
85
|
# policy.
|
86
|
-
rpc :SnapshotTable, Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest, Google::Longrunning::Operation
|
86
|
+
rpc :SnapshotTable, ::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest, ::Google::Longrunning::Operation
|
87
87
|
# Gets metadata information about the specified snapshot.
|
88
88
|
#
|
89
89
|
# Note: This is a private alpha release of Cloud Bigtable snapshots. This
|
@@ -91,7 +91,7 @@ module Google
|
|
91
91
|
# feature might be changed in backward-incompatible ways and is not
|
92
92
|
# recommended for production use. It is not subject to any SLA or deprecation
|
93
93
|
# policy.
|
94
|
-
rpc :GetSnapshot, Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest, Google::Cloud::Bigtable::Admin::V2::Snapshot
|
94
|
+
rpc :GetSnapshot, ::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest, ::Google::Cloud::Bigtable::Admin::V2::Snapshot
|
95
95
|
# Lists all snapshots associated with the specified cluster.
|
96
96
|
#
|
97
97
|
# Note: This is a private alpha release of Cloud Bigtable snapshots. This
|
@@ -99,7 +99,7 @@ module Google
|
|
99
99
|
# feature might be changed in backward-incompatible ways and is not
|
100
100
|
# recommended for production use. It is not subject to any SLA or deprecation
|
101
101
|
# policy.
|
102
|
-
rpc :ListSnapshots, Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest, Google::Cloud::Bigtable::Admin::V2::ListSnapshotsResponse
|
102
|
+
rpc :ListSnapshots, ::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest, ::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsResponse
|
103
103
|
# Permanently deletes the specified snapshot.
|
104
104
|
#
|
105
105
|
# Note: This is a private alpha release of Cloud Bigtable snapshots. This
|
@@ -107,43 +107,43 @@ module Google
|
|
107
107
|
# feature might be changed in backward-incompatible ways and is not
|
108
108
|
# recommended for production use. It is not subject to any SLA or deprecation
|
109
109
|
# policy.
|
110
|
-
rpc :DeleteSnapshot, Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest, Google::Protobuf::Empty
|
111
|
-
# Starts creating a new Cloud Bigtable Backup.
|
110
|
+
rpc :DeleteSnapshot, ::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest, ::Google::Protobuf::Empty
|
111
|
+
# Starts creating a new Cloud Bigtable Backup. The returned backup
|
112
112
|
# [long-running operation][google.longrunning.Operation] can be used to
|
113
113
|
# track creation of the backup. The
|
114
114
|
# [metadata][google.longrunning.Operation.metadata] field type is
|
115
115
|
# [CreateBackupMetadata][google.bigtable.admin.v2.CreateBackupMetadata]. The
|
116
116
|
# [response][google.longrunning.Operation.response] field type is
|
117
|
-
# [Backup][google.bigtable.admin.v2.Backup], if successful. Cancelling the
|
118
|
-
#
|
119
|
-
rpc :CreateBackup, Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest, Google::Longrunning::Operation
|
117
|
+
# [Backup][google.bigtable.admin.v2.Backup], if successful. Cancelling the returned operation will stop the
|
118
|
+
# creation and delete the backup.
|
119
|
+
rpc :CreateBackup, ::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest, ::Google::Longrunning::Operation
|
120
120
|
# Gets metadata on a pending or completed Cloud Bigtable Backup.
|
121
|
-
rpc :GetBackup, Google::Cloud::Bigtable::Admin::V2::GetBackupRequest, Google::Cloud::Bigtable::Admin::V2::Backup
|
121
|
+
rpc :GetBackup, ::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest, ::Google::Cloud::Bigtable::Admin::V2::Backup
|
122
122
|
# Updates a pending or completed Cloud Bigtable Backup.
|
123
|
-
rpc :UpdateBackup, Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest, Google::Cloud::Bigtable::Admin::V2::Backup
|
123
|
+
rpc :UpdateBackup, ::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest, ::Google::Cloud::Bigtable::Admin::V2::Backup
|
124
124
|
# Deletes a pending or completed Cloud Bigtable backup.
|
125
|
-
rpc :DeleteBackup, Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest, Google::Protobuf::Empty
|
125
|
+
rpc :DeleteBackup, ::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest, ::Google::Protobuf::Empty
|
126
126
|
# Lists Cloud Bigtable backups. Returns both completed and pending
|
127
127
|
# backups.
|
128
|
-
rpc :ListBackups, Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest, Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse
|
128
|
+
rpc :ListBackups, ::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest, ::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse
|
129
129
|
# Create a new table by restoring from a completed backup. The new table
|
130
|
-
# must be in the same instance as the instance containing the backup.
|
130
|
+
# must be in the same instance as the instance containing the backup. The
|
131
131
|
# returned table [long-running operation][google.longrunning.Operation] can
|
132
|
-
# be used to track the progress of the operation, and to cancel it.
|
132
|
+
# be used to track the progress of the operation, and to cancel it. The
|
133
133
|
# [metadata][google.longrunning.Operation.metadata] field type is
|
134
|
-
# [RestoreTableMetadata][google.bigtable.admin.RestoreTableMetadata].
|
134
|
+
# [RestoreTableMetadata][google.bigtable.admin.RestoreTableMetadata]. The
|
135
135
|
# [response][google.longrunning.Operation.response] type is
|
136
136
|
# [Table][google.bigtable.admin.v2.Table], if successful.
|
137
|
-
rpc :RestoreTable, Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest, Google::Longrunning::Operation
|
138
|
-
# Gets the access control policy for a resource.
|
137
|
+
rpc :RestoreTable, ::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest, ::Google::Longrunning::Operation
|
138
|
+
# Gets the access control policy for a Table or Backup resource.
|
139
139
|
# Returns an empty policy if the resource exists but does not have a policy
|
140
140
|
# set.
|
141
|
-
rpc :GetIamPolicy, Google::Iam::V1::GetIamPolicyRequest, Google::Iam::V1::Policy
|
141
|
+
rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy
|
142
142
|
# Sets the access control policy on a Table or Backup resource.
|
143
143
|
# Replaces any existing policy.
|
144
|
-
rpc :SetIamPolicy, Google::Iam::V1::SetIamPolicyRequest, Google::Iam::V1::Policy
|
145
|
-
# Returns permissions that the caller has on the specified
|
146
|
-
rpc :TestIamPermissions, Google::Iam::V1::TestIamPermissionsRequest, Google::Iam::V1::TestIamPermissionsResponse
|
144
|
+
rpc :SetIamPolicy, ::Google::Iam::V1::SetIamPolicyRequest, ::Google::Iam::V1::Policy
|
145
|
+
# Returns permissions that the caller has on the specified Table or Backup resource.
|
146
|
+
rpc :TestIamPermissions, ::Google::Iam::V1::TestIamPermissionsRequest, ::Google::Iam::V1::TestIamPermissionsResponse
|
147
147
|
end
|
148
148
|
|
149
149
|
Stub = Service.rpc_stub_class
|
@@ -75,7 +75,7 @@ module Google
|
|
75
75
|
initial_delay: 1.0,
|
76
76
|
max_delay: 60.0,
|
77
77
|
multiplier: 2,
|
78
|
-
retry_codes: [
|
78
|
+
retry_codes: [14, 4]
|
79
79
|
}
|
80
80
|
|
81
81
|
default_config.rpcs.list_instances.timeout = 60.0
|
@@ -83,7 +83,7 @@ module Google
|
|
83
83
|
initial_delay: 1.0,
|
84
84
|
max_delay: 60.0,
|
85
85
|
multiplier: 2,
|
86
|
-
retry_codes: [
|
86
|
+
retry_codes: [14, 4]
|
87
87
|
}
|
88
88
|
|
89
89
|
default_config.rpcs.update_instance.timeout = 60.0
|
@@ -91,7 +91,7 @@ module Google
|
|
91
91
|
initial_delay: 1.0,
|
92
92
|
max_delay: 60.0,
|
93
93
|
multiplier: 2,
|
94
|
-
retry_codes: [
|
94
|
+
retry_codes: [14, 4]
|
95
95
|
}
|
96
96
|
|
97
97
|
default_config.rpcs.partial_update_instance.timeout = 60.0
|
@@ -99,7 +99,7 @@ module Google
|
|
99
99
|
initial_delay: 1.0,
|
100
100
|
max_delay: 60.0,
|
101
101
|
multiplier: 2,
|
102
|
-
retry_codes: [
|
102
|
+
retry_codes: [14, 4]
|
103
103
|
}
|
104
104
|
|
105
105
|
default_config.rpcs.delete_instance.timeout = 60.0
|
@@ -111,7 +111,7 @@ module Google
|
|
111
111
|
initial_delay: 1.0,
|
112
112
|
max_delay: 60.0,
|
113
113
|
multiplier: 2,
|
114
|
-
retry_codes: [
|
114
|
+
retry_codes: [14, 4]
|
115
115
|
}
|
116
116
|
|
117
117
|
default_config.rpcs.list_clusters.timeout = 60.0
|
@@ -119,7 +119,7 @@ module Google
|
|
119
119
|
initial_delay: 1.0,
|
120
120
|
max_delay: 60.0,
|
121
121
|
multiplier: 2,
|
122
|
-
retry_codes: [
|
122
|
+
retry_codes: [14, 4]
|
123
123
|
}
|
124
124
|
|
125
125
|
default_config.rpcs.update_cluster.timeout = 60.0
|
@@ -127,7 +127,7 @@ module Google
|
|
127
127
|
initial_delay: 1.0,
|
128
128
|
max_delay: 60.0,
|
129
129
|
multiplier: 2,
|
130
|
-
retry_codes: [
|
130
|
+
retry_codes: [14, 4]
|
131
131
|
}
|
132
132
|
|
133
133
|
default_config.rpcs.delete_cluster.timeout = 60.0
|
@@ -139,7 +139,7 @@ module Google
|
|
139
139
|
initial_delay: 1.0,
|
140
140
|
max_delay: 60.0,
|
141
141
|
multiplier: 2,
|
142
|
-
retry_codes: [
|
142
|
+
retry_codes: [14, 4]
|
143
143
|
}
|
144
144
|
|
145
145
|
default_config.rpcs.list_app_profiles.timeout = 60.0
|
@@ -147,7 +147,7 @@ module Google
|
|
147
147
|
initial_delay: 1.0,
|
148
148
|
max_delay: 60.0,
|
149
149
|
multiplier: 2,
|
150
|
-
retry_codes: [
|
150
|
+
retry_codes: [14, 4]
|
151
151
|
}
|
152
152
|
|
153
153
|
default_config.rpcs.update_app_profile.timeout = 60.0
|
@@ -155,7 +155,7 @@ module Google
|
|
155
155
|
initial_delay: 1.0,
|
156
156
|
max_delay: 60.0,
|
157
157
|
multiplier: 2,
|
158
|
-
retry_codes: [
|
158
|
+
retry_codes: [14, 4]
|
159
159
|
}
|
160
160
|
|
161
161
|
default_config.rpcs.delete_app_profile.timeout = 60.0
|
@@ -165,7 +165,7 @@ module Google
|
|
165
165
|
initial_delay: 1.0,
|
166
166
|
max_delay: 60.0,
|
167
167
|
multiplier: 2,
|
168
|
-
retry_codes: [
|
168
|
+
retry_codes: [14, 4]
|
169
169
|
}
|
170
170
|
|
171
171
|
default_config.rpcs.set_iam_policy.timeout = 60.0
|
@@ -175,7 +175,7 @@ module Google
|
|
175
175
|
initial_delay: 1.0,
|
176
176
|
max_delay: 60.0,
|
177
177
|
multiplier: 2,
|
178
|
-
retry_codes: [
|
178
|
+
retry_codes: [14, 4]
|
179
179
|
}
|
180
180
|
|
181
181
|
default_config
|
@@ -239,7 +239,13 @@ module Google
|
|
239
239
|
|
240
240
|
# Create credentials
|
241
241
|
credentials = @config.credentials
|
242
|
-
|
242
|
+
# Use self-signed JWT if the scope and endpoint are unchanged from default,
|
243
|
+
# but only if the default endpoint does not have a region prefix.
|
244
|
+
enable_self_signed_jwt = @config.scope == Client.configure.scope &&
|
245
|
+
@config.endpoint == Client.configure.endpoint &&
|
246
|
+
!@config.endpoint.split(".").first.include?("-")
|
247
|
+
credentials ||= Credentials.default scope: @config.scope,
|
248
|
+
enable_self_signed_jwt: enable_self_signed_jwt
|
243
249
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
244
250
|
credentials = Credentials.new credentials, scope: @config.scope
|
245
251
|
end
|
@@ -1391,7 +1397,7 @@ module Google
|
|
1391
1397
|
# Required. The unique name of the app profile to be deleted. Values are of the form
|
1392
1398
|
# `projects/{project}/instances/{instance}/appProfiles/{app_profile}`.
|
1393
1399
|
# @param ignore_warnings [::Boolean]
|
1394
|
-
# If true, ignore safety checks when deleting the app profile.
|
1400
|
+
# Required. If true, ignore safety checks when deleting the app profile.
|
1395
1401
|
#
|
1396
1402
|
# @yield [response, operation] Access the result along with the RPC operation
|
1397
1403
|
# @yieldparam response [::Google::Protobuf::Empty]
|
@@ -1739,7 +1745,7 @@ module Google
|
|
1739
1745
|
|
1740
1746
|
config_attr :endpoint, "bigtableadmin.googleapis.com", ::String
|
1741
1747
|
config_attr :credentials, nil do |value|
|
1742
|
-
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1748
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1743
1749
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
1744
1750
|
allowed.any? { |klass| klass === value }
|
1745
1751
|
end
|
@@ -1779,7 +1785,7 @@ module Google
|
|
1779
1785
|
# Each configuration object is of type `Gapic::Config::Method` and includes
|
1780
1786
|
# the following configuration fields:
|
1781
1787
|
#
|
1782
|
-
# * `timeout` (*type:* `Numeric`) - The call timeout in
|
1788
|
+
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
1783
1789
|
# * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
|
1784
1790
|
# * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
|
1785
1791
|
# include the following keys:
|