Skip to content
This repository was archived by the owner on Jul 15, 2024. It is now read-only.

Commit 90f7b41

Browse files
authored
feat: Introduce automatic LRO polling, integrate latest compute API definitions (#583)
feat: Introduce automatic LRO polling; all LRO methods now return `OperationFuture<>` instead of `Operation` and poling is done automatically; calling `cancel()` on the future will cancel polling but not the operation itself on the server side. chore: migrate to owlbot fix: rename `IPProtocol` to `IPProtocolEnum`
1 parent 100e21f commit 90f7b41

File tree

2,629 files changed

+229387
-141330
lines changed

Some content is hidden

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

2,629 files changed

+229387
-141330
lines changed

.github/.OwlBot.lock.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
docker:
2+
digest: sha256:4e961d006ec9e44501273788f3cbe1e060c4666742ba190f60d6a05bcdf3ac8f
3+
image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest

.github/.OwlBot.yaml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Copyright 2021 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
docker:
16+
image: "gcr.io/cloud-devrel-public-resources/owlbot-java:latest"
17+
18+
deep-remove-regex:
19+
- "/proto-google-.*/src"
20+
- "/google-.*/src"
21+
22+
deep-preserve-regex:
23+
- "/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java"
24+
- "/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/integration"
25+
26+
deep-copy-regex:
27+
- source: "/google/cloud/compute/(v\\d)/.*-java/proto-google-.*/src"
28+
dest: "/owl-bot-staging/$1/proto-google-cloud-compute-$1/src"
29+
- source: "/google/cloud/compute/(v\\d)/.*-java/gapic-google-.*/src"
30+
dest: "/owl-bot-staging/$1/google-cloud-compute/src"

.repo-metadata.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,7 @@
1313
"api_id": "compute.googleapis.com",
1414
"requires_billing": true,
1515
"codeowner_team": "@googleapis/actools-java",
16-
"library_type": "GAPIC_AUTO"
16+
"library_type": "GAPIC_AUTO",
17+
"excluded_dependencies": "grpc-google-cloud-compute-v1",
18+
"excluded_poms": "grpc-google-cloud-compute-v1"
1719
}

README.md

+5-6
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,21 @@ If you are using Maven, add this to your pom.xml file:
2222
<dependency>
2323
<groupId>com.google.cloud</groupId>
2424
<artifactId>google-cloud-compute</artifactId>
25-
<version>1.4.1-alpha</version>
25+
<version>1.5.0-alpha</version>
2626
</dependency>
2727

