google-cloud-bigtable-v2 1.15.1 → 1.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -2
  3. data/lib/google/bigtable/v2/bigtable_services_pb.rb +1 -1
  4. data/lib/google/bigtable/v2/data_pb.rb +2 -1
  5. data/lib/google/bigtable/v2/feature_flags_pb.rb +3 -1
  6. data/lib/google/cloud/bigtable/v2/bigtable/client.rb +1 -1
  7. data/lib/google/cloud/bigtable/v2/bigtable/credentials.rb +1 -1
  8. data/lib/google/cloud/bigtable/v2/bigtable/paths.rb +1 -1
  9. data/lib/google/cloud/bigtable/v2/bigtable/rest/client.rb +1645 -0
  10. data/lib/google/cloud/bigtable/v2/bigtable/rest/service_stub.rb +788 -0
  11. data/lib/google/cloud/bigtable/v2/bigtable/rest.rb +52 -0
  12. data/lib/google/cloud/bigtable/v2/bigtable.rb +7 -1
  13. data/lib/google/cloud/bigtable/v2/rest.rb +37 -0
  14. data/lib/google/cloud/bigtable/v2/version.rb +1 -1
  15. data/lib/google/cloud/bigtable/v2.rb +6 -1
  16. data/lib/google-cloud-bigtable-v2.rb +1 -1
  17. data/proto_docs/google/api/client.rb +1 -1
  18. data/proto_docs/google/api/field_behavior.rb +1 -1
  19. data/proto_docs/google/api/launch_stage.rb +1 -1
  20. data/proto_docs/google/api/resource.rb +1 -1
  21. data/proto_docs/google/api/routing.rb +1 -1
  22. data/proto_docs/google/bigtable/v2/bigtable.rb +1 -1
  23. data/proto_docs/google/bigtable/v2/data.rb +24 -1
  24. data/proto_docs/google/bigtable/v2/feature_flags.rb +5 -1
  25. data/proto_docs/google/bigtable/v2/peer_info.rb +1 -1
  26. data/proto_docs/google/bigtable/v2/request_stats.rb +1 -1
  27. data/proto_docs/google/bigtable/v2/response_params.rb +1 -1
  28. data/proto_docs/google/bigtable/v2/types.rb +1 -1
  29. data/proto_docs/google/protobuf/any.rb +1 -1
  30. data/proto_docs/google/protobuf/duration.rb +1 -1
  31. data/proto_docs/google/protobuf/timestamp.rb +8 -7
  32. data/proto_docs/google/protobuf/wrappers.rb +1 -1
  33. data/proto_docs/google/rpc/status.rb +1 -1
  34. data/proto_docs/google/type/date.rb +1 -1
  35. metadata +9 -5
@@ -0,0 +1,52 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2026 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
+ require "gapic/rest"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/bigtable/v2/version"
24
+
25
+ require "google/cloud/bigtable/v2/bigtable/credentials"
26
+ require "google/cloud/bigtable/v2/bigtable/paths"
27
+ require "google/cloud/bigtable/v2/bigtable/rest/client"
28
+
29
+ module Google
30
+ module Cloud
31
+ module Bigtable
32
+ module V2
33
+ ##
34
+ # Service for reading from and writing to existing Bigtable tables.
35
+ #
36
+ # To load this service and instantiate a REST client:
37
+ #
38
+ # require "google/cloud/bigtable/v2/bigtable/rest"
39
+ # client = ::Google::Cloud::Bigtable::V2::Bigtable::Rest::Client.new
40
+ #
41
+ module Bigtable
42
+ # Client for the REST transport
43
+ module Rest
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
50
+
51
+ helper_path = ::File.join __dir__, "rest", "helpers.rb"
52
+ require "google/cloud/bigtable/v2/bigtable/rest/helpers" if ::File.file? helper_path
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -25,6 +25,7 @@ require "google/cloud/bigtable/v2/version"
25
25
  require "google/cloud/bigtable/v2/bigtable/credentials"
26
26
  require "google/cloud/bigtable/v2/bigtable/paths"
27
27
  require "google/cloud/bigtable/v2/bigtable/client"
28
+ require "google/cloud/bigtable/v2/bigtable/rest"
28
29
 
29
30
  module Google
30
31
  module Cloud
@@ -38,6 +39,11 @@ module Google
38
39
  # require "google/cloud/bigtable/v2/bigtable"
39
40
  # client = ::Google::Cloud::Bigtable::V2::Bigtable::Client.new
40
41
  #
42
+ # @example Load this service and instantiate a REST client
43
+ #
44
+ # require "google/cloud/bigtable/v2/bigtable/rest"
45
+ # client = ::Google::Cloud::Bigtable::V2::Bigtable::Rest::Client.new
46
+ #
41
47
  module Bigtable
42
48
  end
43
49
  end
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2026 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
+ require "google/cloud/bigtable/v2/bigtable/rest"
20
+ require "google/cloud/bigtable/v2/version"
21
+
22
+ module Google
23
+ module Cloud
24
+ module Bigtable
25
+ ##
26
+ # To load just the REST part of this package, including all its services, and instantiate a REST client:
27
+ #
28
+ # @example
29
+ #
30
+ # require "google/cloud/bigtable/v2/rest"
31
+ # client = ::Google::Cloud::Bigtable::V2::Bigtable::Rest::Client.new
32
+ #
33
+ module V2
34
+ end
35
+ end
36
+ end
37
+ end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Bigtable
23
23
  module V2
24
- VERSION = "1.15.1"
24
+ VERSION = "1.17.0"
25
25
  end
26
26
  end
27
27
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -30,6 +30,11 @@ module Google
30
30
  # require "google/cloud/bigtable/v2"
