Skip to content

Commit 04404a4

Browse files
yoshi-automationcallmehiphop
authored andcommitted
feat: load protos from JSON, grpc-fallback support, IAM protos (#536)
1 parent 418254d commit 04404a4

12 files changed

+1639
-259
lines changed

protos/google/bigtable/admin/v2/bigtable_table_admin.proto

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ package google.bigtable.admin.v2;
1919

2020
import "google/api/annotations.proto";
2121
import "google/bigtable/admin/v2/table.proto";
22+
import "google/iam/v1/iam_policy.proto";
23+
import "google/iam/v1/policy.proto";
2224
import "google/longrunning/operations.proto";
2325
import "google/protobuf/duration.proto";
2426
import "google/protobuf/empty.proto";
@@ -182,6 +184,32 @@ service BigtableTableAdmin {
182184
delete: "/v2/{name=projects/*/instances/*/clusters/*/snapshots/*}"
183185
};
184186
}
187+
188+
// Gets the access control policy for an instance resource. Returns an empty
189+
// policy if an table exists but does not have a policy set.
190+
rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) returns (google.iam.v1.Policy) {
191+
option (google.api.http) = {
192+
post: "/v2/{resource=projects/*/instances/*/tables/*}:getIamPolicy"
193+
body: "*"
194+
};
195+
}
196+
197+
// Sets the access control policy on a table resource. Replaces any existing
198+
// policy.
199+
rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) returns (google.iam.v1.Policy) {
200+
option (google.api.http) = {
201+
post: "/v2/{resource=projects/*/instances/*/tables/*}:setIamPolicy"
202+
body: "*"
203+
};
204+
}
205+
206+
// Returns permissions that the caller has on the specified table resource.
207+
rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) returns (google.iam.v1.TestIamPermissionsResponse) {
208+
option (google.api.http) = {
209+
post: "/v2/{resource=projects/*/instances/*/tables/*}:testIamPermissions"
210+
body: "*"
211+
};
212+
}
185213
}
186214

187215
// Request message for

0 commit comments

Comments
 (0)