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.
@@ -144,6 +144,27 @@ module Google
144
144
  #
145
145
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
146
146
  #
147
+ # @example Basic example
148
+ # require "google/longrunning"
149
+ #
150
+ # # Create a client object. The client can be reused for multiple calls.
151
+ # client = Google::Longrunning::Operations::Client.new
152
+ #
153
+ # # Create a request. To set request fields, pass in keyword arguments.
154
+ # request = Google::Longrunning::ListOperationsRequest.new
155
+ #
156
+ # # Call the list_operations method.
157
+ # result = client.list_operations request
158
+ #
159
+ # # The returned object is of type Gapic::PagedEnumerable. You can
160
+ # # iterate over all elements by calling #each, and the enumerable
161
+ # # will lazily make API calls to fetch subsequent pages. Other
162
+ # # methods are also available for managing paging directly.
163
+ # result.each do |response|
164
+ # # Each element is of type ::Google::Longrunning::Operation.
165
+ # p response
166
+ # end
167
+ #
147
168
  def list_operations request, options = nil
148
169
  raise ::ArgumentError, "request must be provided" if request.nil?
149
170
 
@@ -161,9 +182,11 @@ module Google
161
182
  gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION
162
183
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
163
184
 
164
- header_params = {
165
- "name" => request.name
166
- }
185
+ header_params = {}
186
+ if request.name
187
+ header_params["name"] = request.name
188
+ end
189
+
167
190
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
168
191
  metadata[:"x-goog-request-params"] ||= request_params_header
169
192
 
@@ -216,6 +239,28 @@ module Google
216
239
  #
217
240
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
218
241
  #
242
+ # @example Basic example
243
+ # require "google/longrunning"
244
+ #
245
+ # # Create a client object. The client can be reused for multiple calls.
246
+ # client = Google::Longrunning::Operations::Client.new
247
+ #
248
+ # # Create a request. To set request fields, pass in keyword arguments.
249
+ # request = Google::Longrunning::GetOperationRequest.new
250
+ #
251
+ # # Call the get_operation method.
252
+ # result = client.get_operation request
253
+ #
254
+ # # The returned object is of type Gapic::Operation. You can use this
255
+ # # object to check the status of an operation, cancel it, or wait
256
+ # # for results. Here is how to block until completion:
257
+ # result.wait_until_done! timeout: 60
258
+ # if result.response?
259
+ # p result.response
260
+ # else
261
+ # puts "Error!"
262
+ # end
263
+ #
219
264
  def get_operation request, options = nil
220
265
  raise ::ArgumentError, "request must be provided" if request.nil?
221
266
 
@@ -233,9 +278,11 @@ module Google
233
278
  gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION
234
279
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
235
280
 
236
- header_params = {
237
- "name" => request.name
238
- }
281
+ header_params = {}
282
+ if request.name
283
+ header_params["name"] = request.name
284
+ end
285
+
239
286
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
240
287
  metadata[:"x-goog-request-params"] ||= request_params_header
241
288
 
@@ -288,6 +335,21 @@ module Google
288
335
  #
289
336
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
290
337
  #
338
+ # @example Basic example
339
+ # require "google/longrunning"
340
+ #
341
+ # # Create a client object. The client can be reused for multiple calls.
342
+ # client = Google::Longrunning::Operations::Client.new
343
+ #
344
+ # # Create a request. To set request fields, pass in keyword arguments.
345
+ # request = Google::Longrunning::DeleteOperationRequest.new
346
+ #
347
+ # # Call the delete_operation method.
348
+ # result = client.delete_operation request
349
+ #
350
+ # # The returned object is of type Google::Protobuf::Empty.
351
+ # p result
352
+ #
291
353
  def delete_operation request, options = nil
292
354
  raise ::ArgumentError, "request must be provided" if request.nil?
293
355
 
@@ -305,9 +367,11 @@ module Google
305
367
  gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION
306
368
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
307
369
 
308
- header_params = {
309
- "name" => request.name
310
- }
370
+ header_params = {}
371
+ if request.name
372
+ header_params["name"] = request.name
373
+ end
374
+
311
375
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
312
376
  metadata[:"x-goog-request-params"] ||= request_params_header
313
377
 
@@ -365,6 +429,21 @@ module Google
365
429
  #
366
430
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
367
431
  #
