google-cloud-bigtable-admin-v2 0.11.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4e9201027008c7b17b95ee7392a13fb87036c07e3f3055e1ccc93d777bf733db
4
- data.tar.gz: 76b046eed9d5bd16351a6ae51436aebe5293834f0b816ba355ad14906a2badf8
3
+ metadata.gz: 18dae439c160b82e39f9469cbd70341a8c243ebccc0ef4f3a60637a273cb33c8
4
+ data.tar.gz: 5123c0bb2a69ab965a86ec283fec15cc0b8f07f52fe1ed0eb486854d7d521a67
5
5
  SHA512:
6
- metadata.gz: '08137ab0a06655e2f400e5dd2a92e63e6485f765d11bf66a3cf1638fa6aa76ffcb8f84f42a4f32b9e5d4cfc0a8cc111d5b09e433b7ac0760f3c09f6a78504317'
7
- data.tar.gz: 532f8848e1f1a2064fc324d9c2f152537d1a2995c45b4eb33aa2a5146d1c109101c5ad86941e46a8144a45d81e86256c5d67e292bb848de1a3affe2bf771175d
6
+ metadata.gz: 3fc5422bd29adb34e608d2308b73e3b417a581346169f57f80259aa2fc61feedf3d5b57e96d1e06337b9ed647cff17d45ebe098c3b6b11f86b7099461b3b6b9b
7
+ data.tar.gz: 3dc100029be113dc55fdea8d50bc71a56e218098db1b62b5c085fed80e31cac51107ace13f07c702a5d2b73144c8e167ad6ae4980db209f09b651ec20e2e7280
@@ -77,6 +77,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
77
77
  add_message "google.bigtable.admin.v2.DeleteTableRequest" do
78
78
  optional :name, :string, 1
79
79
  end
80
+ add_message "google.bigtable.admin.v2.UndeleteTableRequest" do
81
+ optional :name, :string, 1
82
+ end
83
+ add_message "google.bigtable.admin.v2.UndeleteTableMetadata" do
84
+ optional :name, :string, 1
85
+ optional :start_time, :message, 2, "google.protobuf.Timestamp"
86
+ optional :end_time, :message, 3, "google.protobuf.Timestamp"
87
+ end
80
88
  add_message "google.bigtable.admin.v2.ModifyColumnFamiliesRequest" do
81
89
  optional :name, :string, 1
82
90
  repeated :modifications, :message, 2, "google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification"
@@ -185,6 +193,8 @@ module Google
185
193
  ListTablesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListTablesResponse").msgclass
186
194
  GetTableRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetTableRequest").msgclass
187
195
  DeleteTableRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteTableRequest").msgclass
196
+ UndeleteTableRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UndeleteTableRequest").msgclass
197
+ UndeleteTableMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UndeleteTableMetadata").msgclass
188
198
  ModifyColumnFamiliesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ModifyColumnFamiliesRequest").msgclass
189
199
  ModifyColumnFamiliesRequest::Modification = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification").msgclass
190
200
  GenerateConsistencyTokenRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GenerateConsistencyTokenRequest").msgclass
@@ -57,6 +57,8 @@ module Google
57
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
59
  rpc :DeleteTable, ::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest, ::Google::Protobuf::Empty
60
+ # Restores a specified table which was accidentally deleted.
61
+ rpc :UndeleteTable, ::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest, ::Google::Longrunning::Operation
60
62
  # Performs a series of column family modifications on the specified table.
61
63
  # Either all or none of the modifications will occur before this method
62
64
  # returns, but data requests received prior to that point may see a table
@@ -3,7 +3,6 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
- require 'google/api/annotations_pb'
7
6
  require 'google/protobuf/timestamp_pb'
8
7
 
9
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -3,7 +3,6 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
- require 'google/api/annotations_pb'
7
6
  require 'google/api/field_behavior_pb'
8
7
  require 'google/api/resource_pb'
9
8
  require 'google/bigtable/admin/v2/common_pb'
@@ -31,6 +30,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
31
30
  end
32
31
  add_message "google.bigtable.admin.v2.AutoscalingTargets" do
33
32
  optional :cpu_utilization_percent, :int32, 2
33
+ optional :storage_utilization_gib_per_node, :int32, 3
34
34
  end
35
35
  add_message "google.bigtable.admin.v2.AutoscalingLimits" do
