google-cloud-bigtable-admin-v2 0.11.0 → 0.14.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: 1a3abbab8f6a6e56ea4cfb915519ec818dbf60e10e6c273a3a5621e4e580bf3c
4
+ data.tar.gz: 2189b855c266d5d438a0adb943bd925f792f08ee26b498d30611d0c1473d898c
5
5
  SHA512:
6
- metadata.gz: '08137ab0a06655e2f400e5dd2a92e63e6485f765d11bf66a3cf1638fa6aa76ffcb8f84f42a4f32b9e5d4cfc0a8cc111d5b09e433b7ac0760f3c09f6a78504317'
7
- data.tar.gz: 532f8848e1f1a2064fc324d9c2f152537d1a2995c45b4eb33aa2a5146d1c109101c5ad86941e46a8144a45d81e86256c5d67e292bb848de1a3affe2bf771175d
6
+ metadata.gz: 590ce05de6889e1fe9f964d2f900721252ccb95cea4322a012a183f1a0dd76215ce3c9c1ac7e975b60b987b072ee34e358e3bc1d91239efaf22e2a1370207c5e
7
+ data.tar.gz: b67a31318f5909a087da70d85862ee0a694d401a8503f816ae5e90c960bc0cb2884ca17f547703fa3a8c9ece425f0f485cb5c8b5d1350543eac612d19bd4dca2
data/README.md CHANGED
@@ -76,14 +76,14 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
76
76
 
77
77
  ## Supported Ruby Versions
78
78
 
79
- This library is supported on Ruby 2.5+.
79
+ This library is supported on Ruby 2.6+.
80
80
 
81
81
  Google provides official support for Ruby versions that are actively supported
82
82
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
83
- in security maintenance, and not end of life. Currently, this means Ruby 2.5
84
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
85
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
86
- about the Ruby support schedule.
83
+ in security maintenance, and not end of life. Older versions of Ruby _may_
84
+ still work, but are unsupported and not recommended. See
85
+ https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
86
+ support schedule.
87
87
 
88
88
  ## Which client should I use?
89
89
 
@@ -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'
@@ -18,6 +17,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
18
17
  optional :type, :enum, 4, "google.bigtable.admin.v2.Instance.Type"
19
18
  map :labels, :string, :string, 5
20
19
  optional :create_time, :message, 7, "google.protobuf.Timestamp"
20
+ proto3_optional :satisfies_pzs, :bool, 8
21
21
  end
22
22
  add_enum "google.bigtable.admin.v2.Instance.State" do
23
23
  value :STATE_NOT_KNOWN, 0
@@ -31,6 +31,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
31
31
  end
32
32
  add_message "google.bigtable.admin.v2.AutoscalingTargets" do
33
33
  optional :cpu_utilization_percent, :int32, 2
34
+ optional :storage_utilization_gib_per_node, :int32, 3
34
35
  end
35
36
  add_message "google.bigtable.admin.v2.AutoscalingLimits" do
36
37
  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'
@@ -96,6 +96,9 @@ module Google
96
96
  channel_args: @config.channel_args,
97
97
  interceptors: @config.interceptors
98
98
  )
99
+
100
+ # Used by an LRO wrapper for some methods of this service
101
+ @operations_client = self
99
102
  end
100
103
 
101
104
  # Service calls
@@ -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
@@ -96,6 +96,9 @@ module Google
96
96
  channel_args: @config.channel_args,
97
97
  interceptors: @config.interceptors
98
98
  )
99
+
100
+ # Used by an LRO wrapper for some methods of this service
101
+ @operations_client = self
99
102
  end
100
103
 
101
104
  # Service calls
@@ -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.14.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
@@ -60,6 +60,9 @@ module Google
60
60
  # Output only. A server-assigned timestamp representing when this Instance was created.
61
61
  # For instances created before this field was added (August 2021), this value
62
62
  # is `seconds: 0, nanos: 1`.
63
+ # @!attribute [r] satisfies_pzs
64
+ # @return [::Boolean]
65
+ # Output only. Reserved for future use.
63
66
  class Instance
64
67
  include ::Google::Protobuf::MessageExts
65
68
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -111,6 +114,14 @@ module Google
111
114
  # This number is on a scale from 0 (no utilization) to
112
115
  # 100 (total utilization), and is limited between 10 and 80, otherwise it
113
116
  # will return INVALID_ARGUMENT error.
117
+ # @!attribute [rw] storage_utilization_gib_per_node
118
+ # @return [::Integer]
119
+ # The storage utilization that the Autoscaler should be trying to achieve.
120
+ # This number is limited between 2560 (2.5TiB) and 5120 (5TiB) for a SSD
121
+ # cluster and between 8192 (8TiB) and 16384 (16TiB) for an HDD cluster;
122
+ # otherwise it will return INVALID_ARGUMENT error. If this value is set to 0,
123
+ # it will be treated as if it were set to the default value: 2560 for SSD,
124
+ # 8192 for HDD.
114
125
  class AutoscalingTargets
115
126
  include ::Google::Protobuf::MessageExts
116
127
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -26,8 +26,6 @@ module Google
26
26
  # service Foo {
27
27
  # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
28
28
  # }
29
- #
30
- # The JSON representation for `Empty` is empty JSON object `{}`.
31
29
  class Empty
32
30
  include ::Google::Protobuf::MessageExts
33
31
  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.14.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-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.7'
19
+ version: '0.10'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.7'
29
+ version: '0.10'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -64,28 +64,28 @@ dependencies:
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: 1.25.1
67
+ version: 1.26.1
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: 1.25.1
74
+ version: 1.26.1
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: minitest
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
79
  - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: '5.14'
81
+ version: '5.16'
82
82
  type: :development
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - "~>"
87
87
  - !ruby/object:Gem::Version
88
- version: '5.14'
88
+ version: '5.16'
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: minitest-focus
91
91
  requirement: !ruby/object:Gem::Requirement
@@ -120,14 +120,14 @@ dependencies:
120
120
  requirements:
121
121
  - - ">="
122
122
  - !ruby/object:Gem::Version
123
- version: '12.0'
123
+ version: '13.0'
124
124
  type: :development
125
125
  prerelease: false
126
126
  version_requirements: !ruby/object:Gem::Requirement
127
127
  requirements:
128
128
  - - ">="
129
129
  - !ruby/object:Gem::Version
130
- version: '12.0'
130
+ version: '13.0'
131
131
  - !ruby/object:Gem::Dependency
132
132
  name: redcarpet
133
133
  requirement: !ruby/object:Gem::Requirement
@@ -234,14 +234,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
234
234
  requirements:
235
235
  - - ">="
236
236
  - !ruby/object:Gem::Version
237
- version: '2.5'
237
+ version: '2.6'
238
238
  required_rubygems_version: !ruby/object:Gem::Requirement
239
239
  requirements:
240
240
  - - ">="
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