@@ -19,6 +19,8 @@ package google.bigtable.admin.v2;
1919
2020import "google/api/annotations.proto" ;
2121import "google/bigtable/admin/v2/table.proto" ;
22+ import "google/iam/v1/iam_policy.proto" ;
23+ import "google/iam/v1/policy.proto" ;
2224import "google/longrunning/operations.proto" ;
2325import "google/protobuf/duration.proto" ;
2426import "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