Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit 7140c60

Browse files
1 parent cb8c6cd commit 7140c60

259 files changed

Lines changed: 408 additions & 145546 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

google/cloud/bigtable_v2/services/bigtable/async_client.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,13 @@ def read_rows(
397397
if regex_match and regex_match.group("table_name"):
398398
header_params["table_name"] = regex_match.group("table_name")
399399

400+
routing_param_regex = re.compile(
401+
"^(?P<name>projects/[^/]+/instances/[^/]+)(?:/.*)?$"
402+
)
403+
regex_match = routing_param_regex.match(request.materialized_view_name)
404+
if regex_match and regex_match.group("name"):
405+
header_params["name"] = regex_match.group("name")
406+
400407
if header_params:
401408
metadata = tuple(metadata) + (
402409
gapic_v1.routing_header.to_grpc_metadata(header_params),
@@ -519,6 +526,13 @@ def sample_row_keys(
519526
if regex_match and regex_match.group("table_name"):
520527
header_params["table_name"] = regex_match.group("table_name")
521528

529+
routing_param_regex = re.compile(
530+
"^(?P<name>projects/[^/]+/instances/[^/]+)(?:/.*)?$"
531+
)
532+
regex_match = routing_param_regex.match(request.materialized_view_name)
533+
if regex_match and regex_match.group("name"):
534+
header_params["name"] = regex_match.group("name")
535+
522536
if header_params:
523537
metadata = tuple(metadata) + (
524538
gapic_v1.routing_header.to_grpc_metadata(header_params),

google/cloud/bigtable_v2/services/bigtable/client.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -873,6 +873,13 @@ def read_rows(
873873
if regex_match and regex_match.group("table_name"):
874874
header_params["table_name"] = regex_match.group("table_name")
875875

876+
routing_param_regex = re.compile(
877+
"^(?P<name>projects/[^/]+/instances/[^/]+)(?:/.*)?$"
878+
)
879+
regex_match = routing_param_regex.match(request.materialized_view_name)
880+
if regex_match and regex_match.group("name"):
881+
header_params["name"] = regex_match.group("name")
882+
876883
if header_params:
877884
metadata = tuple(metadata) + (
878885
gapic_v1.routing_header.to_grpc_metadata(header_params),
@@ -992,6 +999,13 @@ def sample_row_keys(
992999
if regex_match and regex_match.group("table_name"):
9931000
header_params["table_name"] = regex_match.group("table_name")
9941001

1002+
routing_param_regex = re.compile(
1003+
"^(?P<name>projects/[^/]+/instances/[^/]+)(?:/.*)?$"
1004+
)
1005+
regex_match = routing_param_regex.match(request.materialized_view_name)
1006+
if regex_match and regex_match.group("name"):
1007+
header_params["name"] = regex_match.group("name")
1008+
9951009
if header_params:
9961010
metadata = tuple(metadata) + (
9971011
gapic_v1.routing_header.to_grpc_metadata(header_params),

google/cloud/bigtable_v2/services/bigtable/transports/rest_base.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,11 @@ def _get_http_options():
641641
"uri": "/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:readRows",
642642
"body": "*",
643643
},
644+
{
645+
"method": "post",
646+
"uri": "/v2/{materialized_view_name=projects/*/instances/*/materializedViews/*}:readRows",
647+
"body": "*",
648+
},
644649
]
645650
return http_options
646651

@@ -686,6 +691,10 @@ def _get_http_options():
686691
"method": "get",
687692
"uri": "/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:sampleRowKeys",
688693
},
694+
{
695+
"method": "get",
696+
"uri": "/v2/{materialized_view_name=projects/*/instances/*/materializedViews/*}:sampleRowKeys",
697+
},
689698
]
690699
return http_options
691700

owl-bot-staging/bigtable/v2/.coveragerc

Lines changed: 0 additions & 13 deletions
This file was deleted.

owl-bot-staging/bigtable/v2/.flake8

Lines changed: 0 additions & 34 deletions
This file was deleted.

owl-bot-staging/bigtable/v2/LICENSE

Lines changed: 0 additions & 202 deletions
This file was deleted.

owl-bot-staging/bigtable/v2/MANIFEST.in

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)