google-cloud-bigtable-v2 0.8.0 → 0.10.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: 4cfc6e05ad85852561ba6aa5d53d5fe73c273f2e0dde7703f6c63802af275ff9
4
- data.tar.gz: a5b32e4d889b81242c3622f883fb117e81d26a911064c6ebd64b6f03f0287c3c
3
+ metadata.gz: 56f0ee2f4dfa798c23723bf390e3510c931fa7ad3b9a5096123a380b52ab03cd
4
+ data.tar.gz: 41aa3fbf9e0d41be02e74c9f6eb471255b5d6bb0c0e8c0ec7139ac9025bc293d
5
5
  SHA512:
6
- metadata.gz: 73c03468e20fd6ea4e9306cf304018635bc55d1caf8e3e878be7298155a5d01bbefd7a0535012a89ee19cc1b896cb94bfd7c26892276d1bbb7d9b9fc01891432
7
- data.tar.gz: 3c1710b480304d76b52a0e7552851f59ab0edc03dfa23c069bae7bf3a698292dc91dee244c69c26b52af25cd10933a99c3d958fb477b5a537fa2ed1001561ea0
6
+ metadata.gz: a530bada3cf51cbfa3d0bfc20bf46f33b7f982eddc52be3212b7c4fa6401c608954e28f377a9beedf089cf81801d293d9797b3faee861de2e6ca4e653bc73005
7
+ data.tar.gz: 835c96c7518d3039e2ba9d64d09c70968f15933bd609e509b0077b95dbbc87beca2b74c3bbfee1367b14fe6d78f7c9c0dffb084c90bb1658b5c365e1f2b5700c
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Ruby Client for the Cloud Bigtable V2 API
2
2
 
3
- API Client library for the Cloud Bigtable V2 API
3
+ API for reading and writing the contents of Bigtables associated with a cloud project.
4
4
 
5
5
  Cloud Bigtable is a fully managed, scalable NoSQL database service for large analytical and operational workloads.
6
6
 
@@ -47,7 +47,7 @@ for general usage information.
47
47
 
48
48
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
49
  The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
- or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
50
+ or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
51
51
  that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
52
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
53
53
 
@@ -75,11 +75,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
75
75
  end
76
76
  add_message "google.bigtable.v2.MutateRowsResponse" do
77
77
  repeated :entries, :message, 1, "google.bigtable.v2.MutateRowsResponse.Entry"
78
+ proto3_optional :rate_limit_info, :message, 3, "google.bigtable.v2.RateLimitInfo"
78
79
  end
79
80
  add_message "google.bigtable.v2.MutateRowsResponse.Entry" do
80
81
  optional :index, :int64, 1
81
82
  optional :status, :message, 2, "google.rpc.Status"
82
83
  end
84
+ add_message "google.bigtable.v2.RateLimitInfo" do
85
+ optional :period, :message, 1, "google.protobuf.Duration"
86
+ optional :factor, :double, 2
87
+ end
83
88
  add_message "google.bigtable.v2.CheckAndMutateRowRequest" do
84
89
  optional :table_name, :string, 1
85
90
  optional :app_profile_id, :string, 7
@@ -164,6 +169,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
164
169
  add_message "google.bigtable.v2.ReadChangeStreamResponse.CloseStream" do
165
170
  optional :status, :message, 1, "google.rpc.Status"
166
171
  repeated :continuation_tokens, :message, 2, "google.bigtable.v2.StreamContinuationToken"
172
+ repeated :new_partitions, :message, 3, "google.bigtable.v2.StreamPartition"
167
173
  end
168
174
  end
169
175
  end
@@ -184,6 +190,7 @@ module Google
184
190
  MutateRowsRequest::Entry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.MutateRowsRequest.Entry").msgclass
185
191
  MutateRowsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.MutateRowsResponse").msgclass
186
192
  MutateRowsResponse::Entry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.MutateRowsResponse.Entry").msgclass
193
+ RateLimitInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.RateLimitInfo").msgclass
187
194
  CheckAndMutateRowRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.CheckAndMutateRowRequest").msgclass
188
195
  CheckAndMutateRowResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.CheckAndMutateRowResponse").msgclass
189
196
  PingAndWarmRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.PingAndWarmRequest").msgclass
@@ -0,0 +1,22 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/bigtable/v2/feature_flags.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_file("google/bigtable/v2/feature_flags.proto", :syntax => :proto3) do
8
+ add_message "google.bigtable.v2.FeatureFlags" do
9
+ optional :mutate_rows_rate_limit, :bool, 3
10
+ end
11
+ end
12
+ end
13
+
14
+ module Google
15
+ module Cloud
16
+ module Bigtable
17
+ module V2
18
+ FeatureFlags = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.FeatureFlags").msgclass
19
+ end
20
+ end
21
+ end
22
+ end
@@ -190,8 +190,8 @@ module Google
190
190
  # Values are of the form
