Skip to content

Commit fe06a49

Browse files
Google APIscopybara-github
authored andcommitted
fix: Add ReadRows/SampleRowKeys bindings for materialized views
PiperOrigin-RevId: 793800781
1 parent 54236ee commit fe06a49

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

‎google/bigtable/v2/bigtable.proto‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ service Bigtable {
7777
post: "/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:readRows"
7878
body: "*"
7979
}
80+
additional_bindings {
81+
post: "/v2/{materialized_view_name=projects/*/instances/*/materializedViews/*}:readRows"
82+
body: "*"
83+
}
8084
};
8185
option (google.api.routing) = {
8286
routing_parameters {
@@ -88,6 +92,10 @@ service Bigtable {
8892
field: "authorized_view_name"
8993
path_template: "{table_name=projects/*/instances/*/tables/*}/**"
9094
}
95+
routing_parameters {
96+
field: "materialized_view_name"
97+
path_template: "{name=projects/*/instances/*}/**"
98+
}
9199
};
92100
option (google.api.method_signature) = "table_name";
93101
option (google.api.method_signature) = "table_name,app_profile_id";
@@ -104,6 +112,9 @@ service Bigtable {
104112
additional_bindings {
105113
get: "/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:sampleRowKeys"
106114
}
115+
additional_bindings {
116+
get: "/v2/{materialized_view_name=projects/*/instances/*/materializedViews/*}:sampleRowKeys"
117+
}
107118
};
108119
option (google.api.routing) = {
109120
routing_parameters {
@@ -115,6 +126,10 @@ service Bigtable {
115126
field: "authorized_view_name"
116127
path_template: "{table_name=projects/*/instances/*/tables/*}/**"
117128
}
129+
routing_parameters {
130+
field: "materialized_view_name"
131+
path_template: "{name=projects/*/instances/*}/**"
132+
}
118133
};
119134
option (google.api.method_signature) = "table_name";
120135
option (google.api.method_signature) = "table_name,app_profile_id";

0 commit comments

Comments
 (0)