Bigtable: Add support for Table-level IAM.
Changes to address bug
@@ -977,7 +977,12 @@ func (iac *InstanceAdminClient) GetCluster(ctx context.Context, instanceID, clus
// InstanceIAM returns the instance's IAM handle.
func (iac *InstanceAdminClient) InstanceIAM(instanceID string) *iam.Handle {
return iam.InternalNewHandleGRPCClient(iac.iClient, "projects/"+iac.project+"/instances/"+instanceID)
+}
+// TableIAM creates an IAM client specific to a given Instance and Table within the configured project.
+func (iac *InstanceAdminClient) TableIAM(instanceID, tableID string) *iam.Handle {
+ return iam.InternalNewHandleGRPCClient(iac.iClient,
+ "projects/"+iac.project+"/instances/"+instanceID+"/tables/"+tableID)
}
// Routing policies.