191
191
  # `projects/<project>/instances/<instance>/tables/<table>`.
192
192
  # @param app_profile_id [::String]
193
- # This value specifies routing for replication. This API only accepts the
194
- # empty value of app_profile_id.
193
+ # This value specifies routing for replication. If not specified, the
194
+ # "default" application profile will be used.
195
195
  # @param rows [::Google::Cloud::Bigtable::V2::RowSet, ::Hash]
196
196
  # The row keys and/or ranges to read sequentially. If not specified, reads
197
197
  # from all rows.
@@ -1153,9 +1153,9 @@ module Google
1153
1153
  # * (`String`) The path to a service account key file in JSON format
1154
1154
  # * (`Hash`) A service account key as a Hash
1155
1155
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1156
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1156
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1157
1157
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1158
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1158
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1159
1159
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1160
1160
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1161
1161
  # * (`nil`) indicating no credentials
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Bigtable
23
23
  module V2
24
- VERSION = "0.8.0"
24
+ VERSION = "0.10.0"
25
25
  end
26
26
  end
27
27
  end
@@ -35,7 +35,9 @@ module Google
35
35
  # Details about how and where to publish client libraries.
36
36
  # @!attribute [rw] version
37
37
  # @return [::String]
38
- # Version of the API to apply these settings to.
38
+ # Version of the API to apply these settings to. This is the full protobuf
39
+ # package for the API, ending in the version element.
40
+ # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
39
41
  # @!attribute [rw] launch_stage
40
42
  # @return [::Google::Api::LaunchStage]
41
43
  # Launch stage of this version of the API.
@@ -81,7 +83,7 @@ module Google
81
83
  # long-running operation pattern.
82
84
  # @!attribute [rw] new_issue_uri
83
85
  # @return [::String]
84
- # Link to a place that API users can report issues. Example:
86
+ # Link to a *public* URI where users can report issues. Example:
85
87
  # https://issuetracker.google.com/issues/new?component=190865&template=1161103
86
88
  # @!attribute [rw] documentation_uri
87
89
  # @return [::String]
@@ -111,6 +113,10 @@ module Google
111
113
  # Client library settings. If the same version string appears multiple
112
114
  # times in this list, then the last one wins. Settings from earlier
113
115
  # settings with the same version string are discarded.
116
+ # @!attribute [rw] proto_reference_documentation_uri
117
+ # @return [::String]
118
+ # Optional link to proto reference documentation. Example:
119
+ # https://cloud.google.com/pubsub/lite/docs/reference/rpc
114
120
  class Publishing
115
121
  include ::Google::Protobuf::MessageExts
116
122
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -203,9 +209,57 @@ module Google
203
209
  # @!attribute [rw] common
204
210
  # @return [::Google::Api::CommonLanguageSettings]
205
211
  # Some settings.
212
+ # @!attribute [rw] renamed_services
213
+ # @return [::Google::Protobuf::Map{::String => ::String}]
214
+ # Map from original service names to renamed versions.
215
+ # This is used when the default generated types
216
+ # would cause a naming conflict. (Neither name is
217
+ # fully-qualified.)
218
+ # Example: Subscriber to SubscriberServiceApi.
219
+ # @!attribute [rw] renamed_resources
220
+ # @return [::Google::Protobuf::Map{::String => ::String}]
221
+ # Map from full resource types to the effective short name
222
+ # for the resource. This is used when otherwise resource
223
+ # named from different services would cause naming collisions.
224
+ # Example entry:
225
+ # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
226
+ # @!attribute [rw] ignored_resources
227
+ # @return [::Array<::String>]
228
+ # List of full resource types to ignore during generation.
229
+ # This is typically used for API-specific Location resources,
230
+ # which should be handled by the generator as if they were actually
231
+ # the common Location resources.
232
+ # Example entry: "documentai.googleapis.com/Location"
233
+ # @!attribute [rw] forced_namespace_aliases
234
+ # @return [::Array<::String>]
235
+ # Namespaces which must be aliased in snippets due to
236
+ # a known (but non-generator-predictable) naming collision
237
+ # @!attribute [rw] handwritten_signatures
238
+ # @return [::Array<::String>]
239
+ # Method signatures (in the form "service.method(signature)")
240
+ # which are provided separately, so shouldn't be generated.
241
+ # Snippets *calling* these methods are still generated, however.
206
242
  class DotnetSettings
207
243
  include ::Google::Protobuf::MessageExts
208
244
  extend ::Google::Protobuf::MessageExts::ClassMethods
