Skip to content

Commit fd42e93

Browse files
authored
compute: deprecate (#2819)
Fixes #2732.
1 parent 2640ad9 commit fd42e93

133 files changed

Lines changed: 358 additions & 351 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,17 @@ This library supports the following Google Cloud Platform services with clients
3434

3535
This library supports the following Google Cloud Platform services with clients at an [Alpha](#versioning) quality level:
3636

37-
- [Cloud Compute](google-cloud-compute) (Alpha)
3837
- [Cloud Dataproc](google-cloud-dataproc) (Alpha)
3938
- [Cloud DNS](google-cloud-dns) (Alpha)
4039
- [Cloud OS Login](google-cloud-os-login) (Alpha)
4140
- [Cloud Resource Manager](google-cloud-resourcemanager) (Alpha)
4241
- [Cloud Speech](google-cloud-speech) (Alpha)
4342
- [Dialogflow](google-cloud-dialogflow) (Alpha)
4443

44+
These libraries are deprecated and no longer receive updates:
45+
46+
- [Cloud Compute](google-cloud-compute) (Deprecated)
47+
4548
Quickstart
4649
----------
4750

google-cloud-compute/README.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ These credentials are automatically inferred from your environment, so you only
8686
code 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

9292
Compute compute = ComputeOptions.getDefaultInstance().getService();
9393
```
@@ -103,9 +103,9 @@ Engine. In this code snippet, we will create a new external region address.
103103
Add 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

111111
Then add the following code to create an address. Most Compute Engine calls return an `Operation`
@@ -135,10 +135,10 @@ a publicly-available image.
135135
Add 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

144144
Then 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
168168
Add 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

182182
Then add the following code to create an instance and wait for instance creation to terminate.

google-cloud-compute/src/main/java/com/google/cloud/compute/Address.java renamed to google-cloud-compute/src/main/java/com/google/cloud/compute/deprecated/Address.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.google.cloud.compute;
17+
package com.google.cloud.compute.deprecated;
1818

1919
import static com.google.common.base.Preconditions.checkNotNull;
2020

21-
import com.google.cloud.compute.Compute.AddressOption;
22-
import com.google.cloud.compute.Compute.OperationOption;
21+
import com.google.cloud.compute.deprecated.Compute.AddressOption;
22+
import com.google.cloud.compute.deprecated.Compute.OperationOption;
2323

2424
import java.io.IOException;
2525
import java.io.ObjectInputStream;

google-cloud-compute/src/main/java/com/google/cloud/compute/AddressId.java renamed to google-cloud-compute/src/main/java/com/google/cloud/compute/deprecated/AddressId.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.google.cloud.compute;
17+
package com.google.cloud.compute.deprecated;
1818

1919
import static com.google.common.base.Preconditions.checkNotNull;
2020

google-cloud-compute/src/main/java/com/google/cloud/compute/AddressInfo.java renamed to google-cloud-compute/src/main/java/com/google/cloud/compute/deprecated/AddressInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.google.cloud.compute;
17+
package com.google.cloud.compute.deprecated;
1818

1919
import static com.google.common.base.Preconditions.checkNotNull;
2020

google-cloud-compute/src/main/java/com/google/cloud/compute/AttachedDisk.java renamed to google-cloud-compute/src/main/java/com/google/cloud/compute/deprecated/AttachedDisk.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.google.cloud.compute;
17+
package com.google.cloud.compute.deprecated;
1818

1919
import static com.google.common.base.Preconditions.checkNotNull;
2020

google-cloud-compute/src/main/java/com/google/cloud/compute/Compute.java renamed to google-cloud-compute/src/main/java/com/google/cloud/compute/deprecated/Compute.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.google.cloud.compute;
17+
package com.google.cloud.compute.deprecated;
1818

1919
import static com.google.common.base.Preconditions.checkNotNull;
2020

2121
import com.google.cloud.FieldSelector;
2222
import com.google.cloud.FieldSelector.Helper;
2323
import com.google.api.gax.paging.Page;
2424
import com.google.cloud.Service;
25-
import com.google.cloud.compute.AttachedDisk.PersistentDiskConfiguration;
26-
import com.google.cloud.compute.NetworkInterface.AccessConfig;
27-
import com.google.cloud.compute.spi.v1.ComputeRpc;
25+
import com.google.cloud.compute.deprecated.AttachedDisk.PersistentDiskConfiguration;
26+
import com.google.cloud.compute.deprecated.NetworkInterface.AccessConfig;
27+
import com.google.cloud.compute.deprecated.spi.v1.ComputeRpc;
2828
import com.google.common.base.MoreObjects;
2929
import com.google.common.collect.ImmutableList;
3030

google-cloud-compute/src/main/java/com/google/cloud/compute/ComputeException.java renamed to google-cloud-compute/src/main/java/com/google/cloud/compute/deprecated/ComputeException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.google.cloud.compute;
17+
package com.google.cloud.compute.deprecated;
1818

1919
import com.google.cloud.BaseServiceException;
2020
import com.google.cloud.RetryHelper.RetryHelperException;

google-cloud-compute/src/main/java/com/google/cloud/compute/ComputeFactory.java renamed to google-cloud-compute/src/main/java/com/google/cloud/compute/deprecated/ComputeFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.google.cloud.compute;
17+
package com.google.cloud.compute.deprecated;
1818

1919
import com.google.cloud.ServiceFactory;
2020

google-cloud-compute/src/main/java/com/google/cloud/compute/ComputeImpl.java renamed to google-cloud-compute/src/main/java/com/google/cloud/compute/deprecated/ComputeImpl.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.google.cloud.compute;
17+
package com.google.cloud.compute.deprecated;
1818

1919
import static com.google.cloud.RetryHelper.runWithRetries;
2020
import static com.google.common.base.Preconditions.checkArgument;
@@ -25,9 +25,9 @@
2525
import com.google.cloud.PageImpl.NextPageFetcher;
2626
import com.google.cloud.RetryHelper;
2727
import com.google.cloud.Tuple;
28-
import com.google.cloud.compute.AttachedDisk.PersistentDiskConfiguration;
29-
import com.google.cloud.compute.NetworkInterface.AccessConfig;
30-
import com.google.cloud.compute.spi.v1.ComputeRpc;
28+
import com.google.cloud.compute.deprecated.AttachedDisk.PersistentDiskConfiguration;
29+
import com.google.cloud.compute.deprecated.NetworkInterface.AccessConfig;
30+
import com.google.cloud.compute.deprecated.spi.v1.ComputeRpc;
3131
import com.google.common.base.Function;
3232
import com.google.common.collect.ImmutableList;
3333
import com.google.common.collect.Iterables;

0 commit comments

Comments
 (0)