File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed 
compute/cloud-client/src/main/java/compute/disks/storagepool Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -34,9 +34,10 @@ public static void main(String[] args)
3434    String  zone  = "us-central1-a" ;
3535    // Name of the storagePool you want to create. 
3636    String  storagePoolName  = "YOUR_STORAGE_POOL_NAME" ;
37-     // The type of disk you want to create. This value uses the following format: 
38-     // "projects/%s/zones/%s/storagePoolTypes/hyperdisk-throughput|hyperdisk-balanced" 
39-     String  storagePoolType  = "hyperdisk-balanced" ;
37+     // The type of disk you want to create. 
38+     // Storage types can be "hyperdisk-throughput" or "hyperdisk-balanced" 
39+     String  storagePoolType  = String .format ( "projects/%s/zones/%s/storagePoolTypes/hyperdisk-balanced" ,
40+         projectId , zone );
4041    // Optional: the capacity provisioning type of the storage pool. 
4142    // The allowed values are advanced and standard. If not specified, the value advanced is used. 
4243    String  capacityProvisioningType  = "advanced" ;
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments