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.
Files changed (115) hide show
  1. google/cloud/bigtable/__init__.py +25 -0
  2. google/cloud/bigtable/app_profile.py +377 -0
  3. google/cloud/bigtable/backup.py +490 -0
  4. google/cloud/bigtable/batcher.py +414 -0
  5. google/cloud/bigtable/client.py +475 -0
  6. google/cloud/bigtable/cluster.py +541 -0
  7. google/cloud/bigtable/column_family.py +362 -0
  8. google/cloud/bigtable/data/__init__.py +103 -0
  9. google/cloud/bigtable/data/_async/__init__.py +25 -0
  10. google/cloud/bigtable/data/_async/_mutate_rows.py +226 -0
  11. google/cloud/bigtable/data/_async/_read_rows.py +363 -0
  12. google/cloud/bigtable/data/_async/client.py +1522 -0
  13. google/cloud/bigtable/data/_async/mutations_batcher.py +534 -0
  14. google/cloud/bigtable/data/_cross_sync/__init__.py +20 -0
  15. google/cloud/bigtable/data/_cross_sync/_decorators.py +441 -0
  16. google/cloud/bigtable/data/_cross_sync/_mapping_meta.py +64 -0
  17. google/cloud/bigtable/data/_cross_sync/cross_sync.py +334 -0
  18. google/cloud/bigtable/data/_helpers.py +249 -0
  19. google/cloud/bigtable/data/_sync_autogen/_mutate_rows.py +182 -0
  20. google/cloud/bigtable/data/_sync_autogen/_read_rows.py +304 -0
  21. google/cloud/bigtable/data/_sync_autogen/client.py +1293 -0
  22. google/cloud/bigtable/data/_sync_autogen/mutations_batcher.py +449 -0
  23. google/cloud/bigtable/data/exceptions.py +340 -0
  24. google/cloud/bigtable/data/execute_query/__init__.py +43 -0
  25. google/cloud/bigtable/data/execute_query/_async/__init__.py +13 -0
  26. google/cloud/bigtable/data/execute_query/_async/execute_query_iterator.py +291 -0
  27. google/cloud/bigtable/data/execute_query/_byte_cursor.py +123 -0
  28. google/cloud/bigtable/data/execute_query/_checksum.py +43 -0
  29. google/cloud/bigtable/data/execute_query/_parameters_formatting.py +155 -0
  30. google/cloud/bigtable/data/execute_query/_query_result_parsing_utils.py +134 -0
  31. google/cloud/bigtable/data/execute_query/_reader.py +122 -0
  32. google/cloud/bigtable/data/execute_query/_sync_autogen/execute_query_iterator.py +239 -0
  33. google/cloud/bigtable/data/execute_query/metadata.py +399 -0
  34. google/cloud/bigtable/data/execute_query/values.py +123 -0
  35. google/cloud/bigtable/data/mutations.py +380 -0
  36. google/cloud/bigtable/data/read_modify_write_rules.py +112 -0
  37. google/cloud/bigtable/data/read_rows_query.py +536 -0
  38. google/cloud/bigtable/data/row.py +535 -0
  39. google/cloud/bigtable/data/row_filters.py +968 -0
  40. google/cloud/bigtable/encryption_info.py +64 -0
  41. google/cloud/bigtable/enums.py +223 -0
  42. google/cloud/bigtable/error.py +64 -0
  43. google/cloud/bigtable/gapic_version.py +16 -0
  44. google/cloud/bigtable/helpers.py +31 -0
  45. google/cloud/bigtable/instance.py +789 -0
  46. google/cloud/bigtable/policy.py +255 -0
  47. google/cloud/bigtable/row.py +1267 -0
  48. google/cloud/bigtable/row_data.py +380 -0
  49. google/cloud/bigtable/row_filters.py +838 -0
  50. google/cloud/bigtable/row_merger.py +250 -0
  51. google/cloud/bigtable/row_set.py +213 -0
  52. google/cloud/bigtable/table.py +1409 -0
  53. google/cloud/bigtable_admin/__init__.py +410 -0
  54. google/cloud/bigtable_admin/gapic_version.py +16 -0
  55. google/cloud/bigtable_admin/py.typed +2 -0
  56. google/cloud/bigtable_admin_v2/__init__.py +250 -0
  57. google/cloud/bigtable_admin_v2/gapic_metadata.json +962 -0
  58. google/cloud/bigtable_admin_v2/gapic_version.py +16 -0
  59. google/cloud/bigtable_admin_v2/py.typed +2 -0
  60. google/cloud/bigtable_admin_v2/services/__init__.py +15 -0
  61. google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/__init__.py +22 -0
  62. google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/async_client.py +3465 -0
  63. google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/client.py +3944 -0
  64. google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/pagers.py +681 -0
  65. google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/transports/__init__.py +40 -0
  66. google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/transports/base.py +751 -0
  67. google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/transports/grpc.py +1249 -0
  68. google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/transports/grpc_asyncio.py +1579 -0
  69. google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/transports/rest.py +6820 -0
  70. google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/transports/rest_base.py +1746 -0
  71. google/cloud/bigtable_admin_v2/services/bigtable_table_admin/__init__.py +22 -0
  72. google/cloud/bigtable_admin_v2/services/bigtable_table_admin/async_client.py +3472 -0
  73. google/cloud/bigtable_admin_v2/services/bigtable_table_admin/client.py +3949 -0
  74. google/cloud/bigtable_admin_v2/services/bigtable_table_admin/pagers.py +669 -0
  75. google/cloud/bigtable_admin_v2/services/bigtable_table_admin/transports/__init__.py +40 -0
  76. google/cloud/bigtable_admin_v2/services/bigtable_table_admin/transports/base.py +708 -0
  77. google/cloud/bigtable_admin_v2/services/bigtable_table_admin/transports/grpc.py +1257 -0
  78. google/cloud/bigtable_admin_v2/services/bigtable_table_admin/transports/grpc_asyncio.py +1549 -0
  79. google/cloud/bigtable_admin_v2/services/bigtable_table_admin/transports/rest.py +6609 -0
  80. google/cloud/bigtable_admin_v2/services/bigtable_table_admin/transports/rest_base.py +1714 -0
  81. google/cloud/bigtable_admin_v2/types/__init__.py +248 -0
  82. google/cloud/bigtable_admin_v2/types/bigtable_instance_admin.py +1364 -0
  83. google/cloud/bigtable_admin_v2/types/bigtable_table_admin.py +1715 -0
  84. google/cloud/bigtable_admin_v2/types/common.py +81 -0
  85. google/cloud/bigtable_admin_v2/types/instance.py +819 -0
  86. google/cloud/bigtable_admin_v2/types/table.py +1028 -0
  87. google/cloud/bigtable_admin_v2/types/types.py +776 -0
  88. google/cloud/bigtable_v2/__init__.py +136 -0
  89. google/cloud/bigtable_v2/gapic_metadata.json +193 -0
  90. google/cloud/bigtable_v2/gapic_version.py +16 -0
  91. google/cloud/bigtable_v2/py.typed +2 -0
  92. google/cloud/bigtable_v2/services/__init__.py +15 -0
  93. google/cloud/bigtable_v2/services/bigtable/__init__.py +22 -0
  94. google/cloud/bigtable_v2/services/bigtable/async_client.py +1741 -0
  95. google/cloud/bigtable_v2/services/bigtable/client.py +2194 -0
  96. google/cloud/bigtable_v2/services/bigtable/transports/__init__.py +38 -0
  97. google/cloud/bigtable_v2/services/bigtable/transports/base.py +343 -0
  98. google/cloud/bigtable_v2/services/bigtable/transports/grpc.py +660 -0
  99. google/cloud/bigtable_v2/services/bigtable/transports/grpc_asyncio.py +762 -0
  100. google/cloud/bigtable_v2/services/bigtable/transports/rest.py +2489 -0
  101. google/cloud/bigtable_v2/services/bigtable/transports/rest_base.py +711 -0
  102. google/cloud/bigtable_v2/types/__init__.py +138 -0
  103. google/cloud/bigtable_v2/types/bigtable.py +1531 -0
  104. google/cloud/bigtable_v2/types/data.py +1612 -0
  105. google/cloud/bigtable_v2/types/feature_flags.py +119 -0
  106. google/cloud/bigtable_v2/types/request_stats.py +171 -0
  107. google/cloud/bigtable_v2/types/response_params.py +64 -0
  108. google/cloud/bigtable_v2/types/types.py +579 -0
  109. google_cloud_bigtable-2.30.0.data/scripts/fixup_bigtable_admin_v2_keywords.py +233 -0
  110. google_cloud_bigtable-2.30.0.data/scripts/fixup_bigtable_v2_keywords.py +186 -0
  111. google_cloud_bigtable-2.30.0.dist-info/LICENSE +202 -0
  112. google_cloud_bigtable-2.30.0.dist-info/METADATA +154 -0
  113. google_cloud_bigtable-2.30.0.dist-info/RECORD +115 -0
  114. google_cloud_bigtable-2.30.0.dist-info/WHEEL +5 -0
  115. google_cloud_bigtable-2.30.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,751 @@
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_instance_admin
31
+ from google.cloud.bigtable_admin_v2.types import instance
32
+ from google.iam.v1 import iam_policy_pb2 # type: ignore
33
+ from google.iam.v1 import policy_pb2 # type: ignore
34
+ from google.longrunning import operations_pb2 # type: ignore
35
+ from google.protobuf import empty_pb2 # type: ignore
36
+
37
+ DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
38
+ gapic_version=package_version.__version__
39
+ )
40
+
41
+
42
+ class BigtableInstanceAdminTransport(abc.ABC):
43
+ """Abstract transport class for BigtableInstanceAdmin."""
44
+
45
+ AUTH_SCOPES = (
46
+ "https://www.googleapis.com/auth/bigtable.admin",
47
+ "https://www.googleapis.com/auth/bigtable.admin.cluster",
48
+ "https://www.googleapis.com/auth/bigtable.admin.instance",
49
+ "https://www.googleapis.com/auth/cloud-bigtable.admin",
50
+ "https://www.googleapis.com/auth/cloud-bigtable.admin.cluster",
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_instance: gapic_v1.method.wrap_method(
147
+ self.create_instance,
148
+ default_timeout=300.0,
149
+ client_info=client_info,
150
+ ),
151
+ self.get_instance: gapic_v1.method.wrap_method(
152
+ self.get_instance,
153
+ default_retry=retries.Retry(
154
+ initial=1.0,
155
+ maximum=60.0,
156
+ multiplier=2,
157
+ predicate=retries.if_exception_type(
158
+ core_exceptions.DeadlineExceeded,
159
+ core_exceptions.ServiceUnavailable,
160
+ ),
161
+ deadline=60.0,
162
+ ),
163
+ default_timeout=60.0,
164
+ client_info=client_info,
165
+ ),
166
+ self.list_instances: gapic_v1.method.wrap_method(
167
+ self.list_instances,
168
+ default_retry=retries.Retry(
169
+ initial=1.0,
170
+ maximum=60.0,
171
+ multiplier=2,
172
+ predicate=retries.if_exception_type(
173
+ core_exceptions.DeadlineExceeded,
174
+ core_exceptions.ServiceUnavailable,
175
+ ),
176
+ deadline=60.0,
177
+ ),
178
+ default_timeout=60.0,
179
+ client_info=client_info,
180
+ ),
181
+ self.update_instance: gapic_v1.method.wrap_method(
182
+ self.update_instance,
183
+ default_retry=retries.Retry(
184
+ initial=1.0,
185
+ maximum=60.0,
186
+ multiplier=2,
187
+ predicate=retries.if_exception_type(
188
+ core_exceptions.DeadlineExceeded,
189
+ core_exceptions.ServiceUnavailable,
190
+ ),
191
+ deadline=60.0,
192
+ ),
193
+ default_timeout=60.0,
194
+ client_info=client_info,
195
+ ),
196
+ self.partial_update_instance: gapic_v1.method.wrap_method(
197
+ self.partial_update_instance,
198
+ default_retry=retries.Retry(
199
+ initial=1.0,
200
+ maximum=60.0,
201
+ multiplier=2,
202
+ predicate=retries.if_exception_type(
203
+ core_exceptions.DeadlineExceeded,
204
+ core_exceptions.ServiceUnavailable,
205
+ ),
206
+ deadline=60.0,
207
+ ),
208
+ default_timeout=60.0,
209
+ client_info=client_info,
210
+ ),
211
+ self.delete_instance: gapic_v1.method.wrap_method(
212
+ self.delete_instance,
213
+ default_timeout=60.0,
214
+ client_info=client_info,
215
+ ),
216
+ self.create_cluster: gapic_v1.method.wrap_method(
217
+ self.create_cluster,
218
+ default_timeout=60.0,
219
+ client_info=client_info,
220
+ ),
221
+ self.get_cluster: gapic_v1.method.wrap_method(
222
+ self.get_cluster,
223
+ default_retry=retries.Retry(
224
+ initial=1.0,
225
+ maximum=60.0,
226
+ multiplier=2,
227
+ predicate=retries.if_exception_type(
228
+ core_exceptions.DeadlineExceeded,
229
+ core_exceptions.ServiceUnavailable,
230
+ ),
231
+ deadline=60.0,
232
+ ),
233
+ default_timeout=60.0,
234
+ client_info=client_info,
235
+ ),
236
+ self.list_clusters: gapic_v1.method.wrap_method(
237
+ self.list_clusters,
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.update_cluster: gapic_v1.method.wrap_method(
252
+ self.update_cluster,
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=60.0,
262
+ ),
263
+ default_timeout=60.0,
264
+ client_info=client_info,
265
+ ),
266
+ self.partial_update_cluster: gapic_v1.method.wrap_method(
267
+ self.partial_update_cluster,
268
+ default_timeout=None,
269
+ client_info=client_info,
270
+ ),
271
+ self.delete_cluster: gapic_v1.method.wrap_method(
272
+ self.delete_cluster,
273
+ default_timeout=60.0,
274
+ client_info=client_info,
275
+ ),
276
+ self.create_app_profile: gapic_v1.method.wrap_method(
277
+ self.create_app_profile,
278
+ default_timeout=60.0,
279
+ client_info=client_info,
280
+ ),
281
+ self.get_app_profile: gapic_v1.method.wrap_method(
282
+ self.get_app_profile,
283
+ default_retry=retries.Retry(
284
+ initial=1.0,
285
+ maximum=60.0,
286
+ multiplier=2,
287
+ predicate=retries.if_exception_type(
288
+ core_exceptions.DeadlineExceeded,
289
+ core_exceptions.ServiceUnavailable,
290
+ ),
291
+ deadline=60.0,
292
+ ),
293
+ default_timeout=60.0,
294
+ client_info=client_info,
295
+ ),
296
+ self.list_app_profiles: gapic_v1.method.wrap_method(
297
+ self.list_app_profiles,
298
+ default_retry=retries.Retry(
299
+ initial=1.0,
300
+ maximum=60.0,
301
+ multiplier=2,
302
+ predicate=retries.if_exception_type(
303
+ core_exceptions.DeadlineExceeded,
304
+ core_exceptions.ServiceUnavailable,
305
+ ),
306
+ deadline=60.0,
307
+ ),
308
+ default_timeout=60.0,
309
+ client_info=client_info,
310
+ ),
311
+ self.update_app_profile: gapic_v1.method.wrap_method(
312
+ self.update_app_profile,
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.delete_app_profile: gapic_v1.method.wrap_method(
327
+ self.delete_app_profile,
328
+ default_timeout=60.0,
329
+ client_info=client_info,
330
+ ),
331
+ self.get_iam_policy: gapic_v1.method.wrap_method(
332
+ self.get_iam_policy,
333
+ default_retry=retries.Retry(
334
+ initial=1.0,
335
+ maximum=60.0,
336
+ multiplier=2,
337
+ predicate=retries.if_exception_type(
338
+ core_exceptions.DeadlineExceeded,
339
+ core_exceptions.ServiceUnavailable,
340
+ ),
341
+ deadline=60.0,
342
+ ),
343
+ default_timeout=60.0,
344
+ client_info=client_info,
345
+ ),
346
+ self.set_iam_policy: gapic_v1.method.wrap_method(
347
+ self.set_iam_policy,
348
+ default_timeout=60.0,
349
+ client_info=client_info,
350
+ ),
351
+ self.test_iam_permissions: gapic_v1.method.wrap_method(
352
+ self.test_iam_permissions,
353
+ default_retry=retries.Retry(
354
+ initial=1.0,
355
+ maximum=60.0,
356
+ multiplier=2,
357
+ predicate=retries.if_exception_type(
358
+ core_exceptions.DeadlineExceeded,
359
+ core_exceptions.ServiceUnavailable,
360
+ ),
361
+ deadline=60.0,
362
+ ),
363
+ default_timeout=60.0,
364
+ client_info=client_info,
365
+ ),
366
+ self.list_hot_tablets: gapic_v1.method.wrap_method(
367
+ self.list_hot_tablets,
368
+ default_retry=retries.Retry(
369
+ initial=1.0,
370
+ maximum=60.0,
371
+ multiplier=2,
372
+ predicate=retries.if_exception_type(
373
+ core_exceptions.DeadlineExceeded,
374
+ core_exceptions.ServiceUnavailable,
375
+ ),
376
+ deadline=60.0,
377
+ ),
378
+ default_timeout=60.0,
379
+ client_info=client_info,
380
+ ),
381
+ self.create_logical_view: gapic_v1.method.wrap_method(
382
+ self.create_logical_view,
383
+ default_timeout=None,
384
+ client_info=client_info,
385
+ ),
386
+ self.get_logical_view: gapic_v1.method.wrap_method(
387
+ self.get_logical_view,
388
+ default_timeout=None,
389
+ client_info=client_info,
390
+ ),
391
+ self.list_logical_views: gapic_v1.method.wrap_method(
392
+ self.list_logical_views,
393
+ default_timeout=None,
394
+ client_info=client_info,
395
+ ),
396
+ self.update_logical_view: gapic_v1.method.wrap_method(
397
+ self.update_logical_view,
398
+ default_timeout=None,
399
+ client_info=client_info,
400
+ ),
401
+ self.delete_logical_view: gapic_v1.method.wrap_method(
402
+ self.delete_logical_view,
403
+ default_timeout=None,
404
+ client_info=client_info,
405
+ ),
406
+ self.create_materialized_view: gapic_v1.method.wrap_method(
407
+ self.create_materialized_view,
408
+ default_timeout=None,
409
+ client_info=client_info,
410
+ ),
411
+ self.get_materialized_view: gapic_v1.method.wrap_method(
412
+ self.get_materialized_view,
413
+ default_timeout=None,
414
+ client_info=client_info,
415
+ ),
416
+ self.list_materialized_views: gapic_v1.method.wrap_method(
417
+ self.list_materialized_views,
418
+ default_timeout=None,
419
+ client_info=client_info,
420
+ ),
421
+ self.update_materialized_view: gapic_v1.method.wrap_method(
422
+ self.update_materialized_view,
423
+ default_timeout=None,
424
+ client_info=client_info,
425
+ ),
426
+ self.delete_materialized_view: gapic_v1.method.wrap_method(
427
+ self.delete_materialized_view,
428
+ default_timeout=None,
429
+ client_info=client_info,
430
+ ),
431
+ }
432
+
433
+ def close(self):
434
+ """Closes resources associated with the transport.
435
+
436
+ .. warning::
437
+ Only call this method if the transport is NOT shared
438
+ with other clients - this may cause errors in other clients!
439
+ """
440
+ raise NotImplementedError()
441
+
442
+ @property
443
+ def operations_client(self):
444
+ """Return the client designed to process long-running operations."""
445
+ raise NotImplementedError()
446
+
447
+ @property
448
+ def create_instance(
449
+ self,
450
+ ) -> Callable[
451
+ [bigtable_instance_admin.CreateInstanceRequest],
452
+ Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]],
453
+ ]:
454
+ raise NotImplementedError()
455
+
456
+ @property
457
+ def get_instance(
458
+ self,
459
+ ) -> Callable[
460
+ [bigtable_instance_admin.GetInstanceRequest],
461
+ Union[instance.Instance, Awaitable[instance.Instance]],
462
+ ]:
463
+ raise NotImplementedError()
464
+
465
+ @property
466
+ def list_instances(
467
+ self,
468
+ ) -> Callable[
469
+ [bigtable_instance_admin.ListInstancesRequest],
470
+ Union[
471
+ bigtable_instance_admin.ListInstancesResponse,
472
+ Awaitable[bigtable_instance_admin.ListInstancesResponse],
473
+ ],
474
+ ]:
475
+ raise NotImplementedError()
476
+
477
+ @property
478
+ def update_instance(
479
+ self,
480
+ ) -> Callable[
481
+ [instance.Instance], Union[instance.Instance, Awaitable[instance.Instance]]
482
+ ]:
483
+ raise NotImplementedError()
484
+
485
+ @property
486
+ def partial_update_instance(
487
+ self,
488
+ ) -> Callable[
489
+ [bigtable_instance_admin.PartialUpdateInstanceRequest],
490
+ Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]],
491
+ ]:
492
+ raise NotImplementedError()
493
+
494
+ @property
495
+ def delete_instance(
496
+ self,
497
+ ) -> Callable[
498
+ [bigtable_instance_admin.DeleteInstanceRequest],
499
+ Union[empty_pb2.Empty, Awaitable[empty_pb2.Empty]],
500
+ ]:
501
+ raise NotImplementedError()
502
+
503
+ @property
504
+ def create_cluster(
505
+ self,
506
+ ) -> Callable[
507
+ [bigtable_instance_admin.CreateClusterRequest],
508
+ Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]],
509
+ ]:
510
+ raise NotImplementedError()
511
+
512
+ @property
513
+ def get_cluster(
514
+ self,
515
+ ) -> Callable[
516
+ [bigtable_instance_admin.GetClusterRequest],
517
+ Union[instance.Cluster, Awaitable[instance.Cluster]],
518
+ ]:
519
+ raise NotImplementedError()
520
+
521
+ @property
522
+ def list_clusters(
523
+ self,
524
+ ) -> Callable[
525
+ [bigtable_instance_admin.ListClustersRequest],
526
+ Union[
527
+ bigtable_instance_admin.ListClustersResponse,
528
+ Awaitable[bigtable_instance_admin.ListClustersResponse],
529
+ ],
530
+ ]:
531
+ raise NotImplementedError()
532
+
533
+ @property
534
+ def update_cluster(
535
+ self,
536
+ ) -> Callable[
537
+ [instance.Cluster],
538
+ Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]],
539
+ ]:
540
+ raise NotImplementedError()
541
+
542
+ @property
543
+ def partial_update_cluster(
544
+ self,
545
+ ) -> Callable[
546
+ [bigtable_instance_admin.PartialUpdateClusterRequest],
547
+ Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]],
548
+ ]:
549
+ raise NotImplementedError()
550
+
551
+ @property
552
+ def delete_cluster(
553
+ self,
554
+ ) -> Callable[
555
+ [bigtable_instance_admin.DeleteClusterRequest],
556
+ Union[empty_pb2.Empty, Awaitable[empty_pb2.Empty]],
557
+ ]:
558
+ raise NotImplementedError()
559
+
560
+ @property
561
+ def create_app_profile(
562
+ self,
563
+ ) -> Callable[
564
+ [bigtable_instance_admin.CreateAppProfileRequest],
565
+ Union[instance.AppProfile, Awaitable[instance.AppProfile]],
566
+ ]:
567
+ raise NotImplementedError()
568
+
569
+ @property
570
+ def get_app_profile(
571
+ self,
572
+ ) -> Callable[
573
+ [bigtable_instance_admin.GetAppProfileRequest],
574
+ Union[instance.AppProfile, Awaitable[instance.AppProfile]],
575
+ ]:
576
+ raise NotImplementedError()
577
+
578
+ @property
579
+ def list_app_profiles(
580
+ self,
581
+ ) -> Callable[
582
+ [bigtable_instance_admin.ListAppProfilesRequest],
583
+ Union[
584
+ bigtable_instance_admin.ListAppProfilesResponse,
585
+ Awaitable[bigtable_instance_admin.ListAppProfilesResponse],
586
+ ],
587
+ ]:
588
+ raise NotImplementedError()
589
+
590
+ @property
591
+ def update_app_profile(
592
+ self,
593
+ ) -> Callable[
594
+ [bigtable_instance_admin.UpdateAppProfileRequest],
595
+ Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]],
596
+ ]:
597
+ raise NotImplementedError()
598
+
599
+ @property
600
+ def delete_app_profile(
601
+ self,
602
+ ) -> Callable[
603
+ [bigtable_instance_admin.DeleteAppProfileRequest],
604
+ Union[empty_pb2.Empty, Awaitable[empty_pb2.Empty]],
605
+ ]:
606
+ raise NotImplementedError()
607
+
608
+ @property
609
+ def get_iam_policy(
610
+ self,
611
+ ) -> Callable[
612
+ [iam_policy_pb2.GetIamPolicyRequest],
613
+ Union[policy_pb2.Policy, Awaitable[policy_pb2.Policy]],
614
+ ]:
615
+ raise NotImplementedError()
616
+
617
+ @property
618
+ def set_iam_policy(
619
+ self,
620
+ ) -> Callable[
621
+ [iam_policy_pb2.SetIamPolicyRequest],
622
+ Union[policy_pb2.Policy, Awaitable[policy_pb2.Policy]],
623
+ ]:
624
+ raise NotImplementedError()
625
+
626
+ @property
627
+ def test_iam_permissions(
628
+ self,
629
+ ) -> Callable[
630
+ [iam_policy_pb2.TestIamPermissionsRequest],
631
+ Union[
632
+ iam_policy_pb2.TestIamPermissionsResponse,
633
+ Awaitable[iam_policy_pb2.TestIamPermissionsResponse],
634
+ ],
635
+ ]:
636
+ raise NotImplementedError()
637
+
638
+ @property
639
+ def list_hot_tablets(
640
+ self,
641
+ ) -> Callable[
642
+ [bigtable_instance_admin.ListHotTabletsRequest],
643
+ Union[
644
+ bigtable_instance_admin.ListHotTabletsResponse,
645
+ Awaitable[bigtable_instance_admin.ListHotTabletsResponse],
646
+ ],
647
+ ]:
648
+ raise NotImplementedError()
649
+
650
+ @property
651
+ def create_logical_view(
652
+ self,
653
+ ) -> Callable[
654
+ [bigtable_instance_admin.CreateLogicalViewRequest],
655
+ Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]],
656
+ ]:
657
+ raise NotImplementedError()
658
+
659
+ @property
660
+ def get_logical_view(
661
+ self,
662
+ ) -> Callable[
663
+ [bigtable_instance_admin.GetLogicalViewRequest],
664
+ Union[instance.LogicalView, Awaitable[instance.LogicalView]],
665
+ ]:
666
+ raise NotImplementedError()
667
+
668
+ @property
669
+ def list_logical_views(
670
+ self,
671
+ ) -> Callable[
672
+ [bigtable_instance_admin.ListLogicalViewsRequest],
673
+ Union[
674
+ bigtable_instance_admin.ListLogicalViewsResponse,
675
+ Awaitable[bigtable_instance_admin.ListLogicalViewsResponse],
676
+ ],
677
+ ]:
678
+ raise NotImplementedError()
679
+
680
+ @property
681
+ def update_logical_view(
682
+ self,
683
+ ) -> Callable[
684
+ [bigtable_instance_admin.UpdateLogicalViewRequest],
685
+ Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]],
686
+ ]:
687
+ raise NotImplementedError()
688
+
689
+ @property
690
+ def delete_logical_view(
691
+ self,
692
+ ) -> Callable[
693
+ [bigtable_instance_admin.DeleteLogicalViewRequest],
694
+ Union[empty_pb2.Empty, Awaitable[empty_pb2.Empty]],
695
+ ]:
696
+ raise NotImplementedError()
697
+
698
+ @property
699
+ def create_materialized_view(
700
+ self,
701
+ ) -> Callable[
702
+ [bigtable_instance_admin.CreateMaterializedViewRequest],
703
+ Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]],
704
+ ]:
705
+ raise NotImplementedError()
706
+
707
+ @property
708
+ def get_materialized_view(
709
+ self,
710
+ ) -> Callable[
711
+ [bigtable_instance_admin.GetMaterializedViewRequest],
712
+ Union[instance.MaterializedView, Awaitable[instance.MaterializedView]],
713
+ ]:
714
+ raise NotImplementedError()
715
+
716
+ @property
717
+ def list_materialized_views(
718
+ self,
719
+ ) -> Callable[
720
+ [bigtable_instance_admin.ListMaterializedViewsRequest],
721
+ Union[
722
+ bigtable_instance_admin.ListMaterializedViewsResponse,
723
+ Awaitable[bigtable_instance_admin.ListMaterializedViewsResponse],
724
+ ],
725
+ ]:
726
+ raise NotImplementedError()
727
+
728
+ @property
729
+ def update_materialized_view(
730
+ self,
731
+ ) -> Callable[
732
+ [bigtable_instance_admin.UpdateMaterializedViewRequest],
733
+ Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]],
734
+ ]:
735
+ raise NotImplementedError()
736
+
737
+ @property
738
+ def delete_materialized_view(
739
+ self,
740
+ ) -> Callable[
741
+ [bigtable_instance_admin.DeleteMaterializedViewRequest],
742
+ Union[empty_pb2.Empty, Awaitable[empty_pb2.Empty]],
743
+ ]:
744
+ raise NotImplementedError()
745
+
746
+ @property
747
+ def kind(self) -> str:
748
+ raise NotImplementedError()
749
+
750
+
751
+ __all__ = ("BigtableInstanceAdminTransport",)