245
+
246
+ # @!attribute [rw] key
247
+ # @return [::String]
248
+ # @!attribute [rw] value
249
+ # @return [::String]
250
+ class RenamedServicesEntry
251
+ include ::Google::Protobuf::MessageExts
252
+ extend ::Google::Protobuf::MessageExts::ClassMethods
253
+ end
254
+
255
+ # @!attribute [rw] key
256
+ # @return [::String]
257
+ # @!attribute [rw] value
258
+ # @return [::String]
259
+ class RenamedResourcesEntry
260
+ include ::Google::Protobuf::MessageExts
261
+ extend ::Google::Protobuf::MessageExts::ClassMethods
262
+ end
209
263
  end
210
264
 
211
265
  # Settings for Ruby client libraries.
@@ -240,8 +294,8 @@ module Google
240
294
  # Example of a YAML configuration::
241
295
  #
242
296
  # publishing:
243
- # method_behavior:
244
- # - selector: CreateAdDomain
297
+ # method_settings:
298
+ # - selector: google.cloud.speech.v2.Speech.BatchRecognize
245
299
  # long_running:
246
300
  # initial_poll_delay:
247
301
  # seconds: 60 # 1 minute
@@ -299,6 +353,15 @@ module Google
299
353
 
300
354
  # Street View Org.
301
355
  STREET_VIEW = 4
356
+
357
+ # Shopping Org.
358
+ SHOPPING = 5
359
+
360
+ # Geo Org.
361
+ GEO = 6
362
+
363
+ # Generative AI - https://developers.generativeai.google
364
+ GENERATIVE_AI = 7
302
365
  end
303
366
 
304
367
  # To where should client libraries be published?
@@ -29,8 +29,8 @@ module Google
29
29
  # `projects/<project>/instances/<instance>/tables/<table>`.
30
30
  # @!attribute [rw] app_profile_id
31
31
  # @return [::String]
32
- # This value specifies routing for replication. This API only accepts the
33
- # empty value of app_profile_id.
32
+ # This value specifies routing for replication. If not specified, the
33
+ # "default" application profile will be used.
34
34
  # @!attribute [rw] rows
35
35
  # @return [::Google::Cloud::Bigtable::V2::RowSet]
36
36
  # The row keys and/or ranges to read sequentially. If not specified, reads
@@ -274,6 +274,11 @@ module Google
274
274
  # @!attribute [rw] entries
275
275
  # @return [::Array<::Google::Cloud::Bigtable::V2::MutateRowsResponse::Entry>]
276
276
  # One or more results for Entries from the batch request.
277
+ # @!attribute [rw] rate_limit_info
278
+ # @return [::Google::Cloud::Bigtable::V2::RateLimitInfo]
279
+ # Information about how client should limit the rate (QPS). Primirily used by
280
+ # supported official Cloud Bigtable clients. If unset, the rate limit info is
281
+ # not provided by the server.
277
282
  class MutateRowsResponse
278
283
  include ::Google::Protobuf::MessageExts
279
284
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -295,6 +300,31 @@ module Google
295
300
  end
296
301
  end
297
302
 
303
+ # Information about how client should adjust the load to Bigtable.
304
+ # @!attribute [rw] period
305
+ # @return [::Google::Protobuf::Duration]
306
+ # Time that clients should wait before adjusting the target rate again.
307
+ # If clients adjust rate too frequently, the impact of the previous
308
+ # adjustment may not have been taken into account and may
309
+ # over-throttle or under-throttle. If clients adjust rate too slowly, they
310
+ # will not be responsive to load changes on server side, and may
311
+ # over-throttle or under-throttle.
312
+ # @!attribute [rw] factor
313
+ # @return [::Float]
314
+ # If it has been at least one `period` since the last load adjustment, the
315
+ # client should multiply the current load by this value to get the new target
316
+ # load. For example, if the current load is 100 and `factor` is 0.8, the new
317
+ # target load should be 80. After adjusting, the client should ignore
318
+ # `factor` until another `period` has passed.
319
+ #
320
+ # The client can measure its load using any unit that's comparable over time
321
+ # For example, QPS can be used as long as each request involves a similar
322
+ # amount of work.
323
+ class RateLimitInfo
324
+ include ::Google::Protobuf::MessageExts
325
+ extend ::Google::Protobuf::MessageExts::ClassMethods
326
+ end
327
+
298
328
  # Request message for Bigtable.CheckAndMutateRow.
299
329
  # @!attribute [rw] table_name
300
330
  # @return [::String]
@@ -614,17 +644,37 @@ module Google
614
644
  end
615
645
 
616
646
  # A message indicating that the client should stop reading from the stream.