36
36
  optional :min_serve_nodes, :int32, 1
@@ -3,7 +3,6 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
- require 'google/api/annotations_pb'
7
6
  require 'google/api/field_behavior_pb'
8
7
  require 'google/api/resource_pb'
9
8
  require 'google/protobuf/duration_pb'
@@ -737,6 +737,101 @@ module Google
737
737
  raise ::Google::Cloud::Error.from_error(e)
738
738
  end
739
739
 
740
+ ##
741
+ # Restores a specified table which was accidentally deleted.
742
+ #
743
+ # @overload undelete_table(request, options = nil)
744
+ # Pass arguments to `undelete_table` via a request object, either of type
745
+ # {::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest} or an equivalent Hash.
746
+ #
747
+ # @param request [::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest, ::Hash]
748
+ # A request object representing the call parameters. Required. To specify no
749
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
750
+ # @param options [::Gapic::CallOptions, ::Hash]
751
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
752
+ #
753
+ # @overload undelete_table(name: nil)
754
+ # Pass arguments to `undelete_table` via keyword arguments. Note that at
755
+ # least one keyword argument is required. To specify no parameters, or to keep all
756
+ # the default parameter values, pass an empty Hash as a request object (see above).
757
+ #
758
+ # @param name [::String]
759
+ # Required. The unique name of the table to be restored.
760
+ # Values are of the form
761
+ # `projects/{project}/instances/{instance}/tables/{table}`.
762
+ #
763
+ # @yield [response, operation] Access the result along with the RPC operation
764
+ # @yieldparam response [::Gapic::Operation]
765
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
766
+ #
767
+ # @return [::Gapic::Operation]
768
+ #
769
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
770
+ #
771
+ # @example Basic example
772
+ # require "google/cloud/bigtable/admin/v2"
773
+ #
774
+ # # Create a client object. The client can be reused for multiple calls.
775
+ # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new
776
+ #
777
+ # # Create a request. To set request fields, pass in keyword arguments.
778
+ # request = Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest.new
779
+ #
780
+ # # Call the undelete_table method.
781
+ # result = client.undelete_table request
782
+ #
783
+ # # The returned object is of type Gapic::Operation. You can use this
784
+ # # object to check the status of an operation, cancel it, or wait
785
+ # # for results. Here is how to block until completion:
786
+ # result.wait_until_done! timeout: 60
787
+ # if result.response?
788
+ # p result.response
789
+ # else
790
+ # puts "Error!"
791
+ # end
792
+ #
793
+ def undelete_table request, options = nil
794
+ raise ::ArgumentError, "request must be provided" if request.nil?
795
+
796
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest
797
+
798
+ # Converts hash and nil to an options object
799
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
800
+
801
+ # Customize the options with defaults
802
+ metadata = @config.rpcs.undelete_table.metadata.to_h
803
+
804
+ # Set x-goog-api-client and x-goog-user-project headers
805
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
806
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
807
+ gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION
808
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
809
+
810
+ header_params = {}
811
+ if request.name
812
+ header_params["name"] = request.name
813
+ end
814
+
815
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
816
+ metadata[:"x-goog-request-params"] ||= request_params_header
817
+
818
+ options.apply_defaults timeout: @config.rpcs.undelete_table.timeout,
819
+ metadata: metadata,
820
+ retry_policy: @config.rpcs.undelete_table.retry_policy
821
+
822
+ options.apply_defaults timeout: @config.timeout,
823
+ metadata: @config.metadata,
824
+ retry_policy: @config.retry_policy
825
+
826
+ @bigtable_table_admin_stub.call_rpc :undelete_table, request, options: options do |response, operation|
827
+ response = ::Gapic::Operation.new response, @operations_client, options: options
828
+ yield response, operation if block_given?
829
+ return response
830
+ end
831
+ rescue ::GRPC::BadStatus => e
832
+ raise ::Google::Cloud::Error.from_error(e)
833
+ end
834
+
740
835
  ##
741
836
  # Performs a series of column family modifications on the specified table.
742
837
  # Either all or none of the modifications will occur before this method
@@ -2606,6 +2701,11 @@ module Google
2606
2701
  #
2607
2702
  attr_reader :delete_table
2608
2703
  ##
2704
+ # RPC-specific configuration for `undelete_table`
2705
+ # @return [::Gapic::Config::Method]
2706
+ #
2707
+ attr_reader :undelete_table
2708
+ ##
2609
2709
  # RPC-specific configuration for `modify_column_families`