31
31
  # client = ::Google::Cloud::Bigtable::V2::Bigtable::Client.new
32
32
  #
33
+ # @example Load this package, including all its services, and instantiate a REST client
34
+ #
35
+ # require "google/cloud/bigtable/v2"
36
+ # client = ::Google::Cloud::Bigtable::V2::Bigtable::Rest::Client.new
37
+ #
33
38
  module V2
34
39
  end
35
40
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2022 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2022 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2022 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -651,6 +651,9 @@ module Google
651
651
  # Deletes cells from the entire row.
652
652
  #
653
653
  # Note: The following fields are mutually exclusive: `delete_from_row`, `set_cell`, `add_to_cell`, `merge_to_cell`, `delete_from_column`, `delete_from_family`. If a field in that set is populated, all other fields in the set will automatically be cleared.
654
+ # @!attribute [rw] timestamp_origin
655
+ # @return [::Google::Cloud::Bigtable::V2::Mutation::TimestampOrigin]
656
+ # Optional. The origin of the timestamp in this mutation.
654
657
  class Mutation
655
658
  include ::Google::Protobuf::MessageExts
656
659
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -760,6 +763,26 @@ module Google
760
763
  include ::Google::Protobuf::MessageExts
761
764
  extend ::Google::Protobuf::MessageExts::ClassMethods
762
765
  end
766
+
767
+ # Represents the origin of the timestamp in the mutation.
768
+ module TimestampOrigin
769
+ # Default value. Should not be explicitly set.
770
+ TIMESTAMP_ORIGIN_UNSPECIFIED = 0
771
+
772
+ # Indicates that the timestamp was explicitly provided by the user (either
773
+ # `>0` or `-1` for server-assigned).
774
+ # The server will reject the mutation if the timestamp's precision does not
775
+ # match the table's granularity.
776
+ # (e.g., a millisecond table only allows timestamps that are multiples of
777
+ # 1000).
778
+ USER_SPECIFIED = 1
779
+
780
+ # Indicates that the timestamp was auto-generated by the client library.
781
+ # The server will truncate the timestamp's precision to match the table's
782
+ # granularity.
783
+ # (e.g., zeroing the last 3 digits for a millisecond table).
784
+ CLIENT_AUTO_GENERATED = 2
785
+ end
763
786
  end
764
787
 
765
788
  # Specifies an atomic read/modify/write operation on the latest value of the
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2023 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -73,6 +73,10 @@ module Google
73
73
  # @!attribute [rw] sessions_required
74
74
  # @return [::Boolean]
75
75
  # Internal flag to force sessions for internal projects.
76
+ # @!attribute [rw] microsecond_timestamp
77
+ # @return [::Boolean]
78
+ # Optional. Indicates whether the client supports microsecond precision
79
+ # timestamps.
76
80
  class FeatureFlags
77
81
  include ::Google::Protobuf::MessageExts
78
82
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2025 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2022 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2022 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2024 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2022 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2023 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -110,14 +110,15 @@ module Google
110
110
  # ) to obtain a formatter capable of generating timestamps in this format.
111
111
  # @!attribute [rw] seconds
112
112
  # @return [::Integer]
113
- # Represents seconds of UTC time since Unix epoch
114
- # 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
115
- # 9999-12-31T23:59:59Z inclusive.
113
+ # Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must
114
+ # be between -315576000000 and 315576000000 inclusive (which corresponds to
115
+ # 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z).
116
116
  # @!attribute [rw] nanos
117
117
  # @return [::Integer]
118
- # Non-negative fractions of a second at nanosecond resolution. Negative
119
- # second values with fractions must still have non-negative nanos values
120
- # that count forward in time. Must be from 0 to 999,999,999
118
+ # Non-negative fractions of a second at nanosecond resolution. This field is
119
+ # the nanosecond portion of the duration, not an alternative to seconds.
120
+ # Negative second values with fractions must still have non-negative nanos
121
+ # values that count forward in time. Must be between 0 and 999,999,999
121
122
  # inclusive.
122
123
  class Timestamp
123
124
  include ::Google::Protobuf::MessageExts
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2024 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-bigtable-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.15.1
4
+ version: 1.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -37,10 +37,10 @@ dependencies:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
39
  version: '1.0'
40
- description: Cloud Bigtable is a fully managed, scalable NoSQL database service for
41
- large analytical and operational workloads. Note that google-cloud-bigtable-v2 is
42
- a version-specific client library. For most uses, we recommend installing the main
43
- client library google-cloud-bigtable instead. See the readme for more details.
40
+ description: API for reading and writing the contents of Bigtable tables associated
41
+ with a Google Cloud project. Note that google-cloud-bigtable-v2 is a version-specific
42
+ client library. For most uses, we recommend installing the main client library google-cloud-bigtable
43
+ instead. See the readme for more details.
44
44
  email: googleapis-packages@google.com
45
45
  executables: []
46
46
  extensions: []
@@ -66,6 +66,10 @@ files:
66
66
  - lib/google/cloud/bigtable/v2/bigtable/credentials.rb
67
67
  - lib/google/cloud/bigtable/v2/bigtable/helpers.rb
68
68
  - lib/google/cloud/bigtable/v2/bigtable/paths.rb
69
+ - lib/google/cloud/bigtable/v2/bigtable/rest.rb
70
+ - lib/google/cloud/bigtable/v2/bigtable/rest/client.rb
71
+ - lib/google/cloud/bigtable/v2/bigtable/rest/service_stub.rb
72
+ - lib/google/cloud/bigtable/v2/rest.rb
69
73
  - lib/google/cloud/bigtable/v2/version.rb
70
74
  - proto_docs/README.md
71
75
  - proto_docs/google/api/client.rb