617
- # If status is OK and `continuation_tokens` is empty, the stream has finished
618
- # (for example if there was an `end_time` specified).
619
- # If `continuation_tokens` is present, then a change in partitioning requires
620
- # the client to open a new stream for each token to resume reading.
647
+ # If status is OK and `continuation_tokens` & `new_partitions` are empty, the
648
+ # stream has finished (for example if there was an `end_time` specified).
649
+ # If `continuation_tokens` & `new_partitions` are present, then a change in
650
+ # partitioning requires the client to open a new stream for each token to
651
+ # resume reading. Example:
652
+ # [B, D) ends
653
+ # |
654
+ # v
655
+ # new_partitions: [A, C) [C, E)
656
+ # continuation_tokens.partitions: [B,C) [C,D)
657
+ # ^---^ ^---^
658
+ # ^ ^
659
+ # | |
660
+ # | StreamContinuationToken 2
661
+ # |
662
+ # StreamContinuationToken 1
663
+ # To read the new partition [A,C), supply the continuation tokens whose
664
+ # ranges cover the new partition, for example ContinuationToken[A,B) &
665
+ # ContinuationToken[B,C).
621
666
  # @!attribute [rw] status
622
667
  # @return [::Google::Rpc::Status]
623
668
  # The status of the stream.
624
669
  # @!attribute [rw] continuation_tokens
625
670
  # @return [::Array<::Google::Cloud::Bigtable::V2::StreamContinuationToken>]
626
- # If non-empty, contains the information needed to start reading the new
627
- # partition(s) that contain segments of this partition's row range.
671
+ # If non-empty, contains the information needed to resume reading their
672
+ # associated partitions.
673
+ # @!attribute [rw] new_partitions
674
+ # @return [::Array<::Google::Cloud::Bigtable::V2::StreamPartition>]
675
+ # If non-empty, contains the new partitions to start reading from, which
676
+ # are related to but not necessarily identical to the partitions for the
677
+ # above `continuation_tokens`.
628
678
  class CloseStream
629
679
  include ::Google::Protobuf::MessageExts
630
680
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module Bigtable
23
+ module V2
24
+ # Feature flags supported by a client.
25
+ # This is intended to be sent as part of request metadata to assure the server
26
+ # that certain behaviors are safe to enable. This proto is meant to be
27
+ # serialized and websafe-base64 encoded under the `bigtable-features` metadata
28
+ # key. The value will remain constant for the lifetime of a client and due to
29
+ # HTTP2's HPACK compression, the request overhead will be tiny.
30
+ # This is an internal implementation detail and should not be used by endusers
31
+ # directly.
32
+ # @!attribute [rw] mutate_rows_rate_limit
33
+ # @return [::Boolean]
34
+ # Notify the server that the client enables batch write flow control by
35
+ # requesting RateLimitInfo from MutateRowsResponse.
36
+ class FeatureFlags
37
+ include ::Google::Protobuf::MessageExts
38
+ extend ::Google::Protobuf::MessageExts::ClassMethods
39
+ end
40
+ end
41
+ end
42
+ end
43
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-bigtable-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.10.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: 2023-02-23 00:00:00.000000000 Z
11
+ date: 2023-05-04 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.17.1
19
+ version: 0.18.0
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.17.1
29
+ version: 0.18.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -173,6 +173,7 @@ files:
173
173
  - lib/google/bigtable/v2/bigtable_pb.rb
174
174
  - lib/google/bigtable/v2/bigtable_services_pb.rb
175
175
  - lib/google/bigtable/v2/data_pb.rb
176
+ - lib/google/bigtable/v2/feature_flags_pb.rb
176
177
  - lib/google/bigtable/v2/request_stats_pb.rb
177
178
  - lib/google/bigtable/v2/response_params_pb.rb
178
179
  - lib/google/cloud/bigtable/v2.rb
@@ -190,6 +191,7 @@ files:
190
191
  - proto_docs/google/api/routing.rb
191
192
  - proto_docs/google/bigtable/v2/bigtable.rb
192
193
  - proto_docs/google/bigtable/v2/data.rb
194
+ - proto_docs/google/bigtable/v2/feature_flags.rb
193
195
  - proto_docs/google/bigtable/v2/request_stats.rb
194
196
  - proto_docs/google/bigtable/v2/response_params.rb
195
197
  - proto_docs/google/protobuf/any.rb
@@ -219,5 +221,6 @@ requirements: []
219
221
  rubygems_version: 3.4.2
220
222
  signing_key:
221
223
  specification_version: 4
222
- summary: API Client library for the Cloud Bigtable V2 API
224
+ summary: API for reading and writing the contents of Bigtables associated with a cloud
225
+ project.
223
226
  test_files: []