google-cloud-bigtable-v2 1.10.0 → 1.11.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.
- checksums.yaml +4 -4
- data/lib/google/bigtable/v2/feature_flags_pb.rb +1 -1
- data/lib/google/bigtable/v2/peer_info_pb.rb +43 -0
- data/lib/google/bigtable/v2/response_params_pb.rb +1 -1
- data/lib/google/cloud/bigtable/v2/bigtable/client.rb +20 -3
- data/lib/google/cloud/bigtable/v2/version.rb +1 -1
- data/proto_docs/google/bigtable/v2/feature_flags.rb +3 -0
- data/proto_docs/google/bigtable/v2/peer_info.rb +81 -0
- data/proto_docs/google/bigtable/v2/response_params.rb +3 -0
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3c70f03c7cd48b01806a241592a41d61de7aaa162f3a62d61cfb0e4ac5ecf991
|
|
4
|
+
data.tar.gz: b16d07527e8b9aef7502c8de218b0c0f28a62ef92ef86fcf05534dce41d770d8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9f0aac993036412e2d56727d7db71e38bff60508032b954ae7b257845a82e7f9abc407d5093958fbbf6460db2ff7dbc37b5883b9a8d9d791197d78f2fe1a9364
|
|
7
|
+
data.tar.gz: b1ad339c1ccea14308977b4e952010aab8f1b52b61c16494a09d95a2e30a8408c28c98dda2b3ce8d5fe1c9e330837875c22f19ff3378f142dbcaa932d8e12ade
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
require 'google/protobuf'
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
descriptor_data = "\n&google/bigtable/v2/feature_flags.proto\x12\x12google.bigtable.v2\"\
|
|
8
|
+
descriptor_data = "\n&google/bigtable/v2/feature_flags.proto\x12\x12google.bigtable.v2\"\xb1\x02\n\x0c\x46\x65\x61tureFlags\x12\x15\n\rreverse_scans\x18\x01 \x01(\x08\x12\x1e\n\x16mutate_rows_rate_limit\x18\x03 \x01(\x08\x12\x1f\n\x17mutate_rows_rate_limit2\x18\x05 \x01(\x08\x12\"\n\x1alast_scanned_row_responses\x18\x04 \x01(\x08\x12\x16\n\x0erouting_cookie\x18\x06 \x01(\x08\x12\x12\n\nretry_info\x18\x07 \x01(\x08\x12#\n\x1b\x63lient_side_metrics_enabled\x18\x08 \x01(\x08\x12 \n\x18traffic_director_enabled\x18\t \x01(\x08\x12\x1f\n\x17\x64irect_access_requested\x18\n \x01(\x08\x12\x11\n\tpeer_info\x18\x0b \x01(\x08\x42\xbb\x01\n\x16\x63om.google.bigtable.v2B\x11\x46\x65\x61tureFlagsProtoP\x01Z8cloud.google.com/go/bigtable/apiv2/bigtablepb;bigtablepb\xaa\x02\x18Google.Cloud.Bigtable.V2\xca\x02\x18Google\\Cloud\\Bigtable\\V2\xea\x02\x1bGoogle::Cloud::Bigtable::V2b\x06proto3"
|
|
9
9
|
|
|
10
10
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
11
11
|
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: google/bigtable/v2/peer_info.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
descriptor_data = "\n\"google/bigtable/v2/peer_info.proto\x12\x12google.bigtable.v2\"\xfa\x03\n\x08PeerInfo\x12\x1a\n\x12google_frontend_id\x18\x01 \x01(\x03\x12\x1f\n\x17\x61pplication_frontend_id\x18\x02 \x01(\x03\x12!\n\x19\x61pplication_frontend_zone\x18\x03 \x01(\t\x12$\n\x1c\x61pplication_frontend_subzone\x18\x04 \x01(\t\x12\x42\n\x0etransport_type\x18\x05 \x01(\x0e\x32*.google.bigtable.v2.PeerInfo.TransportType\"\xa3\x02\n\rTransportType\x12\x1a\n\x16TRANSPORT_TYPE_UNKNOWN\x10\x00\x12\x1b\n\x17TRANSPORT_TYPE_EXTERNAL\x10\x01\x12\x1d\n\x19TRANSPORT_TYPE_CLOUD_PATH\x10\x02\x12 \n\x1cTRANSPORT_TYPE_DIRECT_ACCESS\x10\x03\x12\"\n\x1eTRANSPORT_TYPE_SESSION_UNKNOWN\x10\x04\x12#\n\x1fTRANSPORT_TYPE_SESSION_EXTERNAL\x10\x05\x12%\n!TRANSPORT_TYPE_SESSION_CLOUD_PATH\x10\x06\x12(\n$TRANSPORT_TYPE_SESSION_DIRECT_ACCESS\x10\x07\x42\xb7\x01\n\x16\x63om.google.bigtable.v2B\rPeerInfoProtoP\x01Z8cloud.google.com/go/bigtable/apiv2/bigtablepb;bigtablepb\xaa\x02\x18Google.Cloud.Bigtable.V2\xca\x02\x18Google\\Cloud\\Bigtable\\V2\xea\x02\x1bGoogle::Cloud::Bigtable::V2b\x06proto3"
|
|
9
|
+
|
|
10
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
11
|
+
|
|
12
|
+
begin
|
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
|
14
|
+
rescue TypeError
|
|
15
|
+
# Compatibility code: will be removed in the next major version.
|
|
16
|
+
require 'google/protobuf/descriptor_pb'
|
|
17
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
18
|
+
parsed.clear_dependency
|
|
19
|
+
serialized = parsed.class.encode(parsed)
|
|
20
|
+
file = pool.add_serialized_file(serialized)
|
|
21
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
22
|
+
imports = [
|
|
23
|
+
]
|
|
24
|
+
imports.each do |type_name, expected_filename|
|
|
25
|
+
import_file = pool.lookup(type_name).file_descriptor
|
|
26
|
+
if import_file.name != expected_filename
|
|
27
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
|
31
|
+
warn "This will become an error in the next major version."
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
module Google
|
|
35
|
+
module Cloud
|
|
36
|
+
module Bigtable
|
|
37
|
+
module V2
|
|
38
|
+
PeerInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.PeerInfo").msgclass
|
|
39
|
+
PeerInfo::TransportType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.v2.PeerInfo.TransportType").enummodule
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
require 'google/protobuf'
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
descriptor_data = "\n(google/bigtable/v2/response_params.proto\x12\x12google.bigtable.v2\"
|
|
8
|
+
descriptor_data = "\n(google/bigtable/v2/response_params.proto\x12\x12google.bigtable.v2\"z\n\x0eResponseParams\x12\x14\n\x07zone_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x17\n\ncluster_id\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06\x61\x66\x65_id\x18\x03 \x01(\x03H\x02\x88\x01\x01\x42\n\n\x08_zone_idB\r\n\x0b_cluster_idB\t\n\x07_afe_idB\xbd\x01\n\x16\x63om.google.bigtable.v2B\x13ResponseParamsProtoP\x01Z8cloud.google.com/go/bigtable/apiv2/bigtablepb;bigtablepb\xaa\x02\x18Google.Cloud.Bigtable.V2\xca\x02\x18Google\\Cloud\\Bigtable\\V2\xea\x02\x1bGoogle::Cloud::Bigtable::V2b\x06proto3"
|
|
9
9
|
|
|
10
10
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
11
11
|
|
|
@@ -1579,8 +1579,6 @@ module Google
|
|
|
1579
1579
|
# @return [::String,nil]
|
|
1580
1580
|
# @!attribute [rw] credentials
|
|
1581
1581
|
# Credentials to send with calls. You may provide any of the following types:
|
|
1582
|
-
# * (`String`) The path to a service account key file in JSON format
|
|
1583
|
-
# * (`Hash`) A service account key as a Hash
|
|
1584
1582
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
1585
1583
|
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
1586
1584
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
@@ -1589,7 +1587,26 @@ module Google
|
|
|
1589
1587
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
1590
1588
|
# * (`nil`) indicating no credentials
|
|
1591
1589
|
#
|
|
1592
|
-
# Warning:
|
|
1590
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
1591
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
1592
|
+
# Google APIs can compromise the security of your systems and data.
|
|
1593
|
+
#
|
|
1594
|
+
# @example
|
|
1595
|
+
#
|
|
1596
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
1597
|
+
# # on the appropriate credentials class for your environment.
|
|
1598
|
+
#
|
|
1599
|
+
# require "googleauth"
|
|
1600
|
+
#
|
|
1601
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
1602
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
1603
|
+
# )
|
|
1604
|
+
#
|
|
1605
|
+
# client = ::Google::Cloud::Bigtable::V2::Bigtable::Client.new do |config|
|
|
1606
|
+
# config.credentials = credentials
|
|
1607
|
+
# end
|
|
1608
|
+
#
|
|
1609
|
+
# @note Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
1593
1610
|
# external source for authentication to Google Cloud, you must validate it before
|
|
1594
1611
|
# providing it to a Google API client library. Providing an unvalidated credential
|
|
1595
1612
|
# configuration to Google APIs can compromise the security of your systems and data.
|
|
@@ -64,6 +64,9 @@ module Google
|
|
|
64
64
|
# @!attribute [rw] direct_access_requested
|
|
65
65
|
# @return [::Boolean]
|
|
66
66
|
# Notify the server that the client explicitly opted in for Direct Access.
|
|
67
|
+
# @!attribute [rw] peer_info
|
|
68
|
+
# @return [::Boolean]
|
|
69
|
+
# If the client can support using BigtablePeerInfo.
|
|
67
70
|
class FeatureFlags
|
|
68
71
|
include ::Google::Protobuf::MessageExts
|
|
69
72
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2025 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
|
+
# PeerInfo contains information about the peer that the client is
|
|
25
|
+
# connecting to.
|
|
26
|
+
# @!attribute [rw] google_frontend_id
|
|
27
|
+
# @return [::Integer]
|
|
28
|
+
# An opaque identifier for the Google Frontend which serviced this request.
|
|
29
|
+
# Only set when not using DirectAccess.
|
|
30
|
+
# @!attribute [rw] application_frontend_id
|
|
31
|
+
# @return [::Integer]
|
|
32
|
+
# An opaque identifier for the application frontend which serviced this
|
|
33
|
+
# request.
|
|
34
|
+
# @!attribute [rw] application_frontend_zone
|
|
35
|
+
# @return [::String]
|
|
36
|
+
# The Cloud zone of the application frontend that served this request.
|
|
37
|
+
# @!attribute [rw] application_frontend_subzone
|
|
38
|
+
# @return [::String]
|
|
39
|
+
# The subzone of the application frontend that served this request, e.g. an
|
|
40
|
+
# identifier for where within the zone the application frontend is.
|
|
41
|
+
# @!attribute [rw] transport_type
|
|
42
|
+
# @return [::Google::Cloud::Bigtable::V2::PeerInfo::TransportType]
|
|
43
|
+
class PeerInfo
|
|
44
|
+
include ::Google::Protobuf::MessageExts
|
|
45
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
46
|
+
|
|
47
|
+
# The transport type that the client used to connect to this peer.
|
|
48
|
+
module TransportType
|
|
49
|
+
# The transport type is unknown.
|
|
50
|
+
TRANSPORT_TYPE_UNKNOWN = 0
|
|
51
|
+
|
|
52
|
+
# The client connected to this peer via an external network
|
|
53
|
+
# (e.g. outside Google Coud).
|
|
54
|
+
TRANSPORT_TYPE_EXTERNAL = 1
|
|
55
|
+
|
|
56
|
+
# The client connected to this peer via CloudPath.
|
|
57
|
+
TRANSPORT_TYPE_CLOUD_PATH = 2
|
|
58
|
+
|
|
59
|
+
# The client connected to this peer via DirectAccess.
|
|
60
|
+
TRANSPORT_TYPE_DIRECT_ACCESS = 3
|
|
61
|
+
|
|
62
|
+
# The client connected to this peer via Bigtable Sessions using an unknown
|
|
63
|
+
# transport type.
|
|
64
|
+
TRANSPORT_TYPE_SESSION_UNKNOWN = 4
|
|
65
|
+
|
|
66
|
+
# The client connected to this peer via Bigtable Sessions on an external
|
|
67
|
+
# network (e.g. outside Google Cloud).
|
|
68
|
+
TRANSPORT_TYPE_SESSION_EXTERNAL = 5
|
|
69
|
+
|
|
70
|
+
# The client connected to this peer via Bigtable Sessions using CloudPath.
|
|
71
|
+
TRANSPORT_TYPE_SESSION_CLOUD_PATH = 6
|
|
72
|
+
|
|
73
|
+
# The client connected to this peer via Bigtable Sessions using
|
|
74
|
+
# DirectAccess.
|
|
75
|
+
TRANSPORT_TYPE_SESSION_DIRECT_ACCESS = 7
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
end
|
|
@@ -29,6 +29,9 @@ module Google
|
|
|
29
29
|
# @return [::String]
|
|
30
30
|
# Identifier for a cluster that represents set of
|
|
31
31
|
# bigtable resources.
|
|
32
|
+
# @!attribute [rw] afe_id
|
|
33
|
+
# @return [::Integer]
|
|
34
|
+
# The AFE ID for the AFE that is served this request.
|
|
32
35
|
class ResponseParams
|
|
33
36
|
include ::Google::Protobuf::MessageExts
|
|
34
37
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
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.
|
|
4
|
+
version: 1.11.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -55,6 +55,7 @@ files:
|
|
|
55
55
|
- lib/google/bigtable/v2/bigtable_services_pb.rb
|
|
56
56
|
- lib/google/bigtable/v2/data_pb.rb
|
|
57
57
|
- lib/google/bigtable/v2/feature_flags_pb.rb
|
|
58
|
+
- lib/google/bigtable/v2/peer_info_pb.rb
|
|
58
59
|
- lib/google/bigtable/v2/request_stats_pb.rb
|
|
59
60
|
- lib/google/bigtable/v2/response_params_pb.rb
|
|
60
61
|
- lib/google/bigtable/v2/types_pb.rb
|
|
@@ -74,6 +75,7 @@ files:
|
|
|
74
75
|
- proto_docs/google/bigtable/v2/bigtable.rb
|
|
75
76
|
- proto_docs/google/bigtable/v2/data.rb
|
|
76
77
|
- proto_docs/google/bigtable/v2/feature_flags.rb
|
|
78
|
+
- proto_docs/google/bigtable/v2/peer_info.rb
|
|
77
79
|
- proto_docs/google/bigtable/v2/request_stats.rb
|
|
78
80
|
- proto_docs/google/bigtable/v2/response_params.rb
|
|
79
81
|
- proto_docs/google/bigtable/v2/types.rb
|