diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 8807efcad..9786771c4 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:7c853edc4136ae8f19f9d46d4569d38de2e446db2eea057f32e412bdba255846 + digest: sha256:3c950ed12391ebaffd1ee66d0374766a1c50144ebe6a7a0042300b2e6bb5856b diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 3321c4fe4..30fdb7b9c 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -4,9 +4,7 @@ # For syntax help see: # https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax -# The @googleapis/actools-java is the default owner for changes in this repo -* @googleapis/yoshi-java @googleapis/actools-java -**/*.java @googleapis/actools-java +* @googleapis/yoshi-java # The java-samples-reviewers team is the default owner for samples changes samples/**/*.java @googleapis/java-samples-reviewers diff --git a/.github/workflows/approve-readme.yaml b/.github/workflows/approve-readme.yaml index c51324279..1bb182327 100644 --- a/.github/workflows/approve-readme.yaml +++ b/.github/workflows/approve-readme.yaml @@ -1,3 +1,18 @@ +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Github action job to test core java library features on +# downstream client libraries before they are released. on: pull_request: name: auto-merge-readme diff --git a/.github/workflows/auto-release.yaml b/.github/workflows/auto-release.yaml index 59c7cadde..18e23230d 100644 --- a/.github/workflows/auto-release.yaml +++ b/.github/workflows/auto-release.yaml @@ -1,3 +1,18 @@ +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Github action job to test core java library features on +# downstream client libraries before they are released. on: pull_request: name: auto-release @@ -16,13 +31,13 @@ jobs: return; } - // only approve PRs like "chore: release " - if ( !context.payload.pull_request.title.startsWith("chore: release") ) { + // only approve PRs like "chore(main): release " + if ( !context.payload.pull_request.title.startsWith("chore(main): release") ) { return; } // only approve PRs with pom.xml and versions.txt changes - const filesPromise = github.pulls.listFiles.endpoint({ + const filesPromise = github.rest.pulls.listFiles.endpoint({ owner: context.repo.owner, repo: context.repo.repo, pull_number: context.payload.pull_request.number, @@ -54,7 +69,7 @@ jobs: return; } - const promise = github.pulls.list.endpoint({ + const promise = github.rest.pulls.list.endpoint({ owner: context.repo.owner, repo: context.repo.repo, state: 'open' @@ -71,7 +86,7 @@ jobs: } // approve release PR - await github.pulls.createReview({ + await github.rest.pulls.createReview({ owner: context.repo.owner, repo: context.repo.repo, body: 'Rubber stamped release!', @@ -80,7 +95,7 @@ jobs: }); // attach kokoro:force-run and automerge labels - await github.issues.addLabels({ + await github.rest.issues.addLabels({ owner: context.repo.owner, repo: context.repo.repo, issue_number: context.payload.pull_request.number, diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 05de1f60d..6b5e56aaa 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,3 +1,18 @@ +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Github action job to test core java library features on +# downstream client libraries before they are released. on: push: branches: diff --git a/.github/workflows/samples.yaml b/.github/workflows/samples.yaml index c46230a78..d5d964df1 100644 --- a/.github/workflows/samples.yaml +++ b/.github/workflows/samples.yaml @@ -1,3 +1,18 @@ +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Github action job to test core java library features on +# downstream client libraries before they are released. on: pull_request: name: samples diff --git a/.kokoro/build.bat b/.kokoro/build.bat index 05826ad93..cc602c9eb 100644 --- a/.kokoro/build.bat +++ b/.kokoro/build.bat @@ -1,3 +1,18 @@ :: See documentation in type-shell-output.bat +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Github action job to test core java library features on +# downstream client libraries before they are released. "C:\Program Files\Git\bin\bash.exe" %~dp0build.sh diff --git a/.readme-partials.yaml b/.readme-partials.yaml index 2c11435cf..8043f12af 100644 --- a/.readme-partials.yaml +++ b/.readme-partials.yaml @@ -1,11 +1,11 @@ custom_content: | ### Compute alpha to beta migration - From version 1.6.0-beta `google-cloud-compute` will have the following feature changes: + Java compute library is GA from version 1.7.0 and backwards incompatible with 0.x.x. Also it is incompatible with 1.5.x-alpha and prior in a following way: - Everything except polling methods which used to return `Operation` now returns `OperationFuture`. - Library automatically polls Operation status. - `Operation op = client.myMethod(args)` should be replaced with `OperationFuture opFuture = client.myMethodAsync(args);` - - Manual polling now just calls `opFuture.get()` and wait for it to complete polling. + - Polling is now done automatically, manual polling is no longer required. Calling `opFuture.get()` will wait for automatic polling to complete. It will return the result of the long running operation once the operation is completed on the server side or throw an exception if an error occurs during polling. - To check for intermediate status on the future use either `opFuture.peekMetadata()` (non-blocking) or `opFuture.getMetadata()` (blocking) - If you wish to stop automatic polling call `opFuture.cancel()` - it will cancel the future on the client side but it will not affect the execution of the operation on the server side in any way (server will keep working on the operation). - The calls still may be done without relying on automatic polling and/or OperationFuture. To do so, use `client.myMethodCallable(MyMethodRequest).call()` semantics instead. Note this semantics does not have flattened method declarations and the request message must be instantiated explicitly by the users code. diff --git a/.repo-metadata.json b/.repo-metadata.json index 1fe0ca7ec..08cd7b608 100644 --- a/.repo-metadata.json +++ b/.repo-metadata.json @@ -12,7 +12,6 @@ "distribution_name": "com.google.cloud:google-cloud-compute", "api_id": "compute.googleapis.com", "requires_billing": true, - "codeowner_team": "@googleapis/actools-java", "library_type": "GAPIC_AUTO", "excluded_dependencies": "grpc-google-cloud-compute-v1", "excluded_poms": "grpc-google-cloud-compute-v1" diff --git a/CHANGELOG.md b/CHANGELOG.md index af8118069..0175fadc1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [1.7.2](https://github.com/googleapis/java-compute/compare/v1.7.1...v1.7.2) (2022-02-11) + + +### Dependencies + +* update actions/github-script action to v6 ([#643](https://github.com/googleapis/java-compute/issues/643)) ([82ed9e7](https://github.com/googleapis/java-compute/commit/82ed9e75a1bc15404c2cd8d5d9bcfc360364a57d)) + ### [1.7.1](https://github.com/googleapis/java-compute/compare/v1.7.0...v1.7.1) (2022-02-04) diff --git a/README.md b/README.md index 5a6805e2f..502067d7e 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-compute - 1.7.0 + 1.7.1 ``` @@ -27,13 +27,13 @@ If you are using Maven, add this to your pom.xml file: If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-compute:1.7.0' +implementation 'com.google.cloud:google-cloud-compute:1.7.1' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "1.7.0" +libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "1.7.1" ``` ## Authentication @@ -72,11 +72,11 @@ use this Compute Engine Client Library. ### Compute alpha to beta migration -From version 1.6.0-beta `google-cloud-compute` will have the following feature changes: +Java compute library is GA from version 1.7.0 and backwards incompatible with 0.x.x. Also it is incompatible with 1.5.x-alpha and prior in a following way: - Everything except polling methods which used to return `Operation` now returns `OperationFuture`. - Library automatically polls Operation status. - `Operation op = client.myMethod(args)` should be replaced with `OperationFuture opFuture = client.myMethodAsync(args);` -- Manual polling now just calls `opFuture.get()` and wait for it to complete polling. +- Polling is now done automatically, manual polling is no longer required. Calling `opFuture.get()` will wait for automatic polling to complete. It will return the result of the long running operation once the operation is completed on the server side or throw an exception if an error occurs during polling. - To check for intermediate status on the future use either `opFuture.peekMetadata()` (non-blocking) or `opFuture.getMetadata()` (blocking) - If you wish to stop automatic polling call `opFuture.cancel()` - it will cancel the future on the client side but it will not affect the execution of the operation on the server side in any way (server will keep working on the operation). - The calls still may be done without relying on automatic polling and/or OperationFuture. To do so, use `client.myMethodCallable(MyMethodRequest).call()` semantics instead. Note this semantics does not have flattened method declarations and the request message must be instantiated explicitly by the users code. diff --git a/google-cloud-compute-bom/pom.xml b/google-cloud-compute-bom/pom.xml index 79c18167b..acb1f2298 100644 --- a/google-cloud-compute-bom/pom.xml +++ b/google-cloud-compute-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-compute-bom - 1.7.1 + 1.7.2 pom com.google.cloud google-cloud-shared-config - 1.2.6 + 1.2.7 Google Compute Engine BOM @@ -52,12 +52,12 @@ com.google.cloud google-cloud-compute - 1.7.1 + 1.7.2 com.google.api.grpc proto-google-cloud-compute-v1 - 1.7.1 + 1.7.2 diff --git a/google-cloud-compute/pom.xml b/google-cloud-compute/pom.xml index efc179c09..f2774292c 100644 --- a/google-cloud-compute/pom.xml +++ b/google-cloud-compute/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-compute - 1.7.1 + 1.7.2 jar Google Compute Engine https://github.com/googleapis/java-compute @@ -13,7 +13,7 @@ com.google.cloud google-cloud-compute-parent - 1.7.1 + 1.7.2 google-cloud-compute diff --git a/pom.xml b/pom.xml index fc658015a..d625b8b90 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-compute-parent pom - 1.7.1 + 1.7.2 Google Compute Engine Parent https://github.com/googleapis/java-compute @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.2.6 + 1.2.7 @@ -61,12 +61,12 @@ com.google.cloud google-cloud-compute - 1.7.1 + 1.7.2 com.google.api.grpc proto-google-cloud-compute-v1 - 1.7.1 + 1.7.2 @@ -114,7 +114,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.1.1 + 3.2.1 @@ -141,7 +141,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.3.1 + 3.3.2 html diff --git a/proto-google-cloud-compute-v1/pom.xml b/proto-google-cloud-compute-v1/pom.xml index 1e45c4de0..01ed66eb6 100644 --- a/proto-google-cloud-compute-v1/pom.xml +++ b/proto-google-cloud-compute-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-compute-v1 - 1.7.1 + 1.7.2 proto-google-cloud-compute-v1 Proto library for google-cloud-compute com.google.cloud google-cloud-compute-parent - 1.7.1 + 1.7.2 diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 9b8f54569..6f41ef95e 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-compute - 1.7.0 + 1.7.1 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 7b712d3c6..ab733ebef 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-compute - 1.7.0 + 1.7.1 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 20457a366..f9e6924a0 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-compute - 1.7.0 + 1.7.1 diff --git a/versions.txt b/versions.txt index 185294bc5..f6aec69d3 100644 --- a/versions.txt +++ b/versions.txt @@ -1,5 +1,5 @@ # Format: # module:released-version:current-version -google-cloud-compute:1.7.1:1.7.1 -proto-google-cloud-compute-v1:1.7.1:1.7.1 +google-cloud-compute:1.7.2:1.7.2 +proto-google-cloud-compute-v1:1.7.2:1.7.2