2828
```
2929

3030
If you are using Gradle without BOM, add this to your dependencies
3131

3232
```Groovy
33-
implementation 'com.google.cloud:google-cloud-compute:1.4.1-alpha'
33+
implementation 'com.google.cloud:google-cloud-compute:1.5.0-alpha'
3434
```
3535

3636
If you are using SBT, add this to your dependencies
3737

3838
```Scala
39-
libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "1.4.1-alpha"
39+
libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "1.5.0-alpha"
4040
```
4141

4242
## Authentication
@@ -138,7 +138,7 @@ Compute Engine uses HTTP/JSON for the transport layer.
138138

139139
## Supported Java Versions
140140

141-
Java 7 or above is required for using this client.
141+
Java 8 or above is required for using this client.
142142

143143
Google's Java client libraries,
144144
[Google Cloud Client Libraries][cloudlibs]
@@ -210,7 +210,6 @@ Apache 2.0 - See [LICENSE][license] for more information.
210210

211211
Java Version | Status
212212
------------ | ------
213-
Java 7 | [![Kokoro CI][kokoro-badge-image-1]][kokoro-badge-link-1]
214213
Java 8 | [![Kokoro CI][kokoro-badge-image-2]][kokoro-badge-link-2]
215214
Java 8 OSX | [![Kokoro CI][kokoro-badge-image-3]][kokoro-badge-link-3]
216215
Java 8 Windows | [![Kokoro CI][kokoro-badge-image-4]][kokoro-badge-link-4]
@@ -219,7 +218,7 @@ Java 11 | [![Kokoro CI][kokoro-badge-image-5]][kokoro-badge-link-5]
219218
Java is a registered trademark of Oracle and/or its affiliates.
220219

221220
[product-docs]: https://cloud.google.com/compute/
222-
[javadocs]: https://googleapis.dev/java/google-cloud-compute/latest/index.html
221+
[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-compute/latest/history
223222
[kokoro-badge-image-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-compute/java7.svg
224223
[kokoro-badge-link-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-compute/java7.html
225224
[kokoro-badge-image-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-compute/java8.svg

google-cloud-compute-bom/pom.xml

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0"?>
1+
<?xml version='1.0' encoding='UTF-8'?>
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>com.google.cloud</groupId>
@@ -49,7 +49,6 @@
4949

5050
<dependencyManagement>
5151
<dependencies>
52-
5352
<dependency>
5453
<groupId>com.google.cloud</groupId>
5554
<artifactId>google-cloud-compute</artifactId>
@@ -74,4 +73,4 @@
7473
</plugin>
7574
</plugins>
7675
</build>
77-
</project>
76+
</project>

google-cloud-compute/clirr-ignored-differences.xml

+136
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,140 @@
4141
<className>com/google/cloud/compute/**</className>
4242
<field>*MethodDescriptor</field>
4343
</difference>
44+
<!-- Removes method -->
45+
<difference>
46+
<differenceType>7002</differenceType>
47+
<className>com/google/cloud/compute/v1/**</className>
48+
<method>* delete*(*)</method>
49+
</difference>
50+
<difference>
51+
<differenceType>7002</differenceType>
52+
<className>com/google/cloud/compute/v1/**</className>
53+
<method>* insert*(*)</method>
54+
</difference>
55+
<difference>
56+
<differenceType>7002</differenceType>
57+
<className>com/google/cloud/compute/v1/**</className>
58+
<method>* patch*(*)</method>
59+
</difference>
60+
<difference>
61+
<differenceType>7002</differenceType>
62+
<className>com/google/cloud/compute/v1/**</className>
63+
<method>* update*(*)</method>
64+
</difference>
65+
<difference>
66+
<differenceType>7002</differenceType>
67+
<className>com/google/cloud/compute/v1/**</className>
68+
<method>* set*(*)</method>
69+
</difference>
70+
<difference>
71+
<differenceType>7002</differenceType>
72+
<className>com/google/cloud/compute/v1/**</className>
73+
<method>* remove*(*)</method>
74+
</difference>
75+
<difference>
76+
<differenceType>7002</differenceType>
77+
<className>com/google/cloud/compute/v1/**</className>
78+
<method>* add*(*)</method>
79+
</difference>
80+
<difference>
81+
<differenceType>7002</differenceType>
82+
<className>com/google/cloud/compute/v1/**</className>
83+
<method>* expand*(*)</method>
84+
</difference>
85+
<difference>
86+
<differenceType>7002</differenceType>
87+
<className>com/google/cloud/compute/v1/**</className>
88+
<method>* invalidate*(*)</method>
89+
</difference>
90+
<difference>
91+
<differenceType>7002</differenceType>
92+
<className>com/google/cloud/compute/v1/**</className>
93+
<method>* resize(*)</method>
94+
</difference>
95+
<difference>
96+
<differenceType>7002</differenceType>
97+
<className>com/google/cloud/compute/v1/**</className>
98+
<method>* bulk*(*)</method>
99+
</difference>
100+
<difference>
101+
<differenceType>7002</differenceType>
102+
<className>com/google/cloud/compute/v1/**</className>
103+
<method>* create*(*)</method>
104+
</difference>
105+
<difference>
106+
<differenceType>7002</differenceType>
107+
<className>com/google/cloud/compute/v1/**</className>
108+
<method>* apply*(*)</method>
109+
</difference>
110+
<difference>
111+
<differenceType>7002</differenceType>
112+
<className>com/google/cloud/compute/v1/**</className>
113+
<method>* abandon*(*)</method>
114+
</difference>
115+
<difference>
116+
<differenceType>7002</differenceType>
117+
<className>com/google/cloud/compute/v1/**</className>
118+
<method>* recreate*(*)</method>
119+
</difference>
120+
<difference>
121+
<differenceType>7002</differenceType>
122+
<className>com/google/cloud/compute/v1/**</className>
123+
<method>* enable*(*)</method>
124+
</difference>
125+
<difference>
126+
<differenceType>7002</differenceType>
127+
<className>com/google/cloud/compute/v1/**</className>
128+
<method>* disable*(*)</method>
129+
</difference>
130+
<difference>
131+
<differenceType>7002</differenceType>
132+
<className>com/google/cloud/compute/v1/**</className>
133+
<method>* move*(*)</method>
134+
</difference>
135+
<difference>
136+
<differenceType>7002</differenceType>
137+
<className>com/google/cloud/compute/v1/**</className>
138+
<method>* switch*(*)</method>
139+
</difference>
140+
<difference>
141+
<differenceType>7002</differenceType>
142+
<className>com/google/cloud/compute/v1/**</className>
143+
<method>* attach*(*)</method>
144+
</difference>
145+
<difference>
146+
<differenceType>7002</differenceType>
147+
<className>com/google/cloud/compute/v1/**</className>
148+
<method>* start*(*)</method>
149+
</difference>
150+
<difference>
151+
<differenceType>7002</differenceType>
152+
<className>com/google/cloud/compute/v1/**</className>
153+
<method>* simulate*(*)</method>
154+
</difference>
155+
<difference>
156+
<differenceType>7002</differenceType>
157+
<className>com/google/cloud/compute/v1/**</className>
158+
<method>* detach*(*)</method>
159+
</difference>
160+
<difference>
161+
<differenceType>7002</differenceType>
162+
<className>com/google/cloud/compute/v1/**</className>
163+
<method>* clone*(*)</method>
164+
</difference>
165+
<difference>
166+
<differenceType>7002</differenceType>
167+
<className>com/google/cloud/compute/v1/**</className>
168+
<method>* deprecate*(*)</method>
169+
</difference>
170+
<difference>
171+
<differenceType>7002</differenceType>
172+
<className>com/google/cloud/compute/v1/**</className>
173+
<method>* reset*(*)</method>
174+
</difference>
175+
<difference>
176+
<differenceType>7002</differenceType>
177+
<className>com/google/cloud/compute/v1/**</className>
178+
<method>* stop*(*)</method>
179+
</difference>
44180
</differences>

google-cloud-compute/pom.xml

+10-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
<?xml version="1.0"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0"
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
1+
<?xml version='1.0' encoding='UTF-8'?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
53
<modelVersion>4.0.0</modelVersion>
64
<groupId>com.google.cloud</groupId>
75
<artifactId>google-cloud-compute</artifactId>
@@ -49,6 +47,14 @@
4947
<groupId>com.google.http-client</groupId>
5048
<artifactId>google-http-client</artifactId>
5149
</dependency>
50+
<dependency>
51+
<groupId>com.google.api.grpc</groupId>
52+
<artifactId>proto-google-common-protos</artifactId>
53+
</dependency>
54+
<dependency>
55+
<groupId>com.google.protobuf</groupId>
56+
<artifactId>protobuf-java</artifactId>
57+
</dependency>
5258

5359
<!-- Test dependencies -->
5460
<dependency>

0 commit comments

Comments
 (0)