Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ public void setIamPolicyTest() throws Exception {
.build();
mockDatabaseAdmin.addResponse(expectedResponse);

ResourceName resource = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]");
ResourceName resource = BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]");
Policy policy = Policy.newBuilder().build();

Policy actualResponse = client.setIamPolicy(resource, policy);
Expand All @@ -678,7 +678,7 @@ public void setIamPolicyExceptionTest() throws Exception {
mockDatabaseAdmin.addException(exception);

try {
ResourceName resource = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]");
ResourceName resource = BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]");
Policy policy = Policy.newBuilder().build();
client.setIamPolicy(resource, policy);
Assert.fail("No exception raised");
Expand Down Expand Up @@ -740,7 +740,7 @@ public void getIamPolicyTest() throws Exception {
.build();
mockDatabaseAdmin.addResponse(expectedResponse);

ResourceName resource = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]");
ResourceName resource = BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]");

Policy actualResponse = client.getIamPolicy(resource);
Assert.assertEquals(expectedResponse, actualResponse);
Expand All @@ -762,7 +762,7 @@ public void getIamPolicyExceptionTest() throws Exception {
mockDatabaseAdmin.addException(exception);

try {
ResourceName resource = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]");
ResourceName resource = BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]");
client.getIamPolicy(resource);
Assert.fail("No exception raised");
} catch (InvalidArgumentException e) {
Expand Down Expand Up @@ -816,7 +816,7 @@ public void testIamPermissionsTest() throws Exception {
TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList<String>()).build();
mockDatabaseAdmin.addResponse(expectedResponse);

ResourceName resource = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]");
ResourceName resource = BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]");
List<String> permissions = new ArrayList<>();

TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions);
Expand All @@ -840,7 +840,7 @@ public void testIamPermissionsExceptionTest() throws Exception {
mockDatabaseAdmin.addException(exception);

try {
ResourceName resource = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]");
ResourceName resource = BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]");
List<String> permissions = new ArrayList<>();
client.testIamPermissions(resource, permissions);
Assert.fail("No exception raised");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
@javax.annotation.Generated(
value = "by gRPC proto compiler",
comments = "Source: google/spanner/admin/database/v1/spanner_database_admin.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class DatabaseAdminGrpc {

private DatabaseAdminGrpc() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
@javax.annotation.Generated(
value = "by gRPC proto compiler",
comments = "Source: google/spanner/admin/instance/v1/spanner_instance_admin.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class InstanceAdminGrpc {

private InstanceAdminGrpc() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
@javax.annotation.Generated(
value = "by gRPC proto compiler",
comments = "Source: google/spanner/v1/spanner.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class SpannerGrpc {

private SpannerGrpc() {}
Expand Down
6 changes: 3 additions & 3 deletions synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/java-spanner.git",
"sha": "0e30ebffc63de2de940db1eb807175ec19aa752d"
"sha": "286d6d587c659a13d219d64f0966aa4d2ffc3d3d"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "d2977af9e9f1fc0c9dc8368352daa032471f3c63",
"internalRef": "403132955"
"sha": "2921f9fb3bfbd16f6b2da0104373e2b47a80a65e",
"internalRef": "408420890"
}
},
{
Expand Down