protected Compute.RegionOperations.Get createRegionOperations(
     Compute compute, GcpCredential gcpCredential, Operation operation, CloudRegion region)
     throws IOException {
   return compute
       .regionOperations()
       .get(gcpCredential.getProjectId(), region.region(), operation.getName());
 }
Пример #2
0
 public static Compute.RegionOperations.Get regionOperations(
     Compute compute, String projectId, String operationName, Region region) throws IOException {
   return compute.regionOperations().get(projectId, region.value(), operationName);
 }