@@ -86,8 +86,8 @@ These credentials are automatically inferred from your environment, so you only
8686code to create your service object:
8787
8888``` java
89- import com.google.cloud.compute.Compute ;
90- import com.google.cloud.compute.ComputeOptions ;
89+ import com.google.cloud.compute.deprecated. Compute ;
90+ import com.google.cloud.compute.deprecated. ComputeOptions ;
9191
9292Compute compute = ComputeOptions . getDefaultInstance(). getService();
9393```
@@ -103,9 +103,9 @@ Engine. In this code snippet, we will create a new external region address.
103103Add the following imports at the top of your file:
104104
105105``` java
106- import com.google.cloud.compute.AddressInfo ;
107- import com.google.cloud.compute.Operation ;
108- import com.google.cloud.compute.RegionAddressId ;
106+ import com.google.cloud.compute.deprecated. AddressInfo ;
107+ import com.google.cloud.compute.deprecated. Operation ;
108+ import com.google.cloud.compute.deprecated. RegionAddressId ;
109109```
110110
111111Then add the following code to create an address. Most Compute Engine calls return an ` Operation `
@@ -135,10 +135,10 @@ a publicly-available image.
135135Add the following imports at the top of your file:
136136
137137``` java
138- import com.google.cloud.compute.DiskInfo ;
139- import com.google.cloud.compute.DiskId ;
140- import com.google.cloud.compute.ImageDiskConfiguration ;
141- import com.google.cloud.compute.ImageId ;
138+ import com.google.cloud.compute.deprecated. DiskInfo ;
139+ import com.google.cloud.compute.deprecated. DiskId ;
140+ import com.google.cloud.compute.deprecated. ImageDiskConfiguration ;
141+ import com.google.cloud.compute.deprecated. ImageId ;
142142```
143143
144144Then add the following code to create a disk and wait for disk creation to terminate.
@@ -168,15 +168,15 @@ boot disk the disk we have just created and assigning to it the just created IP
168168Add the following imports at the top of your file:
169169
170170``` java
171- import com.google.cloud.compute.AttachedDisk ;
172- import com.google.cloud.compute.AttachedDisk.PersistentDiskConfiguration ;
173- import com.google.cloud.compute.InstanceId ;
174- import com.google.cloud.compute.InstanceInfo ;
175- import com.google.cloud.compute.MachineTypeId ;
176- import com.google.cloud.compute.NetworkConfiguration ;
177- import com.google.cloud.compute.NetworkConfiguration.AccessConfig ;
178- import com.google.cloud.compute.NetworkId ;
179- import com.google.cloud.compute.NetworkInterface ;
171+ import com.google.cloud.compute.deprecated. AttachedDisk ;
172+ import com.google.cloud.compute.deprecated. AttachedDisk.PersistentDiskConfiguration ;
173+ import com.google.cloud.compute.deprecated. InstanceId ;
174+ import com.google.cloud.compute.deprecated. InstanceInfo ;
175+ import com.google.cloud.compute.deprecated. MachineTypeId ;
176+ import com.google.cloud.compute.deprecated. NetworkConfiguration ;
177+ import com.google.cloud.compute.deprecated. NetworkConfiguration.AccessConfig ;
178+ import com.google.cloud.compute.deprecated. NetworkId ;
179+ import com.google.cloud.compute.deprecated. NetworkInterface ;
180180```
181181
182182Then add the following code to create an instance and wait for instance creation to terminate.
0 commit comments