@BetaApi
  public final Operation resizeDisk(String disk, DisksResizeRequest disksResizeRequestResource) {

    ResizeDiskHttpRequest request =
        ResizeDiskHttpRequest.newBuilder()
            .setDisk(disk)
            .setDisksResizeRequestResource(disksResizeRequestResource)
            .build();
    return resizeDisk(request);
  }
@ BetaApi public final Operation resizeDisk ( String disk , DisksResizeRequest disksResizeRequestResource ) { ResizeDiskHttpRequest request = ResizeDiskHttpRequest . newBuilder ( ) . setDisk ( disk ) . setDisksResizeRequestResource ( disksResizeRequestResource ) . build ( ) ; return resizeDisk ( request ) ; }
Resizes the specified persistent disk. You can only increase the size of the disk.

<p>Sample code:

<pre><code>
try (DiskClient diskClient = DiskClient.create()) {
ProjectZoneDiskName disk = ProjectZoneDiskName.of("[PROJECT]", "[ZONE]", "[DISK]");
DisksResizeRequest disksResizeRequestResource = DisksResizeRequest.newBuilder().build();
Operation response = diskClient.resizeDisk(disk.toString(), disksResizeRequestResource);
}
</code></pre>

@param disk The name of the persistent disk.
@param disksResizeRequestResource
@throws com.google.api.gax.rpc.ApiException if the remote call fails