google-cloud-bigtable-admin-v2 1.6.0 → 1.7.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f067b1921237963550519ac7fe09d2cf3c51a8ea107eb0be14841f0736cba7c8
|
4
|
+
data.tar.gz: f0997a901d9475630f967b8f633d2595452d6b093e588e6e4faed84a2ac249c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75fb714b320e7981e1af418d88ce387364a0ca0b652a13e9b447033d29c24866830d7716a63773e0da7ad7dbc86c9336fd908b6e2accea14dfaa96624f396b85
|
7
|
+
data.tar.gz: e2ad6abb83dfd8ded7ef8e9003950999463ab665f9e635a531a9758f152860f568bf54a47821ccada80d15deeb3797b995afca68fc3a19e3ebfc2b700ffccdf2
|
@@ -14,6 +14,7 @@
|
|
14
14
|
# See the License for the specific language governing permissions and
|
15
15
|
# limitations under the License.
|
16
16
|
|
17
|
+
require "gapic/common/polling_harness"
|
17
18
|
|
18
19
|
module Google
|
19
20
|
module Cloud
|
@@ -103,6 +104,56 @@ module Google
|
|
103
104
|
"To suppress this warning, explicitly clear GcRule##{last} to nil first."
|
104
105
|
end
|
105
106
|
end
|
107
|
+
|
108
|
+
module BigtableTableAdmin
|
109
|
+
class Client # rubocop:disable Style/Documentation
|
110
|
+
##
|
111
|
+
# Wait until the given table consistently reflects mutations up
|
112
|
+
# to this point.
|
113
|
+
#
|
114
|
+
# @param name [String] The table name, in the form
|
115
|
+
# `projects/{project}/instances/{instance}/tables/{table}`.
|
116
|
+
# @param consistency_token [String] A consistency token
|
117
|
+
# identifying the mutations to be checked. If not provided,
|
118
|
+
# one is generated automatically.
|
119
|
+
# @param retry_policy [Gapic::Common::RetryPolicy] A retry policy.
|
120
|
+
# If not provided, uses the given initial_delay, max_delay,
|
121
|
+
# multipler, timeout, and retry_codes.
|
122
|
+
# @param initial_delay [Numeric] Initial delay in seconds.
|
123
|
+
# Defaults to 1.
|
124
|
+
# @param max_delay [Numeric] Maximum delay in seconds.
|
125
|
+
# Defaults to 15.
|
126
|
+
# @param multiplier [Numeric] The delay scaling factor for each
|
127
|
+
# subsequent retry attempt. Defaults to 1.3.
|
128
|
+
# @param retry_codes [Array<String|Integer>] List of retry codes.
|
129
|
+
# @param timeout [Numeric] Timeout threshold value in seconds.
|
130
|
+
# Defaults to 3600 (1 hour).
|
131
|
+
#
|
132
|
+
# @return [nil] If the table is now consistent.
|
133
|
+
# @return [String] The consistency token if the wait timed out.
|
134
|
+
# The returned token can be passed into another call to wait
|
135
|
+
# again for the same mutation set.
|
136
|
+
#
|
137
|
+
def wait_for_replication name, consistency_token: nil,
|
138
|
+
retry_policy: nil,
|
139
|
+
initial_delay: nil,
|
140
|
+
max_delay: nil,
|
141
|
+
multiplier: nil,
|
142
|
+
retry_codes: nil,
|
143
|
+
timeout: nil,
|
144
|
+
mock_delay: false
|
145
|
+
consistency_token ||= generate_consistency_token(name: name).consistency_token
|
146
|
+
poller = Gapic::Common::PollingHarness.new retry_policy: retry_policy,
|
147
|
+
initial_delay: initial_delay, max_delay: max_delay,
|
148
|
+
multiplier: multiplier, retry_codes: retry_codes,
|
149
|
+
timeout: timeout
|
150
|
+
poller.wait timeout_result: consistency_token, wait_sentinel: :wait, mock_delay: mock_delay do
|
151
|
+
response = check_consistency name: name, consistency_token: consistency_token
|
152
|
+
response.consistent ? nil : :wait
|
153
|
+
end
|
154
|
+
end
|
155
|
+
end
|
156
|
+
end
|
106
157
|
end
|
107
158
|
end
|
108
159
|
end
|
@@ -409,6 +409,14 @@ module Google
|
|
409
409
|
# @return [::Array<::String>]
|
410
410
|
# An allowlist of the fully qualified names of RPCs that should be included
|
411
411
|
# on public client surfaces.
|
412
|
+
# @!attribute [rw] generate_omitted_as_internal
|
413
|
+
# @return [::Boolean]
|
414
|
+
# Setting this to true indicates to the client generators that methods
|
415
|
+
# that would be excluded from the generation should instead be generated
|
416
|
+
# in a way that indicates these methods should not be consumed by
|
417
|
+
# end users. How this is expressed is up to individual language
|
418
|
+
# implementations to decide. Some examples may be: added annotations,
|
419
|
+
# obfuscated identifiers, or other language idiomatic patterns.
|
412
420
|
class SelectiveGapicGeneration
|
413
421
|
include ::Google::Protobuf::MessageExts
|
414
422
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-bigtable-admin-v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-01-
|
10
|
+
date: 2025-01-31 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: gapic-common
|
@@ -132,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
132
132
|
- !ruby/object:Gem::Version
|
133
133
|
version: '0'
|
134
134
|
requirements: []
|
135
|
-
rubygems_version: 3.6.
|
135
|
+
rubygems_version: 3.6.3
|
136
136
|
specification_version: 4
|
137
137
|
summary: Administer your Cloud Bigtable tables and instances.
|
138
138
|
test_files: []
|