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,119 @@
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
+
23
+ __protobuf__ = proto.module(
24
+ package="google.bigtable.v2",
25
+ manifest={
26
+ "FeatureFlags",
27
+ },
28
+ )
29
+
30
+
31
+ class FeatureFlags(proto.Message):
32
+ r"""Feature flags supported or enabled by a client. This is intended to
33
+ be sent as part of request metadata to assure the server that
34
+ certain behaviors are safe to enable. This proto is meant to be
35
+ serialized and websafe-base64 encoded under the
36
+ ``bigtable-features`` metadata key. The value will remain constant
37
+ for the lifetime of a client and due to HTTP2's HPACK compression,
38
+ the request overhead will be tiny. This is an internal
39
+ implementation detail and should not be used by end users directly.
40
+
41
+ Attributes:
42
+ reverse_scans (bool):
43
+ Notify the server that the client supports
44
+ reverse scans. The server will reject
45
+ ReadRowsRequests with the reverse bit set when
46
+ this is absent.
47
+ mutate_rows_rate_limit (bool):
48
+ Notify the server that the client enables
49
+ batch write flow control by requesting
50
+ RateLimitInfo from MutateRowsResponse. Due to
51
+ technical reasons, this disables partial
52
+ retries.
53
+ mutate_rows_rate_limit2 (bool):
54
+ Notify the server that the client enables
55
+ batch write flow control by requesting
56
+ RateLimitInfo from MutateRowsResponse. With
57
+ partial retries enabled.
58
+ last_scanned_row_responses (bool):
59
+ Notify the server that the client supports the
60
+ last_scanned_row field in ReadRowsResponse for long-running
61
+ scans.
62
+ routing_cookie (bool):
63
+ Notify the server that the client supports
64
+ using encoded routing cookie strings to retry
65
+ requests with.
66
+ retry_info (bool):
67
+ Notify the server that the client supports
68
+ using retry info back off durations to retry
69
+ requests with.
70
+ client_side_metrics_enabled (bool):
71
+ Notify the server that the client has client
72
+ side metrics enabled.
73
+ traffic_director_enabled (bool):
74
+ Notify the server that the client using
75
+ Traffic Director endpoint.
76
+ direct_access_requested (bool):
77
+ Notify the server that the client explicitly
78
+ opted in for Direct Access.
79
+ """
80
+
81
+ reverse_scans: bool = proto.Field(
82
+ proto.BOOL,
83
+ number=1,
84
+ )
85
+ mutate_rows_rate_limit: bool = proto.Field(
86
+ proto.BOOL,
87
+ number=3,
88
+ )
89
+ mutate_rows_rate_limit2: bool = proto.Field(
90
+ proto.BOOL,
91
+ number=5,
92
+ )
93
+ last_scanned_row_responses: bool = proto.Field(
94
+ proto.BOOL,
95
+ number=4,
96
+ )
97
+ routing_cookie: bool = proto.Field(
98
+ proto.BOOL,
99
+ number=6,
100
+ )
101
+ retry_info: bool = proto.Field(
102
+ proto.BOOL,
103
+ number=7,
104
+ )
105
+ client_side_metrics_enabled: bool = proto.Field(
106
+ proto.BOOL,
107
+ number=8,
108
+ )
109
+ traffic_director_enabled: bool = proto.Field(
110
+ proto.BOOL,
111
+ number=9,
112
+ )
113
+ direct_access_requested: bool = proto.Field(
114
+ proto.BOOL,
115
+ number=10,
116
+ )
117
+
118
+
119
+ __all__ = tuple(sorted(__protobuf__.manifest))
@@ -0,0 +1,171 @@
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.protobuf import duration_pb2 # type: ignore
23
+
24
+
25
+ __protobuf__ = proto.module(
26
+ package="google.bigtable.v2",
27
+ manifest={
28
+ "ReadIterationStats",
29
+ "RequestLatencyStats",
30
+ "FullReadStatsView",
31
+ "RequestStats",
32
+ },
33
+ )
34
+
35
+
36
+ class ReadIterationStats(proto.Message):
37
+ r"""ReadIterationStats captures information about the iteration
38
+ of rows or cells over the course of a read, e.g. how many
39
+ results were scanned in a read operation versus the results
40
+ returned.
41
+
42
+ Attributes:
43
+ rows_seen_count (int):
44
+ The rows seen (scanned) as part of the
45
+ request. This includes the count of rows
46
+ returned, as captured below.
47
+ rows_returned_count (int):
48
+ The rows returned as part of the request.
49
+ cells_seen_count (int):
50
+ The cells seen (scanned) as part of the
51
+ request. This includes the count of cells
52
+ returned, as captured below.
53
+ cells_returned_count (int):
54
+ The cells returned as part of the request.
55
+ """
56
+
57
+ rows_seen_count: int = proto.Field(
58
+ proto.INT64,
59
+ number=1,
60
+ )
61
+ rows_returned_count: int = proto.Field(
62
+ proto.INT64,
63
+ number=2,
64
+ )
65
+ cells_seen_count: int = proto.Field(
66
+ proto.INT64,
67
+ number=3,
68
+ )
69
+ cells_returned_count: int = proto.Field(
70
+ proto.INT64,
71
+ number=4,
72
+ )
73
+
74
+
75
+ class RequestLatencyStats(proto.Message):
76
+ r"""RequestLatencyStats provides a measurement of the latency of
77
+ the request as it interacts with different systems over its
78
+ lifetime, e.g. how long the request took to execute within a
79
+ frontend server.
80
+
81
+ Attributes:
82
+ frontend_server_latency (google.protobuf.duration_pb2.Duration):
83
+ The latency measured by the frontend server
84
+ handling this request, from when the request was
85
+ received, to when this value is sent back in the
86
+ response. For more context on the component that
87
+ is measuring this latency, see:
88
+ https://cloud.google.com/bigtable/docs/overview
89
+
90
+ Note: This value may be slightly shorter than
91
+ the value reported into aggregate latency
92
+ metrics in Monitoring for this request
93
+ (https://cloud.google.com/bigtable/docs/monitoring-instance)
94
+ as this value needs to be sent in the response
95
+ before the latency measurement including that
96
+ transmission is finalized.
97
+
98
+ Note: This value includes the end-to-end latency
99
+ of contacting nodes in the targeted cluster,
100
+ e.g. measuring from when the first byte arrives
101
+ at the frontend server, to when this value is
102
+ sent back as the last value in the response,
103
+ including any latency incurred by contacting
104
+ nodes, waiting for results from nodes, and
105
+ finally sending results from nodes back to the
106
+ caller.
107
+ """
108
+
109
+ frontend_server_latency: duration_pb2.Duration = proto.Field(
110
+ proto.MESSAGE,
111
+ number=1,
112
+ message=duration_pb2.Duration,
113
+ )
114
+
115
+
116
+ class FullReadStatsView(proto.Message):
117
+ r"""FullReadStatsView captures all known information about a
118
+ read.
119
+
120
+ Attributes:
121
+ read_iteration_stats (google.cloud.bigtable_v2.types.ReadIterationStats):
122
+ Iteration stats describe how efficient the
123
+ read is, e.g. comparing rows seen vs. rows
124
+ returned or cells seen vs cells returned can
125
+ provide an indication of read efficiency (the
126
+ higher the ratio of seen to retuned the better).
127
+ request_latency_stats (google.cloud.bigtable_v2.types.RequestLatencyStats):
128
+ Request latency stats describe the time taken
129
+ to complete a request, from the server side.
130
+ """
131
+
132
+ read_iteration_stats: "ReadIterationStats" = proto.Field(
133
+ proto.MESSAGE,
134
+ number=1,
135
+ message="ReadIterationStats",
136
+ )
137
+ request_latency_stats: "RequestLatencyStats" = proto.Field(
138
+ proto.MESSAGE,
139
+ number=2,
140
+ message="RequestLatencyStats",
141
+ )
142
+
143
+
144
+ class RequestStats(proto.Message):
145
+ r"""RequestStats is the container for additional information pertaining
146
+ to a single request, helpful for evaluating the performance of the
147
+ sent request. Currently, there are the following supported methods:
148
+
149
+ - google.bigtable.v2.ReadRows
150
+
151
+
152
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
153
+
154
+ Attributes:
155
+ full_read_stats_view (google.cloud.bigtable_v2.types.FullReadStatsView):
156
+ Available with the
157
+ ReadRowsRequest.RequestStatsView.REQUEST_STATS_FULL view,
158
+ see package google.bigtable.v2.
159
+
160
+ This field is a member of `oneof`_ ``stats_view``.
161
+ """
162
+
163
+ full_read_stats_view: "FullReadStatsView" = proto.Field(
164
+ proto.MESSAGE,
165
+ number=1,
166
+ oneof="stats_view",
167
+ message="FullReadStatsView",
168
+ )
169
+
170
+
171
+ __all__ = tuple(sorted(__protobuf__.manifest))
@@ -0,0 +1,64 @@
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
+
23
+ __protobuf__ = proto.module(
24
+ package="google.bigtable.v2",
25
+ manifest={
26
+ "ResponseParams",
27
+ },
28
+ )
29
+
30
+
31
+ class ResponseParams(proto.Message):
32
+ r"""Response metadata proto This is an experimental feature that will be
33
+ used to get zone_id and cluster_id from response trailers to tag the
34
+ metrics. This should not be used by customers directly
35
+
36
+
37
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
38
+
39
+ Attributes:
40
+ zone_id (str):
41
+ The cloud bigtable zone associated with the
42
+ cluster.
43
+
44
+ This field is a member of `oneof`_ ``_zone_id``.
45
+ cluster_id (str):
46
+ Identifier for a cluster that represents set
47
+ of bigtable resources.
48
+
49
+ This field is a member of `oneof`_ ``_cluster_id``.
50
+ """
51
+
52
+ zone_id: str = proto.Field(
53
+ proto.STRING,
54
+ number=1,
55
+ optional=True,
56
+ )
57
+ cluster_id: str = proto.Field(
58
+ proto.STRING,
59
+ number=2,
60
+ optional=True,
61
+ )
62
+
63
+
64
+ __all__ = tuple(sorted(__protobuf__.manifest))