Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit 7c5d29d

Browse files
authored
feat: Consistency polling + restore table for sync client in admin (#1117)
* feat: Prototyped handwritten layer * Added newlines * linting * Added docstrings for restore table and consistency token polling; removed gc_rule
1 parent 46cf3b4 commit 7c5d29d

7 files changed

Lines changed: 640 additions & 0 deletions

File tree

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Copyright 2025 Google LLC.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
#
15+
# This directory and all its subdirectories are the only handwritten
16+
# components of the otherwise autogenerated google/cloud/bigtable/admin_v2.
17+
# The purpose of the overlay directory is to add additional functionality to
18+
# the autogenerated library while preserving its developer experience. These
19+
# handwritten additions currently consist of the following:
20+
#
21+
# 1. TODO: Document final GcRule design choice here
22+
# 2. An LRO class for restore_table that exposes an Operation for
23+
# OptimizeRestoreTable, if that LRO exists.
24+
# 3. New methods (wait_for_consistency and wait_for_replication) that return
25+
# a polling future class for automatically polling check_consistency.
26+
#
27+
# This directory is structured to mirror that of a typical autogenerated library (e.g.
28+
# services/types subdirectories), and the aforementioned handwritten additions are
29+
# currently implemented as either types under overlay/types or in methods in an overwritten
30+
# client class under overlay/services.
31+
32+
from .types import (
33+
RestoreTableOperation,
34+
CheckConsistencyPollingFuture,
35+
)
36+
37+
from .services.bigtable_table_admin import (
38+
BigtableTableAdminClient,
39+
)
40+
41+
__all__ = (
42+
"RestoreTableOperation",
43+
"CheckConsistencyPollingFuture",
44+
"BigtableTableAdminClient",
45+
)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Copyright 2025 Google LLC.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Copyright 2025 Google LLC.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# TODO: Add the async client after owlbot changes.
16+
17+
from .client import BigtableTableAdminClient
18+
19+
__all__ = ("BigtableTableAdminClient",)

0 commit comments

Comments
 (0)