432
+ # @example Basic example
433
+ # require "google/longrunning"
434
+ #
435
+ # # Create a client object. The client can be reused for multiple calls.
436
+ # client = Google::Longrunning::Operations::Client.new
437
+ #
438
+ # # Create a request. To set request fields, pass in keyword arguments.
439
+ # request = Google::Longrunning::CancelOperationRequest.new
440
+ #
441
+ # # Call the cancel_operation method.
442
+ # result = client.cancel_operation request
443
+ #
444
+ # # The returned object is of type Google::Protobuf::Empty.
445
+ # p result
446
+ #
368
447
  def cancel_operation request, options = nil
369
448
  raise ::ArgumentError, "request must be provided" if request.nil?
370
449
 
@@ -382,9 +461,11 @@ module Google
382
461
  gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION
383
462
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
384
463
 
385
- header_params = {
386
- "name" => request.name
387
- }
464
+ header_params = {}
465
+ if request.name
466
+ header_params["name"] = request.name
467
+ end
468
+
388
469
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
389
470
  metadata[:"x-goog-request-params"] ||= request_params_header
390
471
 
@@ -445,6 +526,28 @@ module Google
445
526
  #
446
527
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
447
528
  #
529
+ # @example Basic example
530
+ # require "google/longrunning"
531
+ #
532
+ # # Create a client object. The client can be reused for multiple calls.
533
+ # client = Google::Longrunning::Operations::Client.new
534
+ #
535
+ # # Create a request. To set request fields, pass in keyword arguments.
536
+ # request = Google::Longrunning::WaitOperationRequest.new
537
+ #
538
+ # # Call the wait_operation method.
539
+ # result = client.wait_operation request
540
+ #
541
+ # # The returned object is of type Gapic::Operation. You can use this
542
+ # # object to check the status of an operation, cancel it, or wait
543
+ # # for results. Here is how to block until completion:
544
+ # result.wait_until_done! timeout: 60
545
+ # if result.response?
546
+ # p result.response
547
+ # else
548
+ # puts "Error!"
549
+ # end
550
+ #
448
551
  def wait_operation request, options = nil
449
552
  raise ::ArgumentError, "request must be provided" if request.nil?
450
553
 
@@ -22,7 +22,7 @@ module Google
22
22
  module Bigtable
23
23
  module Admin
24
24
  module V2
25
- VERSION = "0.6.0"
25
+ VERSION = "0.8.0"
26
26
  end
27
27
  end
28
28
  end
@@ -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]
@@ -55,6 +55,11 @@ module Google
55
55
  # the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`.
56
56
  # * No more than 64 labels can be associated with a given resource.
57
57
  # * Keys and values must both be under 128 bytes.
58
+ # @!attribute [r] create_time
59
+ # @return [::Google::Protobuf::Timestamp]
60
+ # Output only. A server-assigned timestamp representing when this Instance was created.
61
+ # For instances created before this field was added (August 2021), this value
62
+ # is `seconds: 0, nanos: 1`.
58
63
  class Instance
59
64
  include ::Google::Protobuf::MessageExts
60
65
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -104,6 +109,29 @@ module Google
104
109
  end
105
110
  end
106
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
+
107
135
  # A resizable group of nodes in a particular cloud location, capable
108
136
  # of serving all {::Google::Cloud::Bigtable::Admin::V2::Table Tables} in the parent
109
137
  # {::Google::Cloud::Bigtable::Admin::V2::Instance Instance}.
@@ -123,8 +151,11 @@ module Google
123
151
  # The current state of the cluster.
124
152
  # @!attribute [rw] serve_nodes
125
153
  # @return [::Integer]
126
- # Required. The number of nodes allocated to this cluster. More nodes enable
127
- # higher throughput and more consistent performance.
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.
128
159
  # @!attribute [rw] default_storage_type
129
160
  # @return [::Google::Cloud::Bigtable::Admin::V2::StorageType]
130
161
  # (`CreationOnly`)
@@ -137,6 +168,27 @@ module Google
137
168
  include ::Google::Protobuf::MessageExts
138
169
  extend ::Google::Protobuf::MessageExts::ClassMethods
139
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
+
140
192
  # Cloud Key Management Service (Cloud KMS) settings for a CMEK-protected
141
193
  # cluster.
142
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.6.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-08-20 00:00:00.000000000 Z
11
+ date: 2021-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -179,8 +179,7 @@ dependencies:
179
179
  description: Cloud Bigtable is a fully managed, scalable NoSQL database service for
180
180
  large analytical and operational workloads. Note that google-cloud-bigtable-admin-v2
181
181
  is a version-specific client library. For most uses, we recommend installing the
182
- main client library google-cloud-bigtable-admin instead. See the readme for more
183
- details.
182
+ main client library google-cloud-bigtable instead. See the readme for more details.
184
183
  email: googleapis-packages@google.com
185
184
  executables: []
186
185
  extensions: []