google-cloud-bigtable-admin-v2 0.6.0 → 0.8.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 +4 -4
- data/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb +13 -2
- data/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb +30 -1
- data/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb +2 -2
- data/lib/google/bigtable/admin/v2/bigtable_table_admin_services_pb.rb +1 -1
- data/lib/google/bigtable/admin/v2/common_pb.rb +2 -1
- data/lib/google/bigtable/admin/v2/instance_pb.rb +26 -2
- data/lib/google/bigtable/admin/v2/table_pb.rb +2 -2
- data/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/client.rb +561 -60
- data/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations.rb +115 -12
- data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/client.rb +486 -66
- data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/operations.rb +115 -12
- data/lib/google/cloud/bigtable/admin/v2/version.rb +1 -1
- data/proto_docs/google/bigtable/admin/v2/bigtable_instance_admin.rb +28 -0
- data/proto_docs/google/bigtable/admin/v2/instance.rb +54 -2
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6eb74dd4077804bba7751af768b663ca2df24e3c5fddbbe5b86530ab87dce930
|
4
|
+
data.tar.gz: 584fa882d32c462d66d8a86e46f0ef5c3538b2ce5356ae272daf368155ecbebf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2c9cb938f92cda2f1c2140d7ff4948986f533c2912de2248da158dfef3b385429e2c0092b4d303cd1513dde78b4a3e737c9d61127c4e2c60d21131cbc533a8e
|
7
|
+
data.tar.gz: 03b3433a34b06dc2ee8b862d087c824c65b689ea9b5e868c04e3c745650125f2add5e8578e2219abfe89a60f04ba61255d6f06866ea1928b921ffa8846c781f3
|
data/README.md
CHANGED
@@ -9,7 +9,7 @@ https://github.com/googleapis/google-cloud-ruby
|
|
9
9
|
This gem is a _versioned_ client. It provides basic client classes for a
|
10
10
|
specific version of the Cloud Bigtable Admin V2 API. Most users should consider using
|
11
11
|
the main client gem,
|
12
|
-
[google-cloud-bigtable
|
12
|
+
[google-cloud-bigtable](https://rubygems.org/gems/google-cloud-bigtable).
|
13
13
|
See the section below titled *Which client should I use?* for more information.
|
14
14
|
|
15
15
|
## Installation
|
@@ -24,7 +24,7 @@ In order to use this library, you first need to go through the following steps:
|
|
24
24
|
|
25
25
|
1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
26
26
|
1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
27
|
-
1. [Enable the API.](https://console.cloud.google.com/apis/library/
|
27
|
+
1. [Enable the API.](https://console.cloud.google.com/apis/library/bigtableadmin.googleapis.com)
|
28
28
|
1. {file:AUTHENTICATION.md Set up authentication.}
|
29
29
|
|
30
30
|
## Quick Start
|
@@ -83,7 +83,7 @@ about the Ruby support schedule.
|
|
83
83
|
## Which client should I use?
|
84
84
|
|
85
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
|
86
|
+
client library with a name such as `google-cloud-bigtable`,
|
87
87
|
and lower-level _versioned_ client libraries with names such as
|
88
88
|
`google-cloud-bigtable-admin-v2`.
|
89
89
|
_In most cases, you should install the main client._
|
@@ -110,7 +110,7 @@ service version.
|
|
110
110
|
|
111
111
|
We recommend that most users install the main client gem for a service. You can
|
112
112
|
identify this gem as the one _without_ a version in its name, e.g.
|
113
|
-
`google-cloud-bigtable
|
113
|
+
`google-cloud-bigtable`.
|
114
114
|
The main client is recommended because it will embody the best practices for
|
115
115
|
accessing the service, and may also provide more convenient interfaces or
|
116
116
|
tighter integration into frameworks and third-party libraries. In addition, the
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/bigtable/admin/v2/bigtable_instance_admin.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
@@ -14,6 +12,8 @@ require 'google/longrunning/operations_pb'
|
|
14
12
|
require 'google/protobuf/empty_pb'
|
15
13
|
require 'google/protobuf/field_mask_pb'
|
16
14
|
require 'google/protobuf/timestamp_pb'
|
15
|
+
require 'google/protobuf'
|
16
|
+
|
17
17
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
18
18
|
add_file("google/bigtable/admin/v2/bigtable_instance_admin.proto", :syntax => :proto3) do
|
19
19
|
add_message "google.bigtable.admin.v2.CreateInstanceRequest" do
|
@@ -81,6 +81,15 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
81
81
|
optional :request_time, :message, 2, "google.protobuf.Timestamp"
|
82
82
|
optional :finish_time, :message, 3, "google.protobuf.Timestamp"
|
83
83
|
end
|
84
|
+
add_message "google.bigtable.admin.v2.PartialUpdateClusterMetadata" do
|
85
|
+
optional :request_time, :message, 1, "google.protobuf.Timestamp"
|
86
|
+
optional :finish_time, :message, 2, "google.protobuf.Timestamp"
|
87
|
+
optional :original_request, :message, 3, "google.bigtable.admin.v2.PartialUpdateClusterRequest"
|
88
|
+
end
|
89
|
+
add_message "google.bigtable.admin.v2.PartialUpdateClusterRequest" do
|
90
|
+
optional :cluster, :message, 1, "google.bigtable.admin.v2.Cluster"
|
91
|
+
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
92
|
+
end
|
84
93
|
add_message "google.bigtable.admin.v2.CreateAppProfileRequest" do
|
85
94
|
optional :parent, :string, 1
|
86
95
|
optional :app_profile_id, :string, 2
|
@@ -134,6 +143,8 @@ module Google
|
|
134
143
|
UpdateInstanceMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateInstanceMetadata").msgclass
|
135
144
|
CreateClusterMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateClusterMetadata").msgclass
|
136
145
|
UpdateClusterMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateClusterMetadata").msgclass
|
146
|
+
PartialUpdateClusterMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.PartialUpdateClusterMetadata").msgclass
|
147
|
+
PartialUpdateClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.PartialUpdateClusterRequest").msgclass
|
137
148
|
CreateAppProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateAppProfileRequest").msgclass
|
138
149
|
GetAppProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetAppProfileRequest").msgclass
|
139
150
|
ListAppProfilesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListAppProfilesRequest").msgclass
|
@@ -30,13 +30,19 @@ module Google
|
|
30
30
|
# tables' metadata or data stored in those tables.
|
31
31
|
class Service
|
32
32
|
|
33
|
-
include GRPC::GenericService
|
33
|
+
include ::GRPC::GenericService
|
34
34
|
|
35
35
|
self.marshal_class_method = :encode
|
36
36
|
self.unmarshal_class_method = :decode
|
37
37
|
self.service_name = 'google.bigtable.admin.v2.BigtableInstanceAdmin'
|
38
38
|
|
39
39
|
# Create an instance within a project.
|
40
|
+
#
|
41
|
+
# Note that exactly one of Cluster.serve_nodes and
|
42
|
+
# Cluster.cluster_config.cluster_autoscaling_config can be set. If
|
43
|
+
# serve_nodes is set to non-zero, then the cluster is manually scaled. If
|
44
|
+
# cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is
|
45
|
+
# enabled.
|
40
46
|
rpc :CreateInstance, ::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest, ::Google::Longrunning::Operation
|
41
47
|
# Gets information about an instance.
|
42
48
|
rpc :GetInstance, ::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest, ::Google::Cloud::Bigtable::Admin::V2::Instance
|
@@ -52,13 +58,36 @@ module Google
|
|
52
58
|
# Delete an instance from a project.
|
53
59
|
rpc :DeleteInstance, ::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest, ::Google::Protobuf::Empty
|
54
60
|
# Creates a cluster within an instance.
|
61
|
+
#
|
62
|
+
# Note that exactly one of Cluster.serve_nodes and
|
63
|
+
# Cluster.cluster_config.cluster_autoscaling_config can be set. If
|
64
|
+
# serve_nodes is set to non-zero, then the cluster is manually scaled. If
|
65
|
+
# cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is
|
66
|
+
# enabled.
|
55
67
|
rpc :CreateCluster, ::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest, ::Google::Longrunning::Operation
|
56
68
|
# Gets information about a cluster.
|
57
69
|
rpc :GetCluster, ::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest, ::Google::Cloud::Bigtable::Admin::V2::Cluster
|
58
70
|
# Lists information about clusters in an instance.
|
59
71
|
rpc :ListClusters, ::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest, ::Google::Cloud::Bigtable::Admin::V2::ListClustersResponse
|
60
72
|
# Updates a cluster within an instance.
|
73
|
+
#
|
74
|
+
# Note that UpdateCluster does not support updating
|
75
|
+
# cluster_config.cluster_autoscaling_config. In order to update it, you
|
76
|
+
# must use PartialUpdateCluster.
|
61
77
|
rpc :UpdateCluster, ::Google::Cloud::Bigtable::Admin::V2::Cluster, ::Google::Longrunning::Operation
|
78
|
+
# Partially updates a cluster within a project. This method is the preferred
|
79
|
+
# way to update a Cluster.
|
80
|
+
#
|
81
|
+
# To enable and update autoscaling, set
|
82
|
+
# cluster_config.cluster_autoscaling_config. When autoscaling is enabled,
|
83
|
+
# serve_nodes is treated as an OUTPUT_ONLY field, meaning that updates to it
|
84
|
+
# are ignored. Note that an update cannot simultaneously set serve_nodes to
|
85
|
+
# non-zero and cluster_config.cluster_autoscaling_config to non-empty, and
|
86
|
+
# also specify both in the update_mask.
|
87
|
+
#
|
88
|
+
# To disable autoscaling, clear cluster_config.cluster_autoscaling_config,
|
89
|
+
# and explicitly set a serve_node count via the update_mask.
|
90
|
+
rpc :PartialUpdateCluster, ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest, ::Google::Longrunning::Operation
|
62
91
|
# Deletes a cluster from an instance.
|
63
92
|
rpc :DeleteCluster, ::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest, ::Google::Protobuf::Empty
|
64
93
|
# Creates an app profile within an instance.
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/bigtable/admin/v2/bigtable_table_admin.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
@@ -16,6 +14,8 @@ require 'google/protobuf/duration_pb'
|
|
16
14
|
require 'google/protobuf/empty_pb'
|
17
15
|
require 'google/protobuf/field_mask_pb'
|
18
16
|
require 'google/protobuf/timestamp_pb'
|
17
|
+
require 'google/protobuf'
|
18
|
+
|
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
21
|
add_message "google.bigtable.admin.v2.RestoreTableRequest" do
|
@@ -1,9 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/bigtable/admin/v2/common.proto
|
3
3
|
|
4
|
+
require 'google/protobuf/timestamp_pb'
|
5
|
+
require 'google/api/annotations_pb'
|
4
6
|
require 'google/protobuf'
|
5
7
|
|
6
|
-
require 'google/protobuf/timestamp_pb'
|
7
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
9
|
add_file("google/bigtable/admin/v2/common.proto", :syntax => :proto3) do
|
9
10
|
add_message "google.bigtable.admin.v2.OperationProgress" do
|
@@ -1,11 +1,13 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/bigtable/admin/v2/instance.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/field_behavior_pb'
|
7
5
|
require 'google/api/resource_pb'
|
8
6
|
require 'google/bigtable/admin/v2/common_pb'
|
7
|
+
require 'google/protobuf/timestamp_pb'
|
8
|
+
require 'google/api/annotations_pb'
|
9
|
+
require 'google/protobuf'
|
10
|
+
|
9
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
12
|
add_file("google/bigtable/admin/v2/instance.proto", :syntax => :proto3) do
|
11
13
|
add_message "google.bigtable.admin.v2.Instance" do
|
@@ -14,6 +16,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
14
16
|
optional :state, :enum, 3, "google.bigtable.admin.v2.Instance.State"
|
15
17
|
optional :type, :enum, 4, "google.bigtable.admin.v2.Instance.Type"
|
16
18
|
map :labels, :string, :string, 5
|
19
|
+
optional :create_time, :message, 7, "google.protobuf.Timestamp"
|
17
20
|
end
|
18
21
|
add_enum "google.bigtable.admin.v2.Instance.State" do
|
19
22
|
value :STATE_NOT_KNOWN, 0
|
@@ -25,6 +28,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
25
28
|
value :PRODUCTION, 1
|
26
29
|
value :DEVELOPMENT, 2
|
27
30
|
end
|
31
|
+
add_message "google.bigtable.admin.v2.AutoscalingTargets" do
|
32
|
+
optional :cpu_utilization_percent, :int32, 2
|
33
|
+
end
|
34
|
+
add_message "google.bigtable.admin.v2.AutoscalingLimits" do
|
35
|
+
optional :min_serve_nodes, :int32, 1
|
36
|
+
optional :max_serve_nodes, :int32, 2
|
37
|
+
end
|
28
38
|
add_message "google.bigtable.admin.v2.Cluster" do
|
29
39
|
optional :name, :string, 1
|
30
40
|
optional :location, :string, 2
|
@@ -32,6 +42,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
32
42
|
optional :serve_nodes, :int32, 4
|
33
43
|
optional :default_storage_type, :enum, 5, "google.bigtable.admin.v2.StorageType"
|
34
44
|
optional :encryption_config, :message, 6, "google.bigtable.admin.v2.Cluster.EncryptionConfig"
|
45
|
+
oneof :config do
|
46
|
+
optional :cluster_config, :message, 7, "google.bigtable.admin.v2.Cluster.ClusterConfig"
|
47
|
+
end
|
48
|
+
end
|
49
|
+
add_message "google.bigtable.admin.v2.Cluster.ClusterAutoscalingConfig" do
|
50
|
+
optional :autoscaling_limits, :message, 1, "google.bigtable.admin.v2.AutoscalingLimits"
|
51
|
+
optional :autoscaling_targets, :message, 2, "google.bigtable.admin.v2.AutoscalingTargets"
|
52
|
+
end
|
53
|
+
add_message "google.bigtable.admin.v2.Cluster.ClusterConfig" do
|
54
|
+
optional :cluster_autoscaling_config, :message, 1, "google.bigtable.admin.v2.Cluster.ClusterAutoscalingConfig"
|
35
55
|
end
|
36
56
|
add_message "google.bigtable.admin.v2.Cluster.EncryptionConfig" do
|
37
57
|
optional :kms_key_name, :string, 1
|
@@ -70,7 +90,11 @@ module Google
|
|
70
90
|
Instance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance").msgclass
|
71
91
|
Instance::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance.State").enummodule
|
72
92
|
Instance::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance.Type").enummodule
|
93
|
+
AutoscalingTargets = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AutoscalingTargets").msgclass
|
94
|
+
AutoscalingLimits = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AutoscalingLimits").msgclass
|
73
95
|
Cluster = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster").msgclass
|
96
|
+
Cluster::ClusterAutoscalingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.ClusterAutoscalingConfig").msgclass
|
97
|
+
Cluster::ClusterConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.ClusterConfig").msgclass
|
74
98
|
Cluster::EncryptionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.EncryptionConfig").msgclass
|
75
99
|
Cluster::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.State").enummodule
|
76
100
|
AppProfile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile").msgclass
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/bigtable/admin/v2/table.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/field_behavior_pb'
|
7
5
|
require 'google/api/resource_pb'
|
8
6
|
require 'google/protobuf/duration_pb'
|
9
7
|
require 'google/protobuf/timestamp_pb'
|
10
8
|
require 'google/rpc/status_pb'
|
9
|
+
require 'google/protobuf'
|
10
|
+
|
11
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
12
|
add_file("google/bigtable/admin/v2/table.proto", :syntax => :proto3) do
|
13
13
|
add_message "google.bigtable.admin.v2.RestoreInfo" do
|