2610
2710
  # @return [::Gapic::Config::Method]
2611
2711
  #
@@ -2703,6 +2803,8 @@ module Google
2703
2803
  @get_table = ::Gapic::Config::Method.new get_table_config
2704
2804
  delete_table_config = parent_rpcs.delete_table if parent_rpcs.respond_to? :delete_table
2705
2805
  @delete_table = ::Gapic::Config::Method.new delete_table_config
2806
+ undelete_table_config = parent_rpcs.undelete_table if parent_rpcs.respond_to? :undelete_table
2807
+ @undelete_table = ::Gapic::Config::Method.new undelete_table_config
2706
2808
  modify_column_families_config = parent_rpcs.modify_column_families if parent_rpcs.respond_to? :modify_column_families
2707
2809
  @modify_column_families = ::Gapic::Config::Method.new modify_column_families_config
2708
2810
  drop_row_range_config = parent_rpcs.drop_row_range if parent_rpcs.respond_to? :drop_row_range
@@ -22,7 +22,7 @@ module Google
22
22
  module Bigtable
23
23
  module Admin
24
24
  module V2
25
- VERSION = "0.11.0"
25
+ VERSION = "0.12.0"
26
26
  end
27
27
  end
28
28
  end
@@ -252,6 +252,34 @@ module Google
252
252
  extend ::Google::Protobuf::MessageExts::ClassMethods
253
253
  end
254
254
 
255
+ # Request message for
256
+ # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#undelete_table google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable}
257
+ # @!attribute [rw] name
258
+ # @return [::String]
259
+ # Required. The unique name of the table to be restored.
260
+ # Values are of the form
261
+ # `projects/{project}/instances/{instance}/tables/{table}`.
262
+ class UndeleteTableRequest
263
+ include ::Google::Protobuf::MessageExts
264
+ extend ::Google::Protobuf::MessageExts::ClassMethods
265
+ end
266
+
267
+ # Metadata type for the operation returned by
268
+ # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#undelete_table google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable}.
269
+ # @!attribute [rw] name
270
+ # @return [::String]
271
+ # The name of the table being restored.
272
+ # @!attribute [rw] start_time
273
+ # @return [::Google::Protobuf::Timestamp]
274
+ # The time at which this operation started.
275
+ # @!attribute [rw] end_time
276
+ # @return [::Google::Protobuf::Timestamp]
277
+ # If set, the time at which this operation finished or was cancelled.
278
+ class UndeleteTableMetadata
279
+ include ::Google::Protobuf::MessageExts
280
+ extend ::Google::Protobuf::MessageExts::ClassMethods
281
+ end
282
+
255
283
  # Request message for
256
284
  # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#modify_column_families google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies}
257
285
  # @!attribute [rw] name
@@ -111,6 +111,14 @@ module Google
111
111
  # This number is on a scale from 0 (no utilization) to
112
112
  # 100 (total utilization), and is limited between 10 and 80, otherwise it
113
113
  # will return INVALID_ARGUMENT error.
114
+ # @!attribute [rw] storage_utilization_gib_per_node
115
+ # @return [::Integer]
116
+ # The storage utilization that the Autoscaler should be trying to achieve.
117
+ # This number is limited between 2560 (2.5TiB) and 5120 (5TiB) for a SSD
118
+ # cluster and between 8192 (8TiB) and 16384 (16TiB) for an HDD cluster;
119
+ # otherwise it will return INVALID_ARGUMENT error. If this value is set to 0,
120
+ # it will be treated as if it were set to the default value: 2560 for SSD,
121
+ # 8192 for HDD.
114
122
  class AutoscalingTargets
115
123
  include ::Google::Protobuf::MessageExts
116
124
  extend ::Google::Protobuf::MessageExts::ClassMethods
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.11.0
4
+ version: 0.12.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: 2022-05-19 00:00:00.000000000 Z
11
+ date: 2022-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -241,7 +241,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
241
241
  - !ruby/object:Gem::Version
242
242
  version: '0'
243
243
  requirements: []
244
- rubygems_version: 3.3.5
244
+ rubygems_version: 3.3.14
245
245
  signing_key:
246
246
  specification_version: 4
247
247
  summary: API Client library for the Cloud Bigtable Admin V2 API