@@ -94,7 +94,7 @@ public class ReadmeJavaExample {
9494 String iqn = sf. listVolumesForAccount(accountId, of(volumeId), of(1l )). getVolumes()[0 ]. getIqn();
9595
9696 // Change Min and Burst QoS while keeping Max and Burst Time the same
97- QoS qos = new QoS (of(5000l ), EMPTY_LONG , of(30000l ), EMPTY_LONG );
97+ QoS qos = new QoS (of(5000l ), EMPTY_LONG , of(30000l ), EMPTY_LONG );
9898
9999 // Modify the volume size and QoS
100100 ModifyVolumeRequest modifyVolumeRequest = new ModifyVolumeRequest (volumeId, EMPTY_LONG ,
@@ -111,30 +111,30 @@ public class ReadmeJavaExample {
111111// Import your Java Primitive Types
112112import java .lang .Long
113113
114- import com .solidfire .javautil .Optional .{ empty , of }
114+ import com .solidfire .javautil .Optional .{empty , of }
115115
116116class ReadmeExample {
117117
118118 // Create Connection to SF Cluster
119- val sf = SolidFireElement .create( " mvip" , " 8.0" , " username" , " password" )
119+ val sf = SolidFireElement .create(" mvip" , " 8.0" , " username" , " password" )
120120
121121 // Create some accounts
122- val addAccount = new AddAccountRequest ( " username" , empty[String ], empty[String ], empty())
122+ val addAccount = new AddAccountRequest (" username" , empty[String ], empty[String ], empty())
123123 val accountId = sf.addAccount(addAccount).getAccountID
124124
125125 // And a volume
126- val createVolume = new CreateVolumeRequest ( " volumeName" , accountId, 1000000000l , false , empty[QoS ], empty())
126+ val createVolume = new CreateVolumeRequest (" volumeName" , accountId, 1000000000l , false , empty[QoS ], empty())
127127 val volumeId = sf.createVolume(createVolume).getVolumeID
128128
129129 // Lookup iqn for new volume
130- val iqn : String = sf.listVolumesForAccount( accountId, of(volumeId), of(1l )).getVolumes()(0 ).getIqn
130+ val iqn : String = sf.listVolumesForAccount(accountId, of(volumeId), of(1l )).getVolumes()(0 ).getIqn
131131
132132 // Change Min and Burst QoS while keeping Max and Burst Time the same
133133 val qos : QoS = new QoS (of(5000l ), empty[Long ], of(30000l ), empty[Long ])
134134
135135 // Modify the volume
136136 val modifyVolume = new ModifyVolumeRequest (volumeId, empty[Long ], empty[String ], empty[String ],
137- of(qos), of( 2000000000l ), empty() )
137+ of(qos), of( 2000000000l ), empty())
138138 sf.modifyVolume( modifyVolume )
139139}
140140```
0 commit comments