google-cloud-bigtable-admin-v2 0.7.1 → 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 +1 -1
- data/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb +11 -0
- data/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb +29 -0
- data/lib/google/bigtable/admin/v2/common_pb.rb +1 -0
- data/lib/google/bigtable/admin/v2/instance_pb.rb +21 -0
- data/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/client.rb +140 -3
- 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 +49 -2
- metadata +2 -2
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
@@ -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
|
@@ -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
|
@@ -37,6 +37,12 @@ module Google
|
|
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.
|
@@ -28,6 +28,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
28
28
|
value :PRODUCTION, 1
|
29
29
|
value :DEVELOPMENT, 2
|
30
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
|
31
38
|
add_message "google.bigtable.admin.v2.Cluster" do
|
32
39
|
optional :name, :string, 1
|
33
40
|
optional :location, :string, 2
|
@@ -35,6 +42,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
35
42
|
optional :serve_nodes, :int32, 4
|
36
43
|
optional :default_storage_type, :enum, 5, "google.bigtable.admin.v2.StorageType"
|
37
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"
|
38
55
|
end
|
39
56
|
add_message "google.bigtable.admin.v2.Cluster.EncryptionConfig" do
|
40
57
|
optional :kms_key_name, :string, 1
|
@@ -73,7 +90,11 @@ module Google
|
|
73
90
|
Instance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance").msgclass
|
74
91
|
Instance::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance.State").enummodule
|
75
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
|
76
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
|
77
98
|
Cluster::EncryptionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.EncryptionConfig").msgclass
|
78
99
|
Cluster::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.State").enummodule
|
79
100
|
AppProfile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile").msgclass
|
@@ -108,6 +108,11 @@ module Google
|
|
108
108
|
initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4]
|
109
109
|
}
|
110
110
|
|
111
|
+
default_config.rpcs.partial_update_cluster.timeout = 60.0
|
112
|
+
default_config.rpcs.partial_update_cluster.retry_policy = {
|
113
|
+
initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4]
|
114
|
+
}
|
115
|
+
|
111
116
|
default_config.rpcs.delete_cluster.timeout = 60.0
|
112
117
|
|
113
118
|
default_config.rpcs.create_app_profile.timeout = 60.0
|
@@ -236,6 +241,12 @@ module Google
|
|
236
241
|
##
|
237
242
|
# Create an instance within a project.
|
238
243
|
#
|
244
|
+
# Note that exactly one of Cluster.serve_nodes and
|
245
|
+
# Cluster.cluster_config.cluster_autoscaling_config can be set. If
|
246
|
+
# serve_nodes is set to non-zero, then the cluster is manually scaled. If
|
247
|
+
# cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is
|
248
|
+
# enabled.
|
249
|
+
#
|
239
250
|
# @overload create_instance(request, options = nil)
|
240
251
|
# Pass arguments to `create_instance` via a request object, either of type
|
241
252
|
# {::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest} or an equivalent Hash.
|
@@ -806,6 +817,12 @@ module Google
|
|
806
817
|
##
|
807
818
|
# Creates a cluster within an instance.
|
808
819
|
#
|
820
|
+
# Note that exactly one of Cluster.serve_nodes and
|
821
|
+
# Cluster.cluster_config.cluster_autoscaling_config can be set. If
|
822
|
+
# serve_nodes is set to non-zero, then the cluster is manually scaled. If
|
823
|
+
# cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is
|
824
|
+
# enabled.
|
825
|
+
#
|
809
826
|
# @overload create_cluster(request, options = nil)
|
810
827
|
# Pass arguments to `create_cluster` via a request object, either of type
|
811
828
|
# {::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest} or an equivalent Hash.
|
@@ -1084,6 +1101,10 @@ module Google
|
|
1084
1101
|
##
|
1085
1102
|
# Updates a cluster within an instance.
|
1086
1103
|
#
|
1104
|
+
# Note that UpdateCluster does not support updating
|
1105
|
+
# cluster_config.cluster_autoscaling_config. In order to update it, you
|
1106
|
+
# must use PartialUpdateCluster.
|
1107
|
+
#
|
1087
1108
|
# @overload update_cluster(request, options = nil)
|
1088
1109
|
# Pass arguments to `update_cluster` via a request object, either of type
|
1089
1110
|
# {::Google::Cloud::Bigtable::Admin::V2::Cluster} or an equivalent Hash.
|
@@ -1094,7 +1115,7 @@ module Google
|
|
1094
1115
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1095
1116
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1096
1117
|
#
|
1097
|
-
# @overload update_cluster(location: nil, serve_nodes: nil, default_storage_type: nil, encryption_config: nil)
|
1118
|
+
# @overload update_cluster(location: nil, serve_nodes: nil, cluster_config: nil, default_storage_type: nil, encryption_config: nil)
|
1098
1119
|
# Pass arguments to `update_cluster` via keyword arguments. Note that at
|
1099
1120
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1100
1121
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -1106,8 +1127,10 @@ module Google
|
|
1106
1127
|
# cluster. Currently only zones are supported, so values should be of the
|
1107
1128
|
# form `projects/{project}/locations/{zone}`.
|
1108
1129
|
# @param serve_nodes [::Integer]
|
1109
|
-
#
|
1110
|
-
#
|
1130
|
+
# The number of nodes allocated to this cluster. More nodes enable higher
|
1131
|
+
# throughput and more consistent performance.
|
1132
|
+
# @param cluster_config [::Google::Cloud::Bigtable::Admin::V2::Cluster::ClusterConfig, ::Hash]
|
1133
|
+
# Configuration for this cluster.
|
1111
1134
|
# @param default_storage_type [::Google::Cloud::Bigtable::Admin::V2::StorageType]
|
1112
1135
|
# (`CreationOnly`)
|
1113
1136
|
# The type of storage used by this cluster to serve its
|
@@ -1187,6 +1210,113 @@ module Google
|
|
1187
1210
|
raise ::Google::Cloud::Error.from_error(e)
|
1188
1211
|
end
|
1189
1212
|
|
1213
|
+
##
|
1214
|
+
# Partially updates a cluster within a project. This method is the preferred
|
1215
|
+
# way to update a Cluster.
|
1216
|
+
#
|
1217
|
+
# To enable and update autoscaling, set
|
1218
|
+
# cluster_config.cluster_autoscaling_config. When autoscaling is enabled,
|
1219
|
+
# serve_nodes is treated as an OUTPUT_ONLY field, meaning that updates to it
|
1220
|
+
# are ignored. Note that an update cannot simultaneously set serve_nodes to
|
1221
|
+
# non-zero and cluster_config.cluster_autoscaling_config to non-empty, and
|
1222
|
+
# also specify both in the update_mask.
|
1223
|
+
#
|
1224
|
+
# To disable autoscaling, clear cluster_config.cluster_autoscaling_config,
|
1225
|
+
# and explicitly set a serve_node count via the update_mask.
|
1226
|
+
#
|
1227
|
+
# @overload partial_update_cluster(request, options = nil)
|
1228
|
+
# Pass arguments to `partial_update_cluster` via a request object, either of type
|
1229
|
+
# {::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest} or an equivalent Hash.
|
1230
|
+
#
|
1231
|
+
# @param request [::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest, ::Hash]
|
1232
|
+
# A request object representing the call parameters. Required. To specify no
|
1233
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1234
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1235
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1236
|
+
#
|
1237
|
+
# @overload partial_update_cluster(cluster: nil, update_mask: nil)
|
1238
|
+
# Pass arguments to `partial_update_cluster` via keyword arguments. Note that at
|
1239
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1240
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1241
|
+
#
|
1242
|
+
# @param cluster [::Google::Cloud::Bigtable::Admin::V2::Cluster, ::Hash]
|
1243
|
+
# Required. The Cluster which contains the partial updates to be applied, subject to
|
1244
|
+
# the update_mask.
|
1245
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
1246
|
+
# Required. The subset of Cluster fields which should be replaced.
|
1247
|
+
#
|
1248
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1249
|
+
# @yieldparam response [::Gapic::Operation]
|
1250
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1251
|
+
#
|
1252
|
+
# @return [::Gapic::Operation]
|
1253
|
+
#
|
1254
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1255
|
+
#
|
1256
|
+
# @example Basic example
|
1257
|
+
# require "google/cloud/bigtable/admin/v2"
|
1258
|
+
#
|
1259
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1260
|
+
# client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new
|
1261
|
+
#
|
1262
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1263
|
+
# request = Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest.new
|
1264
|
+
#
|
1265
|
+
# # Call the partial_update_cluster method.
|
1266
|
+
# result = client.partial_update_cluster request
|
1267
|
+
#
|
1268
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1269
|
+
# # object to check the status of an operation, cancel it, or wait
|
1270
|
+
# # for results. Here is how to block until completion:
|
1271
|
+
# result.wait_until_done! timeout: 60
|
1272
|
+
# if result.response?
|
1273
|
+
# p result.response
|
1274
|
+
# else
|
1275
|
+
# puts "Error!"
|
1276
|
+
# end
|
1277
|
+
#
|
1278
|
+
def partial_update_cluster request, options = nil
|
1279
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1280
|
+
|
1281
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest
|
1282
|
+
|
1283
|
+
# Converts hash and nil to an options object
|
1284
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1285
|
+
|
1286
|
+
# Customize the options with defaults
|
1287
|
+
metadata = @config.rpcs.partial_update_cluster.metadata.to_h
|
1288
|
+
|
1289
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1290
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1291
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1292
|
+
gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION
|
1293
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1294
|
+
|
1295
|
+
header_params = {}
|
1296
|
+
if request.cluster&.name
|
1297
|
+
header_params["cluster.name"] = request.cluster.name
|
1298
|
+
end
|
1299
|
+
|
1300
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1301
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1302
|
+
|
1303
|
+
options.apply_defaults timeout: @config.rpcs.partial_update_cluster.timeout,
|
1304
|
+
metadata: metadata,
|
1305
|
+
retry_policy: @config.rpcs.partial_update_cluster.retry_policy
|
1306
|
+
|
1307
|
+
options.apply_defaults timeout: @config.timeout,
|
1308
|
+
metadata: @config.metadata,
|
1309
|
+
retry_policy: @config.retry_policy
|
1310
|
+
|
1311
|
+
@bigtable_instance_admin_stub.call_rpc :partial_update_cluster, request, options: options do |response, operation|
|
1312
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1313
|
+
yield response, operation if block_given?
|
1314
|
+
return response
|
1315
|
+
end
|
1316
|
+
rescue ::GRPC::BadStatus => e
|
1317
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1318
|
+
end
|
1319
|
+
|
1190
1320
|
##
|
1191
1321
|
# Deletes a cluster from an instance.
|
1192
1322
|
#
|
@@ -2208,6 +2338,11 @@ module Google
|
|
2208
2338
|
#
|
2209
2339
|
attr_reader :update_cluster
|
2210
2340
|
##
|
2341
|
+
# RPC-specific configuration for `partial_update_cluster`
|
2342
|
+
# @return [::Gapic::Config::Method]
|
2343
|
+
#
|
2344
|
+
attr_reader :partial_update_cluster
|
2345
|
+
##
|
2211
2346
|
# RPC-specific configuration for `delete_cluster`
|
2212
2347
|
# @return [::Gapic::Config::Method]
|
2213
2348
|
#
|
@@ -2275,6 +2410,8 @@ module Google
|
|
2275
2410
|
@list_clusters = ::Gapic::Config::Method.new list_clusters_config
|
2276
2411
|
update_cluster_config = parent_rpcs.update_cluster if parent_rpcs.respond_to? :update_cluster
|
2277
2412
|
@update_cluster = ::Gapic::Config::Method.new update_cluster_config
|
2413
|
+
partial_update_cluster_config = parent_rpcs.partial_update_cluster if parent_rpcs.respond_to? :partial_update_cluster
|
2414
|
+
@partial_update_cluster = ::Gapic::Config::Method.new partial_update_cluster_config
|
2278
2415
|
delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster
|
2279
2416
|
@delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
|
2280
2417
|
create_app_profile_config = parent_rpcs.create_app_profile if parent_rpcs.respond_to? :create_app_profile
|
@@ -257,6 +257,34 @@ module Google
|
|
257
257
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
258
258
|
end
|
259
259
|
|
260
|
+
# The metadata for the Operation returned by PartialUpdateCluster.
|
261
|
+
# @!attribute [rw] request_time
|
262
|
+
# @return [::Google::Protobuf::Timestamp]
|
263
|
+
# The time at which the original request was received.
|
264
|
+
# @!attribute [rw] finish_time
|
265
|
+
# @return [::Google::Protobuf::Timestamp]
|
266
|
+
# The time at which the operation failed or was completed successfully.
|
267
|
+
# @!attribute [rw] original_request
|
268
|
+
# @return [::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest]
|
269
|
+
# The original request for PartialUpdateCluster.
|
270
|
+
class PartialUpdateClusterMetadata
|
271
|
+
include ::Google::Protobuf::MessageExts
|
272
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
273
|
+
end
|
274
|
+
|
275
|
+
# Request message for BigtableInstanceAdmin.PartialUpdateCluster.
|
276
|
+
# @!attribute [rw] cluster
|
277
|
+
# @return [::Google::Cloud::Bigtable::Admin::V2::Cluster]
|
278
|
+
# Required. The Cluster which contains the partial updates to be applied, subject to
|
279
|
+
# the update_mask.
|
280
|
+
# @!attribute [rw] update_mask
|
281
|
+
# @return [::Google::Protobuf::FieldMask]
|
282
|
+
# Required. The subset of Cluster fields which should be replaced.
|
283
|
+
class PartialUpdateClusterRequest
|
284
|
+
include ::Google::Protobuf::MessageExts
|
285
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
286
|
+
end
|
287
|
+
|
260
288
|
# Request message for BigtableInstanceAdmin.CreateAppProfile.
|
261
289
|
# @!attribute [rw] parent
|
262
290
|
# @return [::String]
|
@@ -109,6 +109,29 @@ module Google
|
|
109
109
|
end
|
110
110
|
end
|
111
111
|
|
112
|
+
# The Autoscaling targets for a Cluster. These determine the recommended nodes.
|
113
|
+
# @!attribute [rw] cpu_utilization_percent
|
114
|
+
# @return [::Integer]
|
115
|
+
# The cpu utilization that the Autoscaler should be trying to achieve.
|
116
|
+
# This number is on a scale from 0 (no utilization) to
|
117
|
+
# 100 (total utilization).
|
118
|
+
class AutoscalingTargets
|
119
|
+
include ::Google::Protobuf::MessageExts
|
120
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
121
|
+
end
|
122
|
+
|
123
|
+
# Limits for the number of nodes a Cluster can autoscale up/down to.
|
124
|
+
# @!attribute [rw] min_serve_nodes
|
125
|
+
# @return [::Integer]
|
126
|
+
# Required. Minimum number of nodes to scale down to.
|
127
|
+
# @!attribute [rw] max_serve_nodes
|
128
|
+
# @return [::Integer]
|
129
|
+
# Required. Maximum number of nodes to scale up to.
|
130
|
+
class AutoscalingLimits
|
131
|
+
include ::Google::Protobuf::MessageExts
|
132
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
133
|
+
end
|
134
|
+
|
112
135
|
# A resizable group of nodes in a particular cloud location, capable
|
113
136
|
# of serving all {::Google::Cloud::Bigtable::Admin::V2::Table Tables} in the parent
|
114
137
|
# {::Google::Cloud::Bigtable::Admin::V2::Instance Instance}.
|
@@ -128,8 +151,11 @@ module Google
|
|
128
151
|
# The current state of the cluster.
|
129
152
|
# @!attribute [rw] serve_nodes
|
130
153
|
# @return [::Integer]
|
131
|
-
#
|
132
|
-
#
|
154
|
+
# The number of nodes allocated to this cluster. More nodes enable higher
|
155
|
+
# throughput and more consistent performance.
|
156
|
+
# @!attribute [rw] cluster_config
|
157
|
+
# @return [::Google::Cloud::Bigtable::Admin::V2::Cluster::ClusterConfig]
|
158
|
+
# Configuration for this cluster.
|
133
159
|
# @!attribute [rw] default_storage_type
|
134
160
|
# @return [::Google::Cloud::Bigtable::Admin::V2::StorageType]
|
135
161
|
# (`CreationOnly`)
|
@@ -142,6 +168,27 @@ module Google
|
|
142
168
|
include ::Google::Protobuf::MessageExts
|
143
169
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
144
170
|
|
171
|
+
# Autoscaling config for a cluster.
|
172
|
+
# @!attribute [rw] autoscaling_limits
|
173
|
+
# @return [::Google::Cloud::Bigtable::Admin::V2::AutoscalingLimits]
|
174
|
+
# Required. Autoscaling limits for this cluster.
|
175
|
+
# @!attribute [rw] autoscaling_targets
|
176
|
+
# @return [::Google::Cloud::Bigtable::Admin::V2::AutoscalingTargets]
|
177
|
+
# Required. Autoscaling targets for this cluster.
|
178
|
+
class ClusterAutoscalingConfig
|
179
|
+
include ::Google::Protobuf::MessageExts
|
180
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
181
|
+
end
|
182
|
+
|
183
|
+
# Configuration for a cluster.
|
184
|
+
# @!attribute [rw] cluster_autoscaling_config
|
185
|
+
# @return [::Google::Cloud::Bigtable::Admin::V2::Cluster::ClusterAutoscalingConfig]
|
186
|
+
# Autoscaling configuration for this cluster.
|
187
|
+
class ClusterConfig
|
188
|
+
include ::Google::Protobuf::MessageExts
|
189
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
190
|
+
end
|
191
|
+
|
145
192
|
# Cloud Key Management Service (Cloud KMS) settings for a CMEK-protected
|
146
193
|
# cluster.
|
147
194
|
# @!attribute [rw] kms_key_name
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-bigtable-admin-v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|