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,1364 @@
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
+ from __future__ import annotations
17
+
18
+ from typing import MutableMapping, MutableSequence
19
+
20
+ import proto # type: ignore
21
+
22
+ from google.cloud.bigtable_admin_v2.types import instance as gba_instance
23
+ from google.protobuf import field_mask_pb2 # type: ignore
24
+ from google.protobuf import timestamp_pb2 # type: ignore
25
+
26
+
27
+ __protobuf__ = proto.module(
28
+ package="google.bigtable.admin.v2",
29
+ manifest={
30
+ "CreateInstanceRequest",
31
+ "GetInstanceRequest",
32
+ "ListInstancesRequest",
33
+ "ListInstancesResponse",
34
+ "PartialUpdateInstanceRequest",
35
+ "DeleteInstanceRequest",
36
+ "CreateClusterRequest",
37
+ "GetClusterRequest",
38
+ "ListClustersRequest",
39
+ "ListClustersResponse",
40
+ "DeleteClusterRequest",
41
+ "CreateInstanceMetadata",
42
+ "UpdateInstanceMetadata",
43
+ "CreateClusterMetadata",
44
+ "UpdateClusterMetadata",
45
+ "PartialUpdateClusterMetadata",
46
+ "PartialUpdateClusterRequest",
47
+ "CreateAppProfileRequest",
48
+ "GetAppProfileRequest",
49
+ "ListAppProfilesRequest",
50
+ "ListAppProfilesResponse",
51
+ "UpdateAppProfileRequest",
52
+ "DeleteAppProfileRequest",
53
+ "UpdateAppProfileMetadata",
54
+ "ListHotTabletsRequest",
55
+ "ListHotTabletsResponse",
56
+ "CreateLogicalViewRequest",
57
+ "CreateLogicalViewMetadata",
58
+ "GetLogicalViewRequest",
59
+ "ListLogicalViewsRequest",
60
+ "ListLogicalViewsResponse",
61
+ "UpdateLogicalViewRequest",
62
+ "UpdateLogicalViewMetadata",
63
+ "DeleteLogicalViewRequest",
64
+ "CreateMaterializedViewRequest",
65
+ "CreateMaterializedViewMetadata",
66
+ "GetMaterializedViewRequest",
67
+ "ListMaterializedViewsRequest",
68
+ "ListMaterializedViewsResponse",
69
+ "UpdateMaterializedViewRequest",
70
+ "UpdateMaterializedViewMetadata",
71
+ "DeleteMaterializedViewRequest",
72
+ },
73
+ )
74
+
75
+
76
+ class CreateInstanceRequest(proto.Message):
77
+ r"""Request message for BigtableInstanceAdmin.CreateInstance.
78
+
79
+ Attributes:
80
+ parent (str):
81
+ Required. The unique name of the project in which to create
82
+ the new instance. Values are of the form
83
+ ``projects/{project}``.
84
+ instance_id (str):
85
+ Required. The ID to be used when referring to the new
86
+ instance within its project, e.g., just ``myinstance``
87
+ rather than ``projects/myproject/instances/myinstance``.
88
+ instance (google.cloud.bigtable_admin_v2.types.Instance):
89
+ Required. The instance to create. Fields marked
90
+ ``OutputOnly`` must be left blank.
91
+ clusters (MutableMapping[str, google.cloud.bigtable_admin_v2.types.Cluster]):
92
+ Required. The clusters to be created within the instance,
93
+ mapped by desired cluster ID, e.g., just ``mycluster``
94
+ rather than
95
+ ``projects/myproject/instances/myinstance/clusters/mycluster``.
96
+ Fields marked ``OutputOnly`` must be left blank.
97
+ """
98
+
99
+ parent: str = proto.Field(
100
+ proto.STRING,
101
+ number=1,
102
+ )
103
+ instance_id: str = proto.Field(
104
+ proto.STRING,
105
+ number=2,
106
+ )
107
+ instance: gba_instance.Instance = proto.Field(
108
+ proto.MESSAGE,
109
+ number=3,
110
+ message=gba_instance.Instance,
111
+ )
112
+ clusters: MutableMapping[str, gba_instance.Cluster] = proto.MapField(
113
+ proto.STRING,
114
+ proto.MESSAGE,
115
+ number=4,
116
+ message=gba_instance.Cluster,
117
+ )
118
+
119
+
120
+ class GetInstanceRequest(proto.Message):
121
+ r"""Request message for BigtableInstanceAdmin.GetInstance.
122
+
123
+ Attributes:
124
+ name (str):
125
+ Required. The unique name of the requested instance. Values
126
+ are of the form ``projects/{project}/instances/{instance}``.
127
+ """
128
+
129
+ name: str = proto.Field(
130
+ proto.STRING,
131
+ number=1,
132
+ )
133
+
134
+
135
+ class ListInstancesRequest(proto.Message):
136
+ r"""Request message for BigtableInstanceAdmin.ListInstances.
137
+
138
+ Attributes:
139
+ parent (str):
140
+ Required. The unique name of the project for which a list of
141
+ instances is requested. Values are of the form
142
+ ``projects/{project}``.
143
+ page_token (str):
144
+ DEPRECATED: This field is unused and ignored.
145
+ """
146
+
147
+ parent: str = proto.Field(
148
+ proto.STRING,
149
+ number=1,
150
+ )
151
+ page_token: str = proto.Field(
152
+ proto.STRING,
153
+ number=2,
154
+ )
155
+
156
+
157
+ class ListInstancesResponse(proto.Message):
158
+ r"""Response message for BigtableInstanceAdmin.ListInstances.
159
+
160
+ Attributes:
161
+ instances (MutableSequence[google.cloud.bigtable_admin_v2.types.Instance]):
162
+ The list of requested instances.
163
+ failed_locations (MutableSequence[str]):
164
+ Locations from which Instance information could not be
165
+ retrieved, due to an outage or some other transient
166
+ condition. Instances whose Clusters are all in one of the
167
+ failed locations may be missing from ``instances``, and
168
+ Instances with at least one Cluster in a failed location may
169
+ only have partial information returned. Values are of the
170
+ form ``projects/<project>/locations/<zone_id>``
171
+ next_page_token (str):
172
+ DEPRECATED: This field is unused and ignored.
173
+ """
174
+
175
+ @property
176
+ def raw_page(self):
177
+ return self
178
+
179
+ instances: MutableSequence[gba_instance.Instance] = proto.RepeatedField(
180
+ proto.MESSAGE,
181
+ number=1,
182
+ message=gba_instance.Instance,
183
+ )
184
+ failed_locations: MutableSequence[str] = proto.RepeatedField(
185
+ proto.STRING,
186
+ number=2,
187
+ )
188
+ next_page_token: str = proto.Field(
189
+ proto.STRING,
190
+ number=3,
191
+ )
192
+
193
+
194
+ class PartialUpdateInstanceRequest(proto.Message):
195
+ r"""Request message for
196
+ BigtableInstanceAdmin.PartialUpdateInstance.
197
+
198
+ Attributes:
199
+ instance (google.cloud.bigtable_admin_v2.types.Instance):
200
+ Required. The Instance which will (partially)
201
+ replace the current value.
202
+ update_mask (google.protobuf.field_mask_pb2.FieldMask):
203
+ Required. The subset of Instance fields which
204
+ should be replaced. Must be explicitly set.
205
+ """
206
+
207
+ instance: gba_instance.Instance = proto.Field(
208
+ proto.MESSAGE,
209
+ number=1,
210
+ message=gba_instance.Instance,
211
+ )
212
+ update_mask: field_mask_pb2.FieldMask = proto.Field(
213
+ proto.MESSAGE,
214
+ number=2,
215
+ message=field_mask_pb2.FieldMask,
216
+ )
217
+
218
+
219
+ class DeleteInstanceRequest(proto.Message):
220
+ r"""Request message for BigtableInstanceAdmin.DeleteInstance.
221
+
222
+ Attributes:
223
+ name (str):
224
+ Required. The unique name of the instance to be deleted.
225
+ Values are of the form
226
+ ``projects/{project}/instances/{instance}``.
227
+ """
228
+
229
+ name: str = proto.Field(
230
+ proto.STRING,
231
+ number=1,
232
+ )
233
+
234
+
235
+ class CreateClusterRequest(proto.Message):
236
+ r"""Request message for BigtableInstanceAdmin.CreateCluster.
237
+
238
+ Attributes:
239
+ parent (str):
240
+ Required. The unique name of the instance in which to create
241
+ the new cluster. Values are of the form
242
+ ``projects/{project}/instances/{instance}``.
243
+ cluster_id (str):
244
+ Required. The ID to be used when referring to the new
245
+ cluster within its instance, e.g., just ``mycluster`` rather
246
+ than
247
+ ``projects/myproject/instances/myinstance/clusters/mycluster``.
248
+ cluster (google.cloud.bigtable_admin_v2.types.Cluster):
249
+ Required. The cluster to be created. Fields marked
250
+ ``OutputOnly`` must be left blank.
251
+ """
252
+
253
+ parent: str = proto.Field(
254
+ proto.STRING,
255
+ number=1,
256
+ )
257
+ cluster_id: str = proto.Field(
258
+ proto.STRING,
259
+ number=2,
260
+ )
261
+ cluster: gba_instance.Cluster = proto.Field(
262
+ proto.MESSAGE,
263
+ number=3,
264
+ message=gba_instance.Cluster,
265
+ )
266
+
267
+
268
+ class GetClusterRequest(proto.Message):
269
+ r"""Request message for BigtableInstanceAdmin.GetCluster.
270
+
271
+ Attributes:
272
+ name (str):
273
+ Required. The unique name of the requested cluster. Values
274
+ are of the form
275
+ ``projects/{project}/instances/{instance}/clusters/{cluster}``.
276
+ """
277
+
278
+ name: str = proto.Field(
279
+ proto.STRING,
280
+ number=1,
281
+ )
282
+
283
+
284
+ class ListClustersRequest(proto.Message):
285
+ r"""Request message for BigtableInstanceAdmin.ListClusters.
286
+
287
+ Attributes:
288
+ parent (str):
289
+ Required. The unique name of the instance for which a list
290
+ of clusters is requested. Values are of the form
291
+ ``projects/{project}/instances/{instance}``. Use
292
+ ``{instance} = '-'`` to list Clusters for all Instances in a
293
+ project, e.g., ``projects/myproject/instances/-``.
294
+ page_token (str):
295
+ DEPRECATED: This field is unused and ignored.
296
+ """
297
+
298
+ parent: str = proto.Field(
299
+ proto.STRING,
300
+ number=1,
301
+ )
302
+ page_token: str = proto.Field(
303
+ proto.STRING,
304
+ number=2,
305
+ )
306
+
307
+
308
+ class ListClustersResponse(proto.Message):
309
+ r"""Response message for BigtableInstanceAdmin.ListClusters.
310
+
311
+ Attributes:
312
+ clusters (MutableSequence[google.cloud.bigtable_admin_v2.types.Cluster]):
313
+ The list of requested clusters.
314
+ failed_locations (MutableSequence[str]):
315
+ Locations from which Cluster information could not be
316
+ retrieved, due to an outage or some other transient
317
+ condition. Clusters from these locations may be missing from
318
+ ``clusters``, or may only have partial information returned.
319
+ Values are of the form
320
+ ``projects/<project>/locations/<zone_id>``
321
+ next_page_token (str):
322
+ DEPRECATED: This field is unused and ignored.
323
+ """
324
+
325
+ @property
326
+ def raw_page(self):
327
+ return self
328
+
329
+ clusters: MutableSequence[gba_instance.Cluster] = proto.RepeatedField(
330
+ proto.MESSAGE,
331
+ number=1,
332
+ message=gba_instance.Cluster,
333
+ )
334
+ failed_locations: MutableSequence[str] = proto.RepeatedField(
335
+ proto.STRING,
336
+ number=2,
337
+ )
338
+ next_page_token: str = proto.Field(
339
+ proto.STRING,
340
+ number=3,
341
+ )
342
+
343
+
344
+ class DeleteClusterRequest(proto.Message):
345
+ r"""Request message for BigtableInstanceAdmin.DeleteCluster.
346
+
347
+ Attributes:
348
+ name (str):
349
+ Required. The unique name of the cluster to be deleted.
350
+ Values are of the form
351
+ ``projects/{project}/instances/{instance}/clusters/{cluster}``.
352
+ """
353
+
354
+ name: str = proto.Field(
355
+ proto.STRING,
356
+ number=1,
357
+ )
358
+
359
+
360
+ class CreateInstanceMetadata(proto.Message):
361
+ r"""The metadata for the Operation returned by CreateInstance.
362
+
363
+ Attributes:
364
+ original_request (google.cloud.bigtable_admin_v2.types.CreateInstanceRequest):
365
+ The request that prompted the initiation of
366
+ this CreateInstance operation.
367
+ request_time (google.protobuf.timestamp_pb2.Timestamp):
368
+ The time at which the original request was
369
+ received.
370
+ finish_time (google.protobuf.timestamp_pb2.Timestamp):
371
+ The time at which the operation failed or was
372
+ completed successfully.
373
+ """
374
+
375
+ original_request: "CreateInstanceRequest" = proto.Field(
376
+ proto.MESSAGE,
377
+ number=1,
378
+ message="CreateInstanceRequest",
379
+ )
380
+ request_time: timestamp_pb2.Timestamp = proto.Field(
381
+ proto.MESSAGE,
382
+ number=2,
383
+ message=timestamp_pb2.Timestamp,
384
+ )
385
+ finish_time: timestamp_pb2.Timestamp = proto.Field(
386
+ proto.MESSAGE,
387
+ number=3,
388
+ message=timestamp_pb2.Timestamp,
389
+ )
390
+
391
+
392
+ class UpdateInstanceMetadata(proto.Message):
393
+ r"""The metadata for the Operation returned by UpdateInstance.
394
+
395
+ Attributes:
396
+ original_request (google.cloud.bigtable_admin_v2.types.PartialUpdateInstanceRequest):
397
+ The request that prompted the initiation of
398
+ this UpdateInstance operation.
399
+ request_time (google.protobuf.timestamp_pb2.Timestamp):
400
+ The time at which the original request was
401
+ received.
402
+ finish_time (google.protobuf.timestamp_pb2.Timestamp):
403
+ The time at which the operation failed or was
404
+ completed successfully.
405
+ """
406
+
407
+ original_request: "PartialUpdateInstanceRequest" = proto.Field(
408
+ proto.MESSAGE,
409
+ number=1,
410
+ message="PartialUpdateInstanceRequest",
411
+ )
412
+ request_time: timestamp_pb2.Timestamp = proto.Field(
413
+ proto.MESSAGE,
414
+ number=2,
415
+ message=timestamp_pb2.Timestamp,
416
+ )
417
+ finish_time: timestamp_pb2.Timestamp = proto.Field(
418
+ proto.MESSAGE,
419
+ number=3,
420
+ message=timestamp_pb2.Timestamp,
421
+ )
422
+
423
+
424
+ class CreateClusterMetadata(proto.Message):
425
+ r"""The metadata for the Operation returned by CreateCluster.
426
+
427
+ Attributes:
428
+ original_request (google.cloud.bigtable_admin_v2.types.CreateClusterRequest):
429
+ The request that prompted the initiation of
430
+ this CreateCluster operation.
431
+ request_time (google.protobuf.timestamp_pb2.Timestamp):
432
+ The time at which the original request was
433
+ received.
434
+ finish_time (google.protobuf.timestamp_pb2.Timestamp):
435
+ The time at which the operation failed or was
436
+ completed successfully.
437
+ tables (MutableMapping[str, google.cloud.bigtable_admin_v2.types.CreateClusterMetadata.TableProgress]):
438
+ Keys: the full ``name`` of each table that existed in the
439
+ instance when CreateCluster was first called, i.e.
440
+ ``projects/<project>/instances/<instance>/tables/<table>``.
441
+ Any table added to the instance by a later API call will be
442
+ created in the new cluster by that API call, not this one.
443
+
444
+ Values: information on how much of a table's data has been
445
+ copied to the newly-created cluster so far.
446
+ """
447
+
448
+ class TableProgress(proto.Message):
449
+ r"""Progress info for copying a table's data to the new cluster.
450
+
451
+ Attributes:
452
+ estimated_size_bytes (int):
453
+ Estimate of the size of the table to be
454
+ copied.
455
+ estimated_copied_bytes (int):
456
+ Estimate of the number of bytes copied so far for this
457
+ table. This will eventually reach 'estimated_size_bytes'
458
+ unless the table copy is CANCELLED.
459
+ state (google.cloud.bigtable_admin_v2.types.CreateClusterMetadata.TableProgress.State):
460
+
461
+ """
462
+
463
+ class State(proto.Enum):
464
+ r"""
465
+
466
+ Values:
467
+ STATE_UNSPECIFIED (0):
468
+ No description available.
469
+ PENDING (1):
470
+ The table has not yet begun copying to the
471
+ new cluster.
472
+ COPYING (2):
473
+ The table is actively being copied to the new
474
+ cluster.
475
+ COMPLETED (3):
476
+ The table has been fully copied to the new
477
+ cluster.
478
+ CANCELLED (4):
479
+ The table was deleted before it finished
480
+ copying to the new cluster. Note that tables
481
+ deleted after completion will stay marked as
482
+ COMPLETED, not CANCELLED.
483
+ """
484
+ STATE_UNSPECIFIED = 0
485
+ PENDING = 1
486
+ COPYING = 2
487
+ COMPLETED = 3
488
+ CANCELLED = 4
489
+
490
+ estimated_size_bytes: int = proto.Field(
491
+ proto.INT64,
492
+ number=2,
493
+ )
494
+ estimated_copied_bytes: int = proto.Field(
495
+ proto.INT64,
496
+ number=3,
497
+ )
498
+ state: "CreateClusterMetadata.TableProgress.State" = proto.Field(
499
+ proto.ENUM,
500
+ number=4,
501
+ enum="CreateClusterMetadata.TableProgress.State",
502
+ )
503
+
504
+ original_request: "CreateClusterRequest" = proto.Field(
505
+ proto.MESSAGE,
506
+ number=1,
507
+ message="CreateClusterRequest",
508
+ )
509
+ request_time: timestamp_pb2.Timestamp = proto.Field(
510
+ proto.MESSAGE,
511
+ number=2,
512
+ message=timestamp_pb2.Timestamp,
513
+ )
514
+ finish_time: timestamp_pb2.Timestamp = proto.Field(
515
+ proto.MESSAGE,
516
+ number=3,
517
+ message=timestamp_pb2.Timestamp,
518
+ )
519
+ tables: MutableMapping[str, TableProgress] = proto.MapField(
520
+ proto.STRING,
521
+ proto.MESSAGE,
522
+ number=4,
523
+ message=TableProgress,
524
+ )
525
+
526
+
527
+ class UpdateClusterMetadata(proto.Message):
528
+ r"""The metadata for the Operation returned by UpdateCluster.
529
+
530
+ Attributes:
531
+ original_request (google.cloud.bigtable_admin_v2.types.Cluster):
532
+ The request that prompted the initiation of
533
+ this UpdateCluster operation.
534
+ request_time (google.protobuf.timestamp_pb2.Timestamp):
535
+ The time at which the original request was
536
+ received.
537
+ finish_time (google.protobuf.timestamp_pb2.Timestamp):
538
+ The time at which the operation failed or was
539
+ completed successfully.
540
+ """
541
+
542
+ original_request: gba_instance.Cluster = proto.Field(
543
+ proto.MESSAGE,
544
+ number=1,
545
+ message=gba_instance.Cluster,
546
+ )
547
+ request_time: timestamp_pb2.Timestamp = proto.Field(
548
+ proto.MESSAGE,
549
+ number=2,
550
+ message=timestamp_pb2.Timestamp,
551
+ )
552
+ finish_time: timestamp_pb2.Timestamp = proto.Field(
553
+ proto.MESSAGE,
554
+ number=3,
555
+ message=timestamp_pb2.Timestamp,
556
+ )
557
+
558
+
559
+ class PartialUpdateClusterMetadata(proto.Message):
560
+ r"""The metadata for the Operation returned by
561
+ PartialUpdateCluster.
562
+
563
+ Attributes:
564
+ request_time (google.protobuf.timestamp_pb2.Timestamp):
565
+ The time at which the original request was
566
+ received.
567
+ finish_time (google.protobuf.timestamp_pb2.Timestamp):
568
+ The time at which the operation failed or was
569
+ completed successfully.
570
+ original_request (google.cloud.bigtable_admin_v2.types.PartialUpdateClusterRequest):
571
+ The original request for
572
+ PartialUpdateCluster.
573
+ """
574
+
575
+ request_time: timestamp_pb2.Timestamp = proto.Field(
576
+ proto.MESSAGE,
577
+ number=1,
578
+ message=timestamp_pb2.Timestamp,
579
+ )
580
+ finish_time: timestamp_pb2.Timestamp = proto.Field(
581
+ proto.MESSAGE,
582
+ number=2,
583
+ message=timestamp_pb2.Timestamp,
584
+ )
585
+ original_request: "PartialUpdateClusterRequest" = proto.Field(
586
+ proto.MESSAGE,
587
+ number=3,
588
+ message="PartialUpdateClusterRequest",
589
+ )
590
+
591
+
592
+ class PartialUpdateClusterRequest(proto.Message):
593
+ r"""Request message for
594
+ BigtableInstanceAdmin.PartialUpdateCluster.
595
+
596
+ Attributes:
597
+ cluster (google.cloud.bigtable_admin_v2.types.Cluster):
598
+ Required. The Cluster which contains the partial updates to
599
+ be applied, subject to the update_mask.
600
+ update_mask (google.protobuf.field_mask_pb2.FieldMask):
601
+ Required. The subset of Cluster fields which
602
+ should be replaced.
603
+ """
604
+
605
+ cluster: gba_instance.Cluster = proto.Field(
606
+ proto.MESSAGE,
607
+ number=1,
608
+ message=gba_instance.Cluster,
609
+ )
610
+ update_mask: field_mask_pb2.FieldMask = proto.Field(
611
+ proto.MESSAGE,
612
+ number=2,
613
+ message=field_mask_pb2.FieldMask,
614
+ )
615
+
616
+
617
+ class CreateAppProfileRequest(proto.Message):
618
+ r"""Request message for BigtableInstanceAdmin.CreateAppProfile.
619
+
620
+ Attributes:
621
+ parent (str):
622
+ Required. The unique name of the instance in which to create
623
+ the new app profile. Values are of the form
624
+ ``projects/{project}/instances/{instance}``.
625
+ app_profile_id (str):
626
+ Required. The ID to be used when referring to the new app
627
+ profile within its instance, e.g., just ``myprofile`` rather
628
+ than
629
+ ``projects/myproject/instances/myinstance/appProfiles/myprofile``.
630
+ app_profile (google.cloud.bigtable_admin_v2.types.AppProfile):
631
+ Required. The app profile to be created. Fields marked
632
+ ``OutputOnly`` will be ignored.
633
+ ignore_warnings (bool):
634
+ If true, ignore safety checks when creating
635
+ the app profile.
636
+ """
637
+
638
+ parent: str = proto.Field(
639
+ proto.STRING,
640
+ number=1,
641
+ )
642
+ app_profile_id: str = proto.Field(
643
+ proto.STRING,
644
+ number=2,
645
+ )
646
+ app_profile: gba_instance.AppProfile = proto.Field(
647
+ proto.MESSAGE,
648
+ number=3,
649
+ message=gba_instance.AppProfile,
650
+ )
651
+ ignore_warnings: bool = proto.Field(
652
+ proto.BOOL,
653
+ number=4,
654
+ )
655
+
656
+
657
+ class GetAppProfileRequest(proto.Message):
658
+ r"""Request message for BigtableInstanceAdmin.GetAppProfile.
659
+
660
+ Attributes:
661
+ name (str):
662
+ Required. The unique name of the requested app profile.
663
+ Values are of the form
664
+ ``projects/{project}/instances/{instance}/appProfiles/{app_profile}``.
665
+ """
666
+
667
+ name: str = proto.Field(
668
+ proto.STRING,
669
+ number=1,
670
+ )
671
+
672
+
673
+ class ListAppProfilesRequest(proto.Message):
674
+ r"""Request message for BigtableInstanceAdmin.ListAppProfiles.
675
+
676
+ Attributes:
677
+ parent (str):
678
+ Required. The unique name of the instance for which a list
679
+ of app profiles is requested. Values are of the form
680
+ ``projects/{project}/instances/{instance}``. Use
681
+ ``{instance} = '-'`` to list AppProfiles for all Instances
682
+ in a project, e.g., ``projects/myproject/instances/-``.
683
+ page_size (int):
684
+ Maximum number of results per page.
685
+
686
+ A page_size of zero lets the server choose the number of
687
+ items to return. A page_size which is strictly positive will
688
+ return at most that many items. A negative page_size will
689
+ cause an error.
690
+
691
+ Following the first request, subsequent paginated calls are
692
+ not required to pass a page_size. If a page_size is set in
693
+ subsequent calls, it must match the page_size given in the
694
+ first request.
695
+ page_token (str):
696
+ The value of ``next_page_token`` returned by a previous
697
+ call.
698
+ """
699
+
700
+ parent: str = proto.Field(
701
+ proto.STRING,
702
+ number=1,
703
+ )
704
+ page_size: int = proto.Field(
705
+ proto.INT32,
706
+ number=3,
707
+ )
708
+ page_token: str = proto.Field(
709
+ proto.STRING,
710
+ number=2,
711
+ )
712
+
713
+
714
+ class ListAppProfilesResponse(proto.Message):
715
+ r"""Response message for BigtableInstanceAdmin.ListAppProfiles.
716
+
717
+ Attributes:
718
+ app_profiles (MutableSequence[google.cloud.bigtable_admin_v2.types.AppProfile]):
719
+ The list of requested app profiles.
720
+ next_page_token (str):
721
+ Set if not all app profiles could be returned in a single
722
+ response. Pass this value to ``page_token`` in another
723
+ request to get the next page of results.
724
+ failed_locations (MutableSequence[str]):
725
+ Locations from which AppProfile information could not be
726
+ retrieved, due to an outage or some other transient
727
+ condition. AppProfiles from these locations may be missing
728
+ from ``app_profiles``. Values are of the form
729
+ ``projects/<project>/locations/<zone_id>``
730
+ """
731
+
732
+ @property
733
+ def raw_page(self):
734
+ return self
735
+
736
+ app_profiles: MutableSequence[gba_instance.AppProfile] = proto.RepeatedField(
737
+ proto.MESSAGE,
738
+ number=1,
739
+ message=gba_instance.AppProfile,
740
+ )
741
+ next_page_token: str = proto.Field(
742
+ proto.STRING,
743
+ number=2,
744
+ )
745
+ failed_locations: MutableSequence[str] = proto.RepeatedField(
746
+ proto.STRING,
747
+ number=3,
748
+ )
749
+
750
+
751
+ class UpdateAppProfileRequest(proto.Message):
752
+ r"""Request message for BigtableInstanceAdmin.UpdateAppProfile.
753
+
754
+ Attributes:
755
+ app_profile (google.cloud.bigtable_admin_v2.types.AppProfile):
756
+ Required. The app profile which will
757
+ (partially) replace the current value.
758
+ update_mask (google.protobuf.field_mask_pb2.FieldMask):
759
+ Required. The subset of app profile fields
760
+ which should be replaced. If unset, all fields
761
+ will be replaced.
762
+ ignore_warnings (bool):
763
+ If true, ignore safety checks when updating
764
+ the app profile.
765
+ """
766
+
767
+ app_profile: gba_instance.AppProfile = proto.Field(
768
+ proto.MESSAGE,
769
+ number=1,
770
+ message=gba_instance.AppProfile,
771
+ )
772
+ update_mask: field_mask_pb2.FieldMask = proto.Field(
773
+ proto.MESSAGE,
774
+ number=2,
775
+ message=field_mask_pb2.FieldMask,
776
+ )
777
+ ignore_warnings: bool = proto.Field(
778
+ proto.BOOL,
779
+ number=3,
780
+ )
781
+
782
+
783
+ class DeleteAppProfileRequest(proto.Message):
784
+ r"""Request message for BigtableInstanceAdmin.DeleteAppProfile.
785
+
786
+ Attributes:
787
+ name (str):
788
+ Required. The unique name of the app profile to be deleted.
789
+ Values are of the form
790
+ ``projects/{project}/instances/{instance}/appProfiles/{app_profile}``.
791
+ ignore_warnings (bool):
792
+ Required. If true, ignore safety checks when
793
+ deleting the app profile.
794
+ """
795
+
796
+ name: str = proto.Field(
797
+ proto.STRING,
798
+ number=1,
799
+ )
800
+ ignore_warnings: bool = proto.Field(
801
+ proto.BOOL,
802
+ number=2,
803
+ )
804
+
805
+
806
+ class UpdateAppProfileMetadata(proto.Message):
807
+ r"""The metadata for the Operation returned by UpdateAppProfile."""
808
+
809
+
810
+ class ListHotTabletsRequest(proto.Message):
811
+ r"""Request message for BigtableInstanceAdmin.ListHotTablets.
812
+
813
+ Attributes:
814
+ parent (str):
815
+ Required. The cluster name to list hot tablets. Value is in
816
+ the following form:
817
+ ``projects/{project}/instances/{instance}/clusters/{cluster}``.
818
+ start_time (google.protobuf.timestamp_pb2.Timestamp):
819
+ The start time to list hot tablets. The hot
820
+ tablets in the response will have start times
821
+ between the requested start time and end time.
822
+ Start time defaults to Now if it is unset, and
823
+ end time defaults to Now - 24 hours if it is
824
+ unset. The start time should be less than the
825
+ end time, and the maximum allowed time range
826
+ between start time and end time is 48 hours.
827
+ Start time and end time should have values
828
+ between Now and Now - 14 days.
829
+ end_time (google.protobuf.timestamp_pb2.Timestamp):
830
+ The end time to list hot tablets.
831
+ page_size (int):
832
+ Maximum number of results per page.
833
+
834
+ A page_size that is empty or zero lets the server choose the
835
+ number of items to return. A page_size which is strictly
836
+ positive will return at most that many items. A negative
837
+ page_size will cause an error.
838
+
839
+ Following the first request, subsequent paginated calls do
840
+ not need a page_size field. If a page_size is set in
841
+ subsequent calls, it must match the page_size given in the
842
+ first request.
843
+ page_token (str):
844
+ The value of ``next_page_token`` returned by a previous
845
+ call.
846
+ """
847
+
848
+ parent: str = proto.Field(
849
+ proto.STRING,
850
+ number=1,
851
+ )
852
+ start_time: timestamp_pb2.Timestamp = proto.Field(
853
+ proto.MESSAGE,
854
+ number=2,
855
+ message=timestamp_pb2.Timestamp,
856
+ )
857
+ end_time: timestamp_pb2.Timestamp = proto.Field(
858
+ proto.MESSAGE,
859
+ number=3,
860
+ message=timestamp_pb2.Timestamp,
861
+ )
862
+ page_size: int = proto.Field(
863
+ proto.INT32,
864
+ number=4,
865
+ )
866
+ page_token: str = proto.Field(
867
+ proto.STRING,
868
+ number=5,
869
+ )
870
+
871
+
872
+ class ListHotTabletsResponse(proto.Message):
873
+ r"""Response message for BigtableInstanceAdmin.ListHotTablets.
874
+
875
+ Attributes:
876
+ hot_tablets (MutableSequence[google.cloud.bigtable_admin_v2.types.HotTablet]):
877
+ List of hot tablets in the tables of the
878
+ requested cluster that fall within the requested
879
+ time range. Hot tablets are ordered by node cpu
880
+ usage percent. If there are multiple hot tablets
881
+ that correspond to the same tablet within a
882
+ 15-minute interval, only the hot tablet with the
883
+ highest node cpu usage will be included in the
884
+ response.
885
+ next_page_token (str):
886
+ Set if not all hot tablets could be returned in a single
887
+ response. Pass this value to ``page_token`` in another
888
+ request to get the next page of results.
889
+ """
890
+
891
+ @property
892
+ def raw_page(self):
893
+ return self
894
+
895
+ hot_tablets: MutableSequence[gba_instance.HotTablet] = proto.RepeatedField(
896
+ proto.MESSAGE,
897
+ number=1,
898
+ message=gba_instance.HotTablet,
899
+ )
900
+ next_page_token: str = proto.Field(
901
+ proto.STRING,
902
+ number=2,
903
+ )
904
+
905
+
906
+ class CreateLogicalViewRequest(proto.Message):
907
+ r"""Request message for BigtableInstanceAdmin.CreateLogicalView.
908
+
909
+ Attributes:
910
+ parent (str):
911
+ Required. The parent instance where this logical view will
912
+ be created. Format:
913
+ ``projects/{project}/instances/{instance}``.
914
+ logical_view_id (str):
915
+ Required. The ID to use for the logical view,
916
+ which will become the final component of the
917
+ logical view's resource name.
918
+ logical_view (google.cloud.bigtable_admin_v2.types.LogicalView):
919
+ Required. The logical view to create.
920
+ """
921
+
922
+ parent: str = proto.Field(
923
+ proto.STRING,
924
+ number=1,
925
+ )
926
+ logical_view_id: str = proto.Field(
927
+ proto.STRING,
928
+ number=2,
929
+ )
930
+ logical_view: gba_instance.LogicalView = proto.Field(
931
+ proto.MESSAGE,
932
+ number=3,
933
+ message=gba_instance.LogicalView,
934
+ )
935
+
936
+
937
+ class CreateLogicalViewMetadata(proto.Message):
938
+ r"""The metadata for the Operation returned by CreateLogicalView.
939
+
940
+ Attributes:
941
+ original_request (google.cloud.bigtable_admin_v2.types.CreateLogicalViewRequest):
942
+ The request that prompted the initiation of
943
+ this CreateLogicalView operation.
944
+ start_time (google.protobuf.timestamp_pb2.Timestamp):
945
+ The time at which this operation started.
946
+ end_time (google.protobuf.timestamp_pb2.Timestamp):
947
+ If set, the time at which this operation
948
+ finished or was canceled.
949
+ """
950
+
951
+ original_request: "CreateLogicalViewRequest" = proto.Field(
952
+ proto.MESSAGE,
953
+ number=1,
954
+ message="CreateLogicalViewRequest",
955
+ )
956
+ start_time: timestamp_pb2.Timestamp = proto.Field(
957
+ proto.MESSAGE,
958
+ number=2,
959
+ message=timestamp_pb2.Timestamp,
960
+ )
961
+ end_time: timestamp_pb2.Timestamp = proto.Field(
962
+ proto.MESSAGE,
963
+ number=3,
964
+ message=timestamp_pb2.Timestamp,
965
+ )
966
+
967
+
968
+ class GetLogicalViewRequest(proto.Message):
969
+ r"""Request message for BigtableInstanceAdmin.GetLogicalView.
970
+
971
+ Attributes:
972
+ name (str):
973
+ Required. The unique name of the requested logical view.
974
+ Values are of the form
975
+ ``projects/{project}/instances/{instance}/logicalViews/{logical_view}``.
976
+ """
977
+
978
+ name: str = proto.Field(
979
+ proto.STRING,
980
+ number=1,
981
+ )
982
+
983
+
984
+ class ListLogicalViewsRequest(proto.Message):
985
+ r"""Request message for BigtableInstanceAdmin.ListLogicalViews.
986
+
987
+ Attributes:
988
+ parent (str):
989
+ Required. The unique name of the instance for which the list
990
+ of logical views is requested. Values are of the form
991
+ ``projects/{project}/instances/{instance}``.
992
+ page_size (int):
993
+ Optional. The maximum number of logical views
994
+ to return. The service may return fewer than
995
+ this value
996
+ page_token (str):
997
+ Optional. A page token, received from a previous
998
+ ``ListLogicalViews`` call. Provide this to retrieve the
999
+ subsequent page.
1000
+
1001
+ When paginating, all other parameters provided to
1002
+ ``ListLogicalViews`` must match the call that provided the
1003
+ page token.
1004
+ """
1005
+
1006
+ parent: str = proto.Field(
1007
+ proto.STRING,
1008
+ number=1,
1009
+ )
1010
+ page_size: int = proto.Field(
1011
+ proto.INT32,
1012
+ number=2,
1013
+ )
1014
+ page_token: str = proto.Field(
1015
+ proto.STRING,
1016
+ number=3,
1017
+ )
1018
+
1019
+
1020
+ class ListLogicalViewsResponse(proto.Message):
1021
+ r"""Response message for BigtableInstanceAdmin.ListLogicalViews.
1022
+
1023
+ Attributes:
1024
+ logical_views (MutableSequence[google.cloud.bigtable_admin_v2.types.LogicalView]):
1025
+ The list of requested logical views.
1026
+ next_page_token (str):
1027
+ A token, which can be sent as ``page_token`` to retrieve the
1028
+ next page. If this field is omitted, there are no subsequent
1029
+ pages.
1030
+ """
1031
+
1032
+ @property
1033
+ def raw_page(self):
1034
+ return self
1035
+
1036
+ logical_views: MutableSequence[gba_instance.LogicalView] = proto.RepeatedField(
1037
+ proto.MESSAGE,
1038
+ number=1,
1039
+ message=gba_instance.LogicalView,
1040
+ )
1041
+ next_page_token: str = proto.Field(
1042
+ proto.STRING,
1043
+ number=2,
1044
+ )
1045
+
1046
+
1047
+ class UpdateLogicalViewRequest(proto.Message):
1048
+ r"""Request message for BigtableInstanceAdmin.UpdateLogicalView.
1049
+
1050
+ Attributes:
1051
+ logical_view (google.cloud.bigtable_admin_v2.types.LogicalView):
1052
+ Required. The logical view to update.
1053
+
1054
+ The logical view's ``name`` field is used to identify the
1055
+ view to update. Format:
1056
+ ``projects/{project}/instances/{instance}/logicalViews/{logical_view}``.
1057
+ update_mask (google.protobuf.field_mask_pb2.FieldMask):
1058
+ Optional. The list of fields to update.
1059
+ """
1060
+
1061
+ logical_view: gba_instance.LogicalView = proto.Field(
1062
+ proto.MESSAGE,
1063
+ number=1,
1064
+ message=gba_instance.LogicalView,
1065
+ )
1066
+ update_mask: field_mask_pb2.FieldMask = proto.Field(
1067
+ proto.MESSAGE,
1068
+ number=2,
1069
+ message=field_mask_pb2.FieldMask,
1070
+ )
1071
+
1072
+
1073
+ class UpdateLogicalViewMetadata(proto.Message):
1074
+ r"""The metadata for the Operation returned by UpdateLogicalView.
1075
+
1076
+ Attributes:
1077
+ original_request (google.cloud.bigtable_admin_v2.types.UpdateLogicalViewRequest):
1078
+ The request that prompted the initiation of
1079
+ this UpdateLogicalView operation.
1080
+ start_time (google.protobuf.timestamp_pb2.Timestamp):
1081
+ The time at which this operation was started.
1082
+ end_time (google.protobuf.timestamp_pb2.Timestamp):
1083
+ If set, the time at which this operation
1084
+ finished or was canceled.
1085
+ """
1086
+
1087
+ original_request: "UpdateLogicalViewRequest" = proto.Field(
1088
+ proto.MESSAGE,
1089
+ number=1,
1090
+ message="UpdateLogicalViewRequest",
1091
+ )
1092
+ start_time: timestamp_pb2.Timestamp = proto.Field(
1093
+ proto.MESSAGE,
1094
+ number=2,
1095
+ message=timestamp_pb2.Timestamp,
1096
+ )
1097
+ end_time: timestamp_pb2.Timestamp = proto.Field(
1098
+ proto.MESSAGE,
1099
+ number=3,
1100
+ message=timestamp_pb2.Timestamp,
1101
+ )
1102
+
1103
+
1104
+ class DeleteLogicalViewRequest(proto.Message):
1105
+ r"""Request message for BigtableInstanceAdmin.DeleteLogicalView.
1106
+
1107
+ Attributes:
1108
+ name (str):
1109
+ Required. The unique name of the logical view to be deleted.
1110
+ Format:
1111
+ ``projects/{project}/instances/{instance}/logicalViews/{logical_view}``.
1112
+ etag (str):
1113
+ Optional. The current etag of the logical
1114
+ view. If an etag is provided and does not match
1115
+ the current etag of the logical view, deletion
1116
+ will be blocked and an ABORTED error will be
1117
+ returned.
1118
+ """
1119
+
1120
+ name: str = proto.Field(
1121
+ proto.STRING,
1122
+ number=1,
1123
+ )
1124
+ etag: str = proto.Field(
1125
+ proto.STRING,
1126
+ number=2,
1127
+ )
1128
+
1129
+
1130
+ class CreateMaterializedViewRequest(proto.Message):
1131
+ r"""Request message for
1132
+ BigtableInstanceAdmin.CreateMaterializedView.
1133
+
1134
+ Attributes:
1135
+ parent (str):
1136
+ Required. The parent instance where this materialized view
1137
+ will be created. Format:
1138
+ ``projects/{project}/instances/{instance}``.
1139
+ materialized_view_id (str):
1140
+ Required. The ID to use for the materialized
1141
+ view, which will become the final component of
1142
+ the materialized view's resource name.
1143
+ materialized_view (google.cloud.bigtable_admin_v2.types.MaterializedView):
1144
+ Required. The materialized view to create.
1145
+ """
1146
+
1147
+ parent: str = proto.Field(
1148
+ proto.STRING,
1149
+ number=1,
1150
+ )
1151
+ materialized_view_id: str = proto.Field(
1152
+ proto.STRING,
1153
+ number=2,
1154
+ )
1155
+ materialized_view: gba_instance.MaterializedView = proto.Field(
1156
+ proto.MESSAGE,
1157
+ number=3,
1158
+ message=gba_instance.MaterializedView,
1159
+ )
1160
+
1161
+
1162
+ class CreateMaterializedViewMetadata(proto.Message):
1163
+ r"""The metadata for the Operation returned by
1164
+ CreateMaterializedView.
1165
+
1166
+ Attributes:
1167
+ original_request (google.cloud.bigtable_admin_v2.types.CreateMaterializedViewRequest):
1168
+ The request that prompted the initiation of
1169
+ this CreateMaterializedView operation.
1170
+ start_time (google.protobuf.timestamp_pb2.Timestamp):
1171
+ The time at which this operation started.
1172
+ end_time (google.protobuf.timestamp_pb2.Timestamp):
1173
+ If set, the time at which this operation
1174
+ finished or was canceled.
1175
+ """
1176
+
1177
+ original_request: "CreateMaterializedViewRequest" = proto.Field(
1178
+ proto.MESSAGE,
1179
+ number=1,
1180
+ message="CreateMaterializedViewRequest",
1181
+ )
1182
+ start_time: timestamp_pb2.Timestamp = proto.Field(
1183
+ proto.MESSAGE,
1184
+ number=2,
1185
+ message=timestamp_pb2.Timestamp,
1186
+ )
1187
+ end_time: timestamp_pb2.Timestamp = proto.Field(
1188
+ proto.MESSAGE,
1189
+ number=3,
1190
+ message=timestamp_pb2.Timestamp,
1191
+ )
1192
+
1193
+
1194
+ class GetMaterializedViewRequest(proto.Message):
1195
+ r"""Request message for
1196
+ BigtableInstanceAdmin.GetMaterializedView.
1197
+
1198
+ Attributes:
1199
+ name (str):
1200
+ Required. The unique name of the requested materialized
1201
+ view. Values are of the form
1202
+ ``projects/{project}/instances/{instance}/materializedViews/{materialized_view}``.
1203
+ """
1204
+
1205
+ name: str = proto.Field(
1206
+ proto.STRING,
1207
+ number=1,
1208
+ )
1209
+
1210
+
1211
+ class ListMaterializedViewsRequest(proto.Message):
1212
+ r"""Request message for
1213
+ BigtableInstanceAdmin.ListMaterializedViews.
1214
+
1215
+ Attributes:
1216
+ parent (str):
1217
+ Required. The unique name of the instance for which the list
1218
+ of materialized views is requested. Values are of the form
1219
+ ``projects/{project}/instances/{instance}``.
1220
+ page_size (int):
1221
+ Optional. The maximum number of materialized
1222
+ views to return. The service may return fewer
1223
+ than this value
1224
+ page_token (str):
1225
+ Optional. A page token, received from a previous
1226
+ ``ListMaterializedViews`` call. Provide this to retrieve the
1227
+ subsequent page.
1228
+
1229
+ When paginating, all other parameters provided to
1230
+ ``ListMaterializedViews`` must match the call that provided
1231
+ the page token.
1232
+ """
1233
+
1234
+ parent: str = proto.Field(
1235
+ proto.STRING,
1236
+ number=1,
1237
+ )
1238
+ page_size: int = proto.Field(
1239
+ proto.INT32,
1240
+ number=2,
1241
+ )
1242
+ page_token: str = proto.Field(
1243
+ proto.STRING,
1244
+ number=3,
1245
+ )
1246
+
1247
+
1248
+ class ListMaterializedViewsResponse(proto.Message):
1249
+ r"""Response message for
1250
+ BigtableInstanceAdmin.ListMaterializedViews.
1251
+
1252
+ Attributes:
1253
+ materialized_views (MutableSequence[google.cloud.bigtable_admin_v2.types.MaterializedView]):
1254
+ The list of requested materialized views.
1255
+ next_page_token (str):
1256
+ A token, which can be sent as ``page_token`` to retrieve the
1257
+ next page. If this field is omitted, there are no subsequent
1258
+ pages.
1259
+ """
1260
+
1261
+ @property
1262
+ def raw_page(self):
1263
+ return self
1264
+
1265
+ materialized_views: MutableSequence[
1266
+ gba_instance.MaterializedView
1267
+ ] = proto.RepeatedField(
1268
+ proto.MESSAGE,
1269
+ number=1,
1270
+ message=gba_instance.MaterializedView,
1271
+ )
1272
+ next_page_token: str = proto.Field(
1273
+ proto.STRING,
1274
+ number=2,
1275
+ )
1276
+
1277
+
1278
+ class UpdateMaterializedViewRequest(proto.Message):
1279
+ r"""Request message for
1280
+ BigtableInstanceAdmin.UpdateMaterializedView.
1281
+
1282
+ Attributes:
1283
+ materialized_view (google.cloud.bigtable_admin_v2.types.MaterializedView):
1284
+ Required. The materialized view to update.
1285
+
1286
+ The materialized view's ``name`` field is used to identify
1287
+ the view to update. Format:
1288
+ ``projects/{project}/instances/{instance}/materializedViews/{materialized_view}``.
1289
+ update_mask (google.protobuf.field_mask_pb2.FieldMask):
1290
+ Optional. The list of fields to update.
1291
+ """
1292
+
1293
+ materialized_view: gba_instance.MaterializedView = proto.Field(
1294
+ proto.MESSAGE,
1295
+ number=1,
1296
+ message=gba_instance.MaterializedView,
1297
+ )
1298
+ update_mask: field_mask_pb2.FieldMask = proto.Field(
1299
+ proto.MESSAGE,
1300
+ number=2,
1301
+ message=field_mask_pb2.FieldMask,
1302
+ )
1303
+
1304
+
1305
+ class UpdateMaterializedViewMetadata(proto.Message):
1306
+ r"""The metadata for the Operation returned by
1307
+ UpdateMaterializedView.
1308
+
1309
+ Attributes:
1310
+ original_request (google.cloud.bigtable_admin_v2.types.UpdateMaterializedViewRequest):
1311
+ The request that prompted the initiation of
1312
+ this UpdateMaterializedView operation.
1313
+ start_time (google.protobuf.timestamp_pb2.Timestamp):
1314
+ The time at which this operation was started.
1315
+ end_time (google.protobuf.timestamp_pb2.Timestamp):
1316
+ If set, the time at which this operation
1317
+ finished or was canceled.
1318
+ """
1319
+
1320
+ original_request: "UpdateMaterializedViewRequest" = proto.Field(
1321
+ proto.MESSAGE,
1322
+ number=1,
1323
+ message="UpdateMaterializedViewRequest",
1324
+ )
1325
+ start_time: timestamp_pb2.Timestamp = proto.Field(
1326
+ proto.MESSAGE,
1327
+ number=2,
1328
+ message=timestamp_pb2.Timestamp,
1329
+ )
1330
+ end_time: timestamp_pb2.Timestamp = proto.Field(
1331
+ proto.MESSAGE,
1332
+ number=3,
1333
+ message=timestamp_pb2.Timestamp,
1334
+ )
1335
+
1336
+
1337
+ class DeleteMaterializedViewRequest(proto.Message):
1338
+ r"""Request message for
1339
+ BigtableInstanceAdmin.DeleteMaterializedView.
1340
+
1341
+ Attributes:
1342
+ name (str):
1343
+ Required. The unique name of the materialized view to be
1344
+ deleted. Format:
1345
+ ``projects/{project}/instances/{instance}/materializedViews/{materialized_view}``.
1346
+ etag (str):
1347
+ Optional. The current etag of the
1348
+ materialized view. If an etag is provided and
1349
+ does not match the current etag of the
1350
+ materialized view, deletion will be blocked and
1351
+ an ABORTED error will be returned.
1352
+ """
1353
+
1354
+ name: str = proto.Field(
1355
+ proto.STRING,
1356
+ number=1,
1357
+ )
1358
+ etag: str = proto.Field(
1359
+ proto.STRING,
1360
+ number=2,
1361
+ )
1362
+
1363
+
1364
+ __all__ = tuple(sorted(__protobuf__.manifest))