Skip to content

Commit d5720f8

Browse files
feat: Increase the maximum retention period for a Cloud Bigtable backup from 30 days to 90 days (#817)
* feat: add experimental reverse scan for public preview PiperOrigin-RevId: 543539118 Source-Link: googleapis/googleapis@ae18706 Source-Link: googleapis/googleapis-gen@5d05516 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNWQwNTUxNmY4NGU1M2FhYmE2M2E0Yjg3NjdmZjk1NWFjNWJiNGE4NyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: Increase the maximum retention period for a Cloud Bigtable backup from 30 days to 90 days PiperOrigin-RevId: 544356969 Source-Link: googleapis/googleapis@c35889a Source-Link: googleapis/googleapis-gen@c00326e Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzAwMzI2ZWM3ODU2NWI1ZDE2ZjkyYzg0NWZmMGJiMThmMTFjYTA1ZCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 62dd217 commit d5720f8

File tree

4 files changed

+23
-2
lines changed

4 files changed

+23
-2
lines changed

google/cloud/bigtable_admin_v2/types/table.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ class Backup(proto.Message):
590590
expire_time (google.protobuf.timestamp_pb2.Timestamp):
591591
Required. The expiration time of the backup, with
592592
microseconds granularity that must be at least 6 hours and
593-
at most 30 days from the time the request is received. Once
593+
at most 90 days from the time the request is received. Once
594594
the ``expire_time`` has passed, Cloud Bigtable will delete
595595
the backup and free the resources used by the backup.
596596
start_time (google.protobuf.timestamp_pb2.Timestamp):

google/cloud/bigtable_v2/types/bigtable.py

+12
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,14 @@ class ReadRowsRequest(proto.Message):
8080
request_stats_view (google.cloud.bigtable_v2.types.ReadRowsRequest.RequestStatsView):
8181
The view into RequestStats, as described
8282
above.
83+
reversed_ (bool):
84+
Experimental API - Please note that this API is currently
85+
experimental and can change in the future.
86+
87+
Return rows in lexiographical descending order of the row
88+
keys. The row contents will not be affected by this flag.
89+
Example result set: [ {key: "k2", "f:col1": "v1", "f:col2":
90+
"v1"}, {key: "k1", "f:col1": "v2", "f:col2": "v2"} ].
8391
"""
8492

8593
class RequestStatsView(proto.Enum):
@@ -131,6 +139,10 @@ class RequestStatsView(proto.Enum):
131139
number=6,
132140
enum=RequestStatsView,
133141
)
142+
reversed_: bool = proto.Field(
143+
proto.BOOL,
144+
number=7,
145+
)
134146

135147

136148
class ReadRowsResponse(proto.Message):

google/cloud/bigtable_v2/types/feature_flags.py

+9
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,21 @@ class FeatureFlags(proto.Message):
3939
endusers directly.
4040
4141
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.
4247
mutate_rows_rate_limit (bool):
4348
Notify the server that the client enables
4449
batch write flow control by requesting
4550
RateLimitInfo from MutateRowsResponse.
4651
"""
4752

53+
reverse_scans: bool = proto.Field(
54+
proto.BOOL,
55+
number=1,
56+
)
4857
mutate_rows_rate_limit: bool = proto.Field(
4958
proto.BOOL,
5059
number=3,

scripts/fixup_bigtable_v2_keywords.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class bigtableCallTransformer(cst.CSTTransformer):
4646
'ping_and_warm': ('name', 'app_profile_id', ),
4747
'read_change_stream': ('table_name', 'app_profile_id', 'partition', 'start_time', 'continuation_tokens', 'end_time', 'heartbeat_duration', ),
4848
'read_modify_write_row': ('table_name', 'row_key', 'rules', 'app_profile_id', ),
49-
'read_rows': ('table_name', 'app_profile_id', 'rows', 'filter', 'rows_limit', 'request_stats_view', ),
49+
'read_rows': ('table_name', 'app_profile_id', 'rows', 'filter', 'rows_limit', 'request_stats_view', 'reversed_', ),
5050
'sample_row_keys': ('table_name', 'app_profile_id', ),
5151
}
5252

0 commit comments

Comments
 (0)