Skip to content

Commit a267cdb

Browse files
Fixed code
1 parent 2e917df commit a267cdb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compute/cloud-client/src/main/java/compute/disks/CreateDiskWithSnapshotSchedule.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import com.google.cloud.compute.v1.Disk;
2121
import com.google.cloud.compute.v1.DisksClient;
2222
import com.google.cloud.compute.v1.Operation;
23+
import com.google.cloud.compute.v1.Operation.Status;
2324
import java.io.IOException;
2425
import java.util.List;
2526
import java.util.concurrent.ExecutionException;
@@ -43,7 +44,7 @@ public static void main(String[] args)
4344
}
4445

4546
// Creates disk with linked snapshot schedule.
46-
public static Operation.Status createDiskWithSnapshotSchedule(
47+
public static Status createDiskWithSnapshotSchedule(
4748
String projectId, String zone, String diskName, String snapshotScheduleName)
4849
throws IOException, ExecutionException, InterruptedException, TimeoutException {
4950
try (DisksClient disksClient = DisksClient.create()) {

0 commit comments

Comments
 (0)