google-cloud-bigtable 2.30.0__py3-none-any.whl
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.
- google/cloud/bigtable/__init__.py +25 -0
- google/cloud/bigtable/app_profile.py +377 -0
- google/cloud/bigtable/backup.py +490 -0
- google/cloud/bigtable/batcher.py +414 -0
- google/cloud/bigtable/client.py +475 -0
- google/cloud/bigtable/cluster.py +541 -0
- google/cloud/bigtable/column_family.py +362 -0
- google/cloud/bigtable/data/__init__.py +103 -0
- google/cloud/bigtable/data/_async/__init__.py +25 -0
- google/cloud/bigtable/data/_async/_mutate_rows.py +226 -0
- google/cloud/bigtable/data/_async/_read_rows.py +363 -0
- google/cloud/bigtable/data/_async/client.py +1522 -0
- google/cloud/bigtable/data/_async/mutations_batcher.py +534 -0
- google/cloud/bigtable/data/_cross_sync/__init__.py +20 -0
- google/cloud/bigtable/data/_cross_sync/_decorators.py +441 -0
- google/cloud/bigtable/data/_cross_sync/_mapping_meta.py +64 -0
- google/cloud/bigtable/data/_cross_sync/cross_sync.py +334 -0
- google/cloud/bigtable/data/_helpers.py +249 -0
- google/cloud/bigtable/data/_sync_autogen/_mutate_rows.py +182 -0
- google/cloud/bigtable/data/_sync_autogen/_read_rows.py +304 -0
- google/cloud/bigtable/data/_sync_autogen/client.py +1293 -0
- google/cloud/bigtable/data/_sync_autogen/mutations_batcher.py +449 -0
- google/cloud/bigtable/data/exceptions.py +340 -0
- google/cloud/bigtable/data/execute_query/__init__.py +43 -0
- google/cloud/bigtable/data/execute_query/_async/__init__.py +13 -0
- google/cloud/bigtable/data/execute_query/_async/execute_query_iterator.py +291 -0
- google/cloud/bigtable/data/execute_query/_byte_cursor.py +123 -0
- google/cloud/bigtable/data/execute_query/_checksum.py +43 -0
- google/cloud/bigtable/data/execute_query/_parameters_formatting.py +155 -0
- google/cloud/bigtable/data/execute_query/_query_result_parsing_utils.py +134 -0
- google/cloud/bigtable/data/execute_query/_reader.py +122 -0
- google/cloud/bigtable/data/execute_query/_sync_autogen/execute_query_iterator.py +239 -0
- google/cloud/bigtable/data/execute_query/metadata.py +399 -0
- google/cloud/bigtable/data/execute_query/values.py +123 -0
- google/cloud/bigtable/data/mutations.py +380 -0
- google/cloud/bigtable/data/read_modify_write_rules.py +112 -0
- google/cloud/bigtable/data/read_rows_query.py +536 -0
- google/cloud/bigtable/data/row.py +535 -0
- google/cloud/bigtable/data/row_filters.py +968 -0
- google/cloud/bigtable/encryption_info.py +64 -0
- google/cloud/bigtable/enums.py +223 -0
- google/cloud/bigtable/error.py +64 -0
- google/cloud/bigtable/gapic_version.py +16 -0
- google/cloud/bigtable/helpers.py +31 -0
- google/cloud/bigtable/instance.py +789 -0
- google/cloud/bigtable/policy.py +255 -0
- google/cloud/bigtable/row.py +1267 -0
- google/cloud/bigtable/row_data.py +380 -0
- google/cloud/bigtable/row_filters.py +838 -0
- google/cloud/bigtable/row_merger.py +250 -0
- google/cloud/bigtable/row_set.py +213 -0
- google/cloud/bigtable/table.py +1409 -0
- google/cloud/bigtable_admin/__init__.py +410 -0
- google/cloud/bigtable_admin/gapic_version.py +16 -0
- google/cloud/bigtable_admin/py.typed +2 -0
- google/cloud/bigtable_admin_v2/__init__.py +250 -0
- google/cloud/bigtable_admin_v2/gapic_metadata.json +962 -0
- google/cloud/bigtable_admin_v2/gapic_version.py +16 -0
- google/cloud/bigtable_admin_v2/py.typed +2 -0
- google/cloud/bigtable_admin_v2/services/__init__.py +15 -0
- google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/__init__.py +22 -0
- google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/async_client.py +3465 -0
- google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/client.py +3944 -0
- google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/pagers.py +681 -0
- google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/transports/__init__.py +40 -0
- google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/transports/base.py +751 -0
- google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/transports/grpc.py +1249 -0
- google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/transports/grpc_asyncio.py +1579 -0
- google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/transports/rest.py +6820 -0
- google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/transports/rest_base.py +1746 -0
- google/cloud/bigtable_admin_v2/services/bigtable_table_admin/__init__.py +22 -0
- google/cloud/bigtable_admin_v2/services/bigtable_table_admin/async_client.py +3472 -0
- google/cloud/bigtable_admin_v2/services/bigtable_table_admin/client.py +3949 -0
- google/cloud/bigtable_admin_v2/services/bigtable_table_admin/pagers.py +669 -0
- google/cloud/bigtable_admin_v2/services/bigtable_table_admin/transports/__init__.py +40 -0
- google/cloud/bigtable_admin_v2/services/bigtable_table_admin/transports/base.py +708 -0
- google/cloud/bigtable_admin_v2/services/bigtable_table_admin/transports/grpc.py +1257 -0
- google/cloud/bigtable_admin_v2/services/bigtable_table_admin/transports/grpc_asyncio.py +1549 -0
- google/cloud/bigtable_admin_v2/services/bigtable_table_admin/transports/rest.py +6609 -0
- google/cloud/bigtable_admin_v2/services/bigtable_table_admin/transports/rest_base.py +1714 -0
- google/cloud/bigtable_admin_v2/types/__init__.py +248 -0
- google/cloud/bigtable_admin_v2/types/bigtable_instance_admin.py +1364 -0
- google/cloud/bigtable_admin_v2/types/bigtable_table_admin.py +1715 -0
- google/cloud/bigtable_admin_v2/types/common.py +81 -0
- google/cloud/bigtable_admin_v2/types/instance.py +819 -0
- google/cloud/bigtable_admin_v2/types/table.py +1028 -0
- google/cloud/bigtable_admin_v2/types/types.py +776 -0
- google/cloud/bigtable_v2/__init__.py +136 -0
- google/cloud/bigtable_v2/gapic_metadata.json +193 -0
- google/cloud/bigtable_v2/gapic_version.py +16 -0
- google/cloud/bigtable_v2/py.typed +2 -0
- google/cloud/bigtable_v2/services/__init__.py +15 -0
- google/cloud/bigtable_v2/services/bigtable/__init__.py +22 -0
- google/cloud/bigtable_v2/services/bigtable/async_client.py +1741 -0
- google/cloud/bigtable_v2/services/bigtable/client.py +2194 -0
- google/cloud/bigtable_v2/services/bigtable/transports/__init__.py +38 -0
- google/cloud/bigtable_v2/services/bigtable/transports/base.py +343 -0
- google/cloud/bigtable_v2/services/bigtable/transports/grpc.py +660 -0
- google/cloud/bigtable_v2/services/bigtable/transports/grpc_asyncio.py +762 -0
- google/cloud/bigtable_v2/services/bigtable/transports/rest.py +2489 -0
- google/cloud/bigtable_v2/services/bigtable/transports/rest_base.py +711 -0
- google/cloud/bigtable_v2/types/__init__.py +138 -0
- google/cloud/bigtable_v2/types/bigtable.py +1531 -0
- google/cloud/bigtable_v2/types/data.py +1612 -0
- google/cloud/bigtable_v2/types/feature_flags.py +119 -0
- google/cloud/bigtable_v2/types/request_stats.py +171 -0
- google/cloud/bigtable_v2/types/response_params.py +64 -0
- google/cloud/bigtable_v2/types/types.py +579 -0
- google_cloud_bigtable-2.30.0.data/scripts/fixup_bigtable_admin_v2_keywords.py +233 -0
- google_cloud_bigtable-2.30.0.data/scripts/fixup_bigtable_v2_keywords.py +186 -0
- google_cloud_bigtable-2.30.0.dist-info/LICENSE +202 -0
- google_cloud_bigtable-2.30.0.dist-info/METADATA +154 -0
- google_cloud_bigtable-2.30.0.dist-info/RECORD +115 -0
- google_cloud_bigtable-2.30.0.dist-info/WHEEL +5 -0
- google_cloud_bigtable-2.30.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,708 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Copyright 2024 Google LLC
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
# you may not use this file except in compliance with the License.
|
|
6
|
+
# You may obtain a copy of the License at
|
|
7
|
+
#
|
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
#
|
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
# See the License for the specific language governing permissions and
|
|
14
|
+
# limitations under the License.
|
|
15
|
+
#
|
|
16
|
+
import abc
|
|
17
|
+
from typing import Awaitable, Callable, Dict, Optional, Sequence, Union
|
|
18
|
+
|
|
19
|
+
from google.cloud.bigtable_admin_v2 import gapic_version as package_version
|
|
20
|
+
|
|
21
|
+
import google.auth # type: ignore
|
|
22
|
+
import google.api_core
|
|
23
|
+
from google.api_core import exceptions as core_exceptions
|
|
24
|
+
from google.api_core import gapic_v1
|
|
25
|
+
from google.api_core import retry as retries
|
|
26
|
+
from google.api_core import operations_v1
|
|
27
|
+
from google.auth import credentials as ga_credentials # type: ignore
|
|
28
|
+
from google.oauth2 import service_account # type: ignore
|
|
29
|
+
|
|
30
|
+
from google.cloud.bigtable_admin_v2.types import bigtable_table_admin
|
|
31
|
+
from google.cloud.bigtable_admin_v2.types import table
|
|
32
|
+
from google.cloud.bigtable_admin_v2.types import table as gba_table
|
|
33
|
+
from google.iam.v1 import iam_policy_pb2 # type: ignore
|
|
34
|
+
from google.iam.v1 import policy_pb2 # type: ignore
|
|
35
|
+
from google.longrunning import operations_pb2 # type: ignore
|
|
36
|
+
from google.protobuf import empty_pb2 # type: ignore
|
|
37
|
+
|
|
38
|
+
DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
|
|
39
|
+
gapic_version=package_version.__version__
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
class BigtableTableAdminTransport(abc.ABC):
|
|
44
|
+
"""Abstract transport class for BigtableTableAdmin."""
|
|
45
|
+
|
|
46
|
+
AUTH_SCOPES = (
|
|
47
|
+
"https://www.googleapis.com/auth/bigtable.admin",
|
|
48
|
+
"https://www.googleapis.com/auth/bigtable.admin.table",
|
|
49
|
+
"https://www.googleapis.com/auth/cloud-bigtable.admin",
|
|
50
|
+
"https://www.googleapis.com/auth/cloud-bigtable.admin.table",
|
|
51
|
+
"https://www.googleapis.com/auth/cloud-platform",
|
|
52
|
+
"https://www.googleapis.com/auth/cloud-platform.read-only",
|
|
53
|
+
)
|
|
54
|
+
|
|
55
|
+
DEFAULT_HOST: str = "bigtableadmin.googleapis.com"
|
|
56
|
+
|
|
57
|
+
def __init__(
|
|
58
|
+
self,
|
|
59
|
+
*,
|
|
60
|
+
host: str = DEFAULT_HOST,
|
|
61
|
+
credentials: Optional[ga_credentials.Credentials] = None,
|
|
62
|
+
credentials_file: Optional[str] = None,
|
|
63
|
+
scopes: Optional[Sequence[str]] = None,
|
|
64
|
+
quota_project_id: Optional[str] = None,
|
|
65
|
+
client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
|
|
66
|
+
always_use_jwt_access: Optional[bool] = False,
|
|
67
|
+
api_audience: Optional[str] = None,
|
|
68
|
+
**kwargs,
|
|
69
|
+
) -> None:
|
|
70
|
+
"""Instantiate the transport.
|
|
71
|
+
|
|
72
|
+
Args:
|
|
73
|
+
host (Optional[str]):
|
|
74
|
+
The hostname to connect to (default: 'bigtableadmin.googleapis.com').
|
|
75
|
+
credentials (Optional[google.auth.credentials.Credentials]): The
|
|
76
|
+
authorization credentials to attach to requests. These
|
|
77
|
+
credentials identify the application to the service; if none
|
|
78
|
+
are specified, the client will attempt to ascertain the
|
|
79
|
+
credentials from the environment.
|
|
80
|
+
credentials_file (Optional[str]): A file with credentials that can
|
|
81
|
+
be loaded with :func:`google.auth.load_credentials_from_file`.
|
|
82
|
+
This argument is mutually exclusive with credentials.
|
|
83
|
+
scopes (Optional[Sequence[str]]): A list of scopes.
|
|
84
|
+
quota_project_id (Optional[str]): An optional project to use for billing
|
|
85
|
+
and quota.
|
|
86
|
+
client_info (google.api_core.gapic_v1.client_info.ClientInfo):
|
|
87
|
+
The client info used to send a user-agent string along with
|
|
88
|
+
API requests. If ``None``, then default info will be used.
|
|
89
|
+
Generally, you only need to set this if you're developing
|
|
90
|
+
your own client library.
|
|
91
|
+
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
|
|
92
|
+
be used for service account credentials.
|
|
93
|
+
"""
|
|
94
|
+
|
|
95
|
+
scopes_kwargs = {"scopes": scopes, "default_scopes": self.AUTH_SCOPES}
|
|
96
|
+
|
|
97
|
+
# Save the scopes.
|
|
98
|
+
self._scopes = scopes
|
|
99
|
+
if not hasattr(self, "_ignore_credentials"):
|
|
100
|
+
self._ignore_credentials: bool = False
|
|
101
|
+
|
|
102
|
+
# If no credentials are provided, then determine the appropriate
|
|
103
|
+
# defaults.
|
|
104
|
+
if credentials and credentials_file:
|
|
105
|
+
raise core_exceptions.DuplicateCredentialArgs(
|
|
106
|
+
"'credentials_file' and 'credentials' are mutually exclusive"
|
|
107
|
+
)
|
|
108
|
+
|
|
109
|
+
if credentials_file is not None:
|
|
110
|
+
credentials, _ = google.auth.load_credentials_from_file(
|
|
111
|
+
credentials_file, **scopes_kwargs, quota_project_id=quota_project_id
|
|
112
|
+
)
|
|
113
|
+
elif credentials is None and not self._ignore_credentials:
|
|
114
|
+
credentials, _ = google.auth.default(
|
|
115
|
+
**scopes_kwargs, quota_project_id=quota_project_id
|
|
116
|
+
)
|
|
117
|
+
# Don't apply audience if the credentials file passed from user.
|
|
118
|
+
if hasattr(credentials, "with_gdch_audience"):
|
|
119
|
+
credentials = credentials.with_gdch_audience(
|
|
120
|
+
api_audience if api_audience else host
|
|
121
|
+
)
|
|
122
|
+
|
|
123
|
+
# If the credentials are service account credentials, then always try to use self signed JWT.
|
|
124
|
+
if (
|
|
125
|
+
always_use_jwt_access
|
|
126
|
+
and isinstance(credentials, service_account.Credentials)
|
|
127
|
+
and hasattr(service_account.Credentials, "with_always_use_jwt_access")
|
|
128
|
+
):
|
|
129
|
+
credentials = credentials.with_always_use_jwt_access(True)
|
|
130
|
+
|
|
131
|
+
# Save the credentials.
|
|
132
|
+
self._credentials = credentials
|
|
133
|
+
|
|
134
|
+
# Save the hostname. Default to port 443 (HTTPS) if none is specified.
|
|
135
|
+
if ":" not in host:
|
|
136
|
+
host += ":443"
|
|
137
|
+
self._host = host
|
|
138
|
+
|
|
139
|
+
@property
|
|
140
|
+
def host(self):
|
|
141
|
+
return self._host
|
|
142
|
+
|
|
143
|
+
def _prep_wrapped_messages(self, client_info):
|
|
144
|
+
# Precompute the wrapped methods.
|
|
145
|
+
self._wrapped_methods = {
|
|
146
|
+
self.create_table: gapic_v1.method.wrap_method(
|
|
147
|
+
self.create_table,
|
|
148
|
+
default_timeout=300.0,
|
|
149
|
+
client_info=client_info,
|
|
150
|
+
),
|
|
151
|
+
self.create_table_from_snapshot: gapic_v1.method.wrap_method(
|
|
152
|
+
self.create_table_from_snapshot,
|
|
153
|
+
default_timeout=None,
|
|
154
|
+
client_info=client_info,
|
|
155
|
+
),
|
|
156
|
+
self.list_tables: gapic_v1.method.wrap_method(
|
|
157
|
+
self.list_tables,
|
|
158
|
+
default_retry=retries.Retry(
|
|
159
|
+
initial=1.0,
|
|
160
|
+
maximum=60.0,
|
|
161
|
+
multiplier=2,
|
|
162
|
+
predicate=retries.if_exception_type(
|
|
163
|
+
core_exceptions.DeadlineExceeded,
|
|
164
|
+
core_exceptions.ServiceUnavailable,
|
|
165
|
+
),
|
|
166
|
+
deadline=60.0,
|
|
167
|
+
),
|
|
168
|
+
default_timeout=60.0,
|
|
169
|
+
client_info=client_info,
|
|
170
|
+
),
|
|
171
|
+
self.get_table: gapic_v1.method.wrap_method(
|
|
172
|
+
self.get_table,
|
|
173
|
+
default_retry=retries.Retry(
|
|
174
|
+
initial=1.0,
|
|
175
|
+
maximum=60.0,
|
|
176
|
+
multiplier=2,
|
|
177
|
+
predicate=retries.if_exception_type(
|
|
178
|
+
core_exceptions.DeadlineExceeded,
|
|
179
|
+
core_exceptions.ServiceUnavailable,
|
|
180
|
+
),
|
|
181
|
+
deadline=60.0,
|
|
182
|
+
),
|
|
183
|
+
default_timeout=60.0,
|
|
184
|
+
client_info=client_info,
|
|
185
|
+
),
|
|
186
|
+
self.update_table: gapic_v1.method.wrap_method(
|
|
187
|
+
self.update_table,
|
|
188
|
+
default_timeout=None,
|
|
189
|
+
client_info=client_info,
|
|
190
|
+
),
|
|
191
|
+
self.delete_table: gapic_v1.method.wrap_method(
|
|
192
|
+
self.delete_table,
|
|
193
|
+
default_timeout=300.0,
|
|
194
|
+
client_info=client_info,
|
|
195
|
+
),
|
|
196
|
+
self.undelete_table: gapic_v1.method.wrap_method(
|
|
197
|
+
self.undelete_table,
|
|
198
|
+
default_timeout=None,
|
|
199
|
+
client_info=client_info,
|
|
200
|
+
),
|
|
201
|
+
self.create_authorized_view: gapic_v1.method.wrap_method(
|
|
202
|
+
self.create_authorized_view,
|
|
203
|
+
default_timeout=None,
|
|
204
|
+
client_info=client_info,
|
|
205
|
+
),
|
|
206
|
+
self.list_authorized_views: gapic_v1.method.wrap_method(
|
|
207
|
+
self.list_authorized_views,
|
|
208
|
+
default_timeout=None,
|
|
209
|
+
client_info=client_info,
|
|
210
|
+
),
|
|
211
|
+
self.get_authorized_view: gapic_v1.method.wrap_method(
|
|
212
|
+
self.get_authorized_view,
|
|
213
|
+
default_timeout=None,
|
|
214
|
+
client_info=client_info,
|
|
215
|
+
),
|
|
216
|
+
self.update_authorized_view: gapic_v1.method.wrap_method(
|
|
217
|
+
self.update_authorized_view,
|
|
218
|
+
default_timeout=None,
|
|
219
|
+
client_info=client_info,
|
|
220
|
+
),
|
|
221
|
+
self.delete_authorized_view: gapic_v1.method.wrap_method(
|
|
222
|
+
self.delete_authorized_view,
|
|
223
|
+
default_timeout=None,
|
|
224
|
+
client_info=client_info,
|
|
225
|
+
),
|
|
226
|
+
self.modify_column_families: gapic_v1.method.wrap_method(
|
|
227
|
+
self.modify_column_families,
|
|
228
|
+
default_timeout=300.0,
|
|
229
|
+
client_info=client_info,
|
|
230
|
+
),
|
|
231
|
+
self.drop_row_range: gapic_v1.method.wrap_method(
|
|
232
|
+
self.drop_row_range,
|
|
233
|
+
default_timeout=3600.0,
|
|
234
|
+
client_info=client_info,
|
|
235
|
+
),
|
|
236
|
+
self.generate_consistency_token: gapic_v1.method.wrap_method(
|
|
237
|
+
self.generate_consistency_token,
|
|
238
|
+
default_retry=retries.Retry(
|
|
239
|
+
initial=1.0,
|
|
240
|
+
maximum=60.0,
|
|
241
|
+
multiplier=2,
|
|
242
|
+
predicate=retries.if_exception_type(
|
|
243
|
+
core_exceptions.DeadlineExceeded,
|
|
244
|
+
core_exceptions.ServiceUnavailable,
|
|
245
|
+
),
|
|
246
|
+
deadline=60.0,
|
|
247
|
+
),
|
|
248
|
+
default_timeout=60.0,
|
|
249
|
+
client_info=client_info,
|
|
250
|
+
),
|
|
251
|
+
self.check_consistency: gapic_v1.method.wrap_method(
|
|
252
|
+
self.check_consistency,
|
|
253
|
+
default_retry=retries.Retry(
|
|
254
|
+
initial=1.0,
|
|
255
|
+
maximum=60.0,
|
|
256
|
+
multiplier=2,
|
|
257
|
+
predicate=retries.if_exception_type(
|
|
258
|
+
core_exceptions.DeadlineExceeded,
|
|
259
|
+
core_exceptions.ServiceUnavailable,
|
|
260
|
+
),
|
|
261
|
+
deadline=3600.0,
|
|
262
|
+
),
|
|
263
|
+
default_timeout=3600.0,
|
|
264
|
+
client_info=client_info,
|
|
265
|
+
),
|
|
266
|
+
self.snapshot_table: gapic_v1.method.wrap_method(
|
|
267
|
+
self.snapshot_table,
|
|
268
|
+
default_timeout=None,
|
|
269
|
+
client_info=client_info,
|
|
270
|
+
),
|
|
271
|
+
self.get_snapshot: gapic_v1.method.wrap_method(
|
|
272
|
+
self.get_snapshot,
|
|
273
|
+
default_retry=retries.Retry(
|
|
274
|
+
initial=1.0,
|
|
275
|
+
maximum=60.0,
|
|
276
|
+
multiplier=2,
|
|
277
|
+
predicate=retries.if_exception_type(
|
|
278
|
+
core_exceptions.DeadlineExceeded,
|
|
279
|
+
core_exceptions.ServiceUnavailable,
|
|
280
|
+
),
|
|
281
|
+
deadline=60.0,
|
|
282
|
+
),
|
|
283
|
+
default_timeout=60.0,
|
|
284
|
+
client_info=client_info,
|
|
285
|
+
),
|
|
286
|
+
self.list_snapshots: gapic_v1.method.wrap_method(
|
|
287
|
+
self.list_snapshots,
|
|
288
|
+
default_retry=retries.Retry(
|
|
289
|
+
initial=1.0,
|
|
290
|
+
maximum=60.0,
|
|
291
|
+
multiplier=2,
|
|
292
|
+
predicate=retries.if_exception_type(
|
|
293
|
+
core_exceptions.DeadlineExceeded,
|
|
294
|
+
core_exceptions.ServiceUnavailable,
|
|
295
|
+
),
|
|
296
|
+
deadline=60.0,
|
|
297
|
+
),
|
|
298
|
+
default_timeout=60.0,
|
|
299
|
+
client_info=client_info,
|
|
300
|
+
),
|
|
301
|
+
self.delete_snapshot: gapic_v1.method.wrap_method(
|
|
302
|
+
self.delete_snapshot,
|
|
303
|
+
default_timeout=300.0,
|
|
304
|
+
client_info=client_info,
|
|
305
|
+
),
|
|
306
|
+
self.create_backup: gapic_v1.method.wrap_method(
|
|
307
|
+
self.create_backup,
|
|
308
|
+
default_timeout=60.0,
|
|
309
|
+
client_info=client_info,
|
|
310
|
+
),
|
|
311
|
+
self.get_backup: gapic_v1.method.wrap_method(
|
|
312
|
+
self.get_backup,
|
|
313
|
+
default_retry=retries.Retry(
|
|
314
|
+
initial=1.0,
|
|
315
|
+
maximum=60.0,
|
|
316
|
+
multiplier=2,
|
|
317
|
+
predicate=retries.if_exception_type(
|
|
318
|
+
core_exceptions.DeadlineExceeded,
|
|
319
|
+
core_exceptions.ServiceUnavailable,
|
|
320
|
+
),
|
|
321
|
+
deadline=60.0,
|
|
322
|
+
),
|
|
323
|
+
default_timeout=60.0,
|
|
324
|
+
client_info=client_info,
|
|
325
|
+
),
|
|
326
|
+
self.update_backup: gapic_v1.method.wrap_method(
|
|
327
|
+
self.update_backup,
|
|
328
|
+
default_timeout=60.0,
|
|
329
|
+
client_info=client_info,
|
|
330
|
+
),
|
|
331
|
+
self.delete_backup: gapic_v1.method.wrap_method(
|
|
332
|
+
self.delete_backup,
|
|
333
|
+
default_timeout=300.0,
|
|
334
|
+
client_info=client_info,
|
|
335
|
+
),
|
|
336
|
+
self.list_backups: gapic_v1.method.wrap_method(
|
|
337
|
+
self.list_backups,
|
|
338
|
+
default_retry=retries.Retry(
|
|
339
|
+
initial=1.0,
|
|
340
|
+
maximum=60.0,
|
|
341
|
+
multiplier=2,
|
|
342
|
+
predicate=retries.if_exception_type(
|
|
343
|
+
core_exceptions.DeadlineExceeded,
|
|
344
|
+
core_exceptions.ServiceUnavailable,
|
|
345
|
+
),
|
|
346
|
+
deadline=60.0,
|
|
347
|
+
),
|
|
348
|
+
default_timeout=60.0,
|
|
349
|
+
client_info=client_info,
|
|
350
|
+
),
|
|
351
|
+
self.restore_table: gapic_v1.method.wrap_method(
|
|
352
|
+
self.restore_table,
|
|
353
|
+
default_timeout=60.0,
|
|
354
|
+
client_info=client_info,
|
|
355
|
+
),
|
|
356
|
+
self.copy_backup: gapic_v1.method.wrap_method(
|
|
357
|
+
self.copy_backup,
|
|
358
|
+
default_timeout=None,
|
|
359
|
+
client_info=client_info,
|
|
360
|
+
),
|
|
361
|
+
self.get_iam_policy: gapic_v1.method.wrap_method(
|
|
362
|
+
self.get_iam_policy,
|
|
363
|
+
default_retry=retries.Retry(
|
|
364
|
+
initial=1.0,
|
|
365
|
+
maximum=60.0,
|
|
366
|
+
multiplier=2,
|
|
367
|
+
predicate=retries.if_exception_type(
|
|
368
|
+
core_exceptions.DeadlineExceeded,
|
|
369
|
+
core_exceptions.ServiceUnavailable,
|
|
370
|
+
),
|
|
371
|
+
deadline=60.0,
|
|
372
|
+
),
|
|
373
|
+
default_timeout=60.0,
|
|
374
|
+
client_info=client_info,
|
|
375
|
+
),
|
|
376
|
+
self.set_iam_policy: gapic_v1.method.wrap_method(
|
|
377
|
+
self.set_iam_policy,
|
|
378
|
+
default_timeout=60.0,
|
|
379
|
+
client_info=client_info,
|
|
380
|
+
),
|
|
381
|
+
self.test_iam_permissions: gapic_v1.method.wrap_method(
|
|
382
|
+
self.test_iam_permissions,
|
|
383
|
+
default_retry=retries.Retry(
|
|
384
|
+
initial=1.0,
|
|
385
|
+
maximum=60.0,
|
|
386
|
+
multiplier=2,
|
|
387
|
+
predicate=retries.if_exception_type(
|
|
388
|
+
core_exceptions.DeadlineExceeded,
|
|
389
|
+
core_exceptions.ServiceUnavailable,
|
|
390
|
+
),
|
|
391
|
+
deadline=60.0,
|
|
392
|
+
),
|
|
393
|
+
default_timeout=60.0,
|
|
394
|
+
client_info=client_info,
|
|
395
|
+
),
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
def close(self):
|
|
399
|
+
"""Closes resources associated with the transport.
|
|
400
|
+
|
|
401
|
+
.. warning::
|
|
402
|
+
Only call this method if the transport is NOT shared
|
|
403
|
+
with other clients - this may cause errors in other clients!
|
|
404
|
+
"""
|
|
405
|
+
raise NotImplementedError()
|
|
406
|
+
|
|
407
|
+
@property
|
|
408
|
+
def operations_client(self):
|
|
409
|
+
"""Return the client designed to process long-running operations."""
|
|
410
|
+
raise NotImplementedError()
|
|
411
|
+
|
|
412
|
+
@property
|
|
413
|
+
def create_table(
|
|
414
|
+
self,
|
|
415
|
+
) -> Callable[
|
|
416
|
+
[bigtable_table_admin.CreateTableRequest],
|
|
417
|
+
Union[gba_table.Table, Awaitable[gba_table.Table]],
|
|
418
|
+
]:
|
|
419
|
+
raise NotImplementedError()
|
|
420
|
+
|
|
421
|
+
@property
|
|
422
|
+
def create_table_from_snapshot(
|
|
423
|
+
self,
|
|
424
|
+
) -> Callable[
|
|
425
|
+
[bigtable_table_admin.CreateTableFromSnapshotRequest],
|
|
426
|
+
Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]],
|
|
427
|
+
]:
|
|
428
|
+
raise NotImplementedError()
|
|
429
|
+
|
|
430
|
+
@property
|
|
431
|
+
def list_tables(
|
|
432
|
+
self,
|
|
433
|
+
) -> Callable[
|
|
434
|
+
[bigtable_table_admin.ListTablesRequest],
|
|
435
|
+
Union[
|
|
436
|
+
bigtable_table_admin.ListTablesResponse,
|
|
437
|
+
Awaitable[bigtable_table_admin.ListTablesResponse],
|
|
438
|
+
],
|
|
439
|
+
]:
|
|
440
|
+
raise NotImplementedError()
|
|
441
|
+
|
|
442
|
+
@property
|
|
443
|
+
def get_table(
|
|
444
|
+
self,
|
|
445
|
+
) -> Callable[
|
|
446
|
+
[bigtable_table_admin.GetTableRequest],
|
|
447
|
+
Union[table.Table, Awaitable[table.Table]],
|
|
448
|
+
]:
|
|
449
|
+
raise NotImplementedError()
|
|
450
|
+
|
|
451
|
+
@property
|
|
452
|
+
def update_table(
|
|
453
|
+
self,
|
|
454
|
+
) -> Callable[
|
|
455
|
+
[bigtable_table_admin.UpdateTableRequest],
|
|
456
|
+
Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]],
|
|
457
|
+
]:
|
|
458
|
+
raise NotImplementedError()
|
|
459
|
+
|
|
460
|
+
@property
|
|
461
|
+
def delete_table(
|
|
462
|
+
self,
|
|
463
|
+
) -> Callable[
|
|
464
|
+
[bigtable_table_admin.DeleteTableRequest],
|
|
465
|
+
Union[empty_pb2.Empty, Awaitable[empty_pb2.Empty]],
|
|
466
|
+
]:
|
|
467
|
+
raise NotImplementedError()
|
|
468
|
+
|
|
469
|
+
@property
|
|
470
|
+
def undelete_table(
|
|
471
|
+
self,
|
|
472
|
+
) -> Callable[
|
|
473
|
+
[bigtable_table_admin.UndeleteTableRequest],
|
|
474
|
+
Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]],
|
|
475
|
+
]:
|
|
476
|
+
raise NotImplementedError()
|
|
477
|
+
|
|
478
|
+
@property
|
|
479
|
+
def create_authorized_view(
|
|
480
|
+
self,
|
|
481
|
+
) -> Callable[
|
|
482
|
+
[bigtable_table_admin.CreateAuthorizedViewRequest],
|
|
483
|
+
Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]],
|
|
484
|
+
]:
|
|
485
|
+
raise NotImplementedError()
|
|
486
|
+
|
|
487
|
+
@property
|
|
488
|
+
def list_authorized_views(
|
|
489
|
+
self,
|
|
490
|
+
) -> Callable[
|
|
491
|
+
[bigtable_table_admin.ListAuthorizedViewsRequest],
|
|
492
|
+
Union[
|
|
493
|
+
bigtable_table_admin.ListAuthorizedViewsResponse,
|
|
494
|
+
Awaitable[bigtable_table_admin.ListAuthorizedViewsResponse],
|
|
495
|
+
],
|
|
496
|
+
]:
|
|
497
|
+
raise NotImplementedError()
|
|
498
|
+
|
|
499
|
+
@property
|
|
500
|
+
def get_authorized_view(
|
|
501
|
+
self,
|
|
502
|
+
) -> Callable[
|
|
503
|
+
[bigtable_table_admin.GetAuthorizedViewRequest],
|
|
504
|
+
Union[table.AuthorizedView, Awaitable[table.AuthorizedView]],
|
|
505
|
+
]:
|
|
506
|
+
raise NotImplementedError()
|
|
507
|
+
|
|
508
|
+
@property
|
|
509
|
+
def update_authorized_view(
|
|
510
|
+
self,
|
|
511
|
+
) -> Callable[
|
|
512
|
+
[bigtable_table_admin.UpdateAuthorizedViewRequest],
|
|
513
|
+
Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]],
|
|
514
|
+
]:
|
|
515
|
+
raise NotImplementedError()
|
|
516
|
+
|
|
517
|
+
@property
|
|
518
|
+
def delete_authorized_view(
|
|
519
|
+
self,
|
|
520
|
+
) -> Callable[
|
|
521
|
+
[bigtable_table_admin.DeleteAuthorizedViewRequest],
|
|
522
|
+
Union[empty_pb2.Empty, Awaitable[empty_pb2.Empty]],
|
|
523
|
+
]:
|
|
524
|
+
raise NotImplementedError()
|
|
525
|
+
|
|
526
|
+
@property
|
|
527
|
+
def modify_column_families(
|
|
528
|
+
self,
|
|
529
|
+
) -> Callable[
|
|
530
|
+
[bigtable_table_admin.ModifyColumnFamiliesRequest],
|
|
531
|
+
Union[table.Table, Awaitable[table.Table]],
|
|
532
|
+
]:
|
|
533
|
+
raise NotImplementedError()
|
|
534
|
+
|
|
535
|
+
@property
|
|
536
|
+
def drop_row_range(
|
|
537
|
+
self,
|
|
538
|
+
) -> Callable[
|
|
539
|
+
[bigtable_table_admin.DropRowRangeRequest],
|
|
540
|
+
Union[empty_pb2.Empty, Awaitable[empty_pb2.Empty]],
|
|
541
|
+
]:
|
|
542
|
+
raise NotImplementedError()
|
|
543
|
+
|
|
544
|
+
@property
|
|
545
|
+
def generate_consistency_token(
|
|
546
|
+
self,
|
|
547
|
+
) -> Callable[
|
|
548
|
+
[bigtable_table_admin.GenerateConsistencyTokenRequest],
|
|
549
|
+
Union[
|
|
550
|
+
bigtable_table_admin.GenerateConsistencyTokenResponse,
|
|
551
|
+
Awaitable[bigtable_table_admin.GenerateConsistencyTokenResponse],
|
|
552
|
+
],
|
|
553
|
+
]:
|
|
554
|
+
raise NotImplementedError()
|
|
555
|
+
|
|
556
|
+
@property
|
|
557
|
+
def check_consistency(
|
|
558
|
+
self,
|
|
559
|
+
) -> Callable[
|
|
560
|
+
[bigtable_table_admin.CheckConsistencyRequest],
|
|
561
|
+
Union[
|
|
562
|
+
bigtable_table_admin.CheckConsistencyResponse,
|
|
563
|
+
Awaitable[bigtable_table_admin.CheckConsistencyResponse],
|
|
564
|
+
],
|
|
565
|
+
]:
|
|
566
|
+
raise NotImplementedError()
|
|
567
|
+
|
|
568
|
+
@property
|
|
569
|
+
def snapshot_table(
|
|
570
|
+
self,
|
|
571
|
+
) -> Callable[
|
|
572
|
+
[bigtable_table_admin.SnapshotTableRequest],
|
|
573
|
+
Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]],
|
|
574
|
+
]:
|
|
575
|
+
raise NotImplementedError()
|
|
576
|
+
|
|
577
|
+
@property
|
|
578
|
+
def get_snapshot(
|
|
579
|
+
self,
|
|
580
|
+
) -> Callable[
|
|
581
|
+
[bigtable_table_admin.GetSnapshotRequest],
|
|
582
|
+
Union[table.Snapshot, Awaitable[table.Snapshot]],
|
|
583
|
+
]:
|
|
584
|
+
raise NotImplementedError()
|
|
585
|
+
|
|
586
|
+
@property
|
|
587
|
+
def list_snapshots(
|
|
588
|
+
self,
|
|
589
|
+
) -> Callable[
|
|
590
|
+
[bigtable_table_admin.ListSnapshotsRequest],
|
|
591
|
+
Union[
|
|
592
|
+
bigtable_table_admin.ListSnapshotsResponse,
|
|
593
|
+
Awaitable[bigtable_table_admin.ListSnapshotsResponse],
|
|
594
|
+
],
|
|
595
|
+
]:
|
|
596
|
+
raise NotImplementedError()
|
|
597
|
+
|
|
598
|
+
@property
|
|
599
|
+
def delete_snapshot(
|
|
600
|
+
self,
|
|
601
|
+
) -> Callable[
|
|
602
|
+
[bigtable_table_admin.DeleteSnapshotRequest],
|
|
603
|
+
Union[empty_pb2.Empty, Awaitable[empty_pb2.Empty]],
|
|
604
|
+
]:
|
|
605
|
+
raise NotImplementedError()
|
|
606
|
+
|
|
607
|
+
@property
|
|
608
|
+
def create_backup(
|
|
609
|
+
self,
|
|
610
|
+
) -> Callable[
|
|
611
|
+
[bigtable_table_admin.CreateBackupRequest],
|
|
612
|
+
Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]],
|
|
613
|
+
]:
|
|
614
|
+
raise NotImplementedError()
|
|
615
|
+
|
|
616
|
+
@property
|
|
617
|
+
def get_backup(
|
|
618
|
+
self,
|
|
619
|
+
) -> Callable[
|
|
620
|
+
[bigtable_table_admin.GetBackupRequest],
|
|
621
|
+
Union[table.Backup, Awaitable[table.Backup]],
|
|
622
|
+
]:
|
|
623
|
+
raise NotImplementedError()
|
|
624
|
+
|
|
625
|
+
@property
|
|
626
|
+
def update_backup(
|
|
627
|
+
self,
|
|
628
|
+
) -> Callable[
|
|
629
|
+
[bigtable_table_admin.UpdateBackupRequest],
|
|
630
|
+
Union[table.Backup, Awaitable[table.Backup]],
|
|
631
|
+
]:
|
|
632
|
+
raise NotImplementedError()
|
|
633
|
+
|
|
634
|
+
@property
|
|
635
|
+
def delete_backup(
|
|
636
|
+
self,
|
|
637
|
+
) -> Callable[
|
|
638
|
+
[bigtable_table_admin.DeleteBackupRequest],
|
|
639
|
+
Union[empty_pb2.Empty, Awaitable[empty_pb2.Empty]],
|
|
640
|
+
]:
|
|
641
|
+
raise NotImplementedError()
|
|
642
|
+
|
|
643
|
+
@property
|
|
644
|
+
def list_backups(
|
|
645
|
+
self,
|
|
646
|
+
) -> Callable[
|
|
647
|
+
[bigtable_table_admin.ListBackupsRequest],
|
|
648
|
+
Union[
|
|
649
|
+
bigtable_table_admin.ListBackupsResponse,
|
|
650
|
+
Awaitable[bigtable_table_admin.ListBackupsResponse],
|
|
651
|
+
],
|
|
652
|
+
]:
|
|
653
|
+
raise NotImplementedError()
|
|
654
|
+
|
|
655
|
+
@property
|
|
656
|
+
def restore_table(
|
|
657
|
+
self,
|
|
658
|
+
) -> Callable[
|
|
659
|
+
[bigtable_table_admin.RestoreTableRequest],
|
|
660
|
+
Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]],
|
|
661
|
+
]:
|
|
662
|
+
raise NotImplementedError()
|
|
663
|
+
|
|
664
|
+
@property
|
|
665
|
+
def copy_backup(
|
|
666
|
+
self,
|
|
667
|
+
) -> Callable[
|
|
668
|
+
[bigtable_table_admin.CopyBackupRequest],
|
|
669
|
+
Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]],
|
|
670
|
+
]:
|
|
671
|
+
raise NotImplementedError()
|
|
672
|
+
|
|
673
|
+
@property
|
|
674
|
+
def get_iam_policy(
|
|
675
|
+
self,
|
|
676
|
+
) -> Callable[
|
|
677
|
+
[iam_policy_pb2.GetIamPolicyRequest],
|
|
678
|
+
Union[policy_pb2.Policy, Awaitable[policy_pb2.Policy]],
|
|
679
|
+
]:
|
|
680
|
+
raise NotImplementedError()
|
|
681
|
+
|
|
682
|
+
@property
|
|
683
|
+
def set_iam_policy(
|
|
684
|
+
self,
|
|
685
|
+
) -> Callable[
|
|
686
|
+
[iam_policy_pb2.SetIamPolicyRequest],
|
|
687
|
+
Union[policy_pb2.Policy, Awaitable[policy_pb2.Policy]],
|
|
688
|
+
]:
|
|
689
|
+
raise NotImplementedError()
|
|
690
|
+
|
|
691
|
+
@property
|
|
692
|
+
def test_iam_permissions(
|
|
693
|
+
self,
|
|
694
|
+
) -> Callable[
|
|
695
|
+
[iam_policy_pb2.TestIamPermissionsRequest],
|
|
696
|
+
Union[
|
|
697
|
+
iam_policy_pb2.TestIamPermissionsResponse,
|
|
698
|
+
Awaitable[iam_policy_pb2.TestIamPermissionsResponse],
|
|
699
|
+
],
|
|
700
|
+
]:
|
|
701
|
+
raise NotImplementedError()
|
|
702
|
+
|
|
703
|
+
@property
|
|
704
|
+
def kind(self) -> str:
|
|
705
|
+
raise NotImplementedError()
|
|
706
|
+
|
|
707
|
+
|
|
708
|
+
__all__ = ("BigtableTableAdminTransport",)
|