From c6829170027f7635794c2790270d5663e02ab695 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 17 Jun 2021 19:34:02 +0000 Subject: [PATCH 01/23] chore: release 0.3.1-SNAPSHOT (#194) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-notebooks-bom/pom.xml | 8 ++++---- google-cloud-notebooks/pom.xml | 4 ++-- grpc-google-cloud-notebooks-v1beta1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-notebooks-v1beta1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-notebooks-bom/pom.xml b/google-cloud-notebooks-bom/pom.xml index a94d9fb8..95bdafa4 100644 --- a/google-cloud-notebooks-bom/pom.xml +++ b/google-cloud-notebooks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-notebooks-bom - 0.3.0 + 0.3.1-SNAPSHOT pom com.google.cloud @@ -68,17 +68,17 @@ com.google.cloud google-cloud-notebooks - 0.3.0 + 0.3.1-SNAPSHOT com.google.api.grpc proto-google-cloud-notebooks-v1beta1 - 0.3.0 + 0.3.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-notebooks-v1beta1 - 0.3.0 + 0.3.1-SNAPSHOT diff --git a/google-cloud-notebooks/pom.xml b/google-cloud-notebooks/pom.xml index 32f6c38e..4a595370 100644 --- a/google-cloud-notebooks/pom.xml +++ b/google-cloud-notebooks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-notebooks - 0.3.0 + 0.3.1-SNAPSHOT jar Google AI Platform Notebooks https://github.com/googleapis/java-notebooks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-notebooks-parent - 0.3.0 + 0.3.1-SNAPSHOT google-cloud-notebooks diff --git a/grpc-google-cloud-notebooks-v1beta1/pom.xml b/grpc-google-cloud-notebooks-v1beta1/pom.xml index c7008970..a5e58e4f 100644 --- a/grpc-google-cloud-notebooks-v1beta1/pom.xml +++ b/grpc-google-cloud-notebooks-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-notebooks-v1beta1 - 0.3.0 + 0.3.1-SNAPSHOT grpc-google-cloud-notebooks-v1beta1 GRPC library for grpc-google-cloud-notebooks-v1beta1 com.google.cloud google-cloud-notebooks-parent - 0.3.0 + 0.3.1-SNAPSHOT diff --git a/pom.xml b/pom.xml index 4a85865d..a5ff9e23 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-notebooks-parent pom - 0.3.0 + 0.3.1-SNAPSHOT Google AI Platform Notebooks Parent https://github.com/googleapis/java-notebooks @@ -70,17 +70,17 @@ com.google.cloud google-cloud-notebooks - 0.3.0 + 0.3.1-SNAPSHOT com.google.api.grpc proto-google-cloud-notebooks-v1beta1 - 0.3.0 + 0.3.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-notebooks-v1beta1 - 0.3.0 + 0.3.1-SNAPSHOT diff --git a/proto-google-cloud-notebooks-v1beta1/pom.xml b/proto-google-cloud-notebooks-v1beta1/pom.xml index 3cc8fa7e..7b939ee9 100644 --- a/proto-google-cloud-notebooks-v1beta1/pom.xml +++ b/proto-google-cloud-notebooks-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-notebooks-v1beta1 - 0.3.0 + 0.3.1-SNAPSHOT proto-google-cloud-notebooks-v1beta1 PROTO library for proto-google-cloud-notebooks-v1beta1 com.google.cloud google-cloud-notebooks-parent - 0.3.0 + 0.3.1-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index f6bedf6e..da69197c 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-notebooks - 0.3.0 + 0.3.1-SNAPSHOT diff --git a/versions.txt b/versions.txt index f84f6763..046e19cf 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-notebooks:0.3.0:0.3.0 -proto-google-cloud-notebooks-v1beta1:0.3.0:0.3.0 -grpc-google-cloud-notebooks-v1beta1:0.3.0:0.3.0 \ No newline at end of file +google-cloud-notebooks:0.3.0:0.3.1-SNAPSHOT +proto-google-cloud-notebooks-v1beta1:0.3.0:0.3.1-SNAPSHOT +grpc-google-cloud-notebooks-v1beta1:0.3.0:0.3.1-SNAPSHOT \ No newline at end of file From 86e7c5e0a7de27e3e86df0cb3b754be3146d1e92 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 18 Jun 2021 00:35:05 +0200 Subject: [PATCH 02/23] chore(deps): update dependency com.google.cloud:google-cloud-notebooks to v0.3.0 (#195) --- samples/install-without-bom/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 955c675b..b13d9b11 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-notebooks - 0.2.6 + 0.3.0 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 7e154c9d..367844c6 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-notebooks - 0.2.6 + 0.3.0 From 7c298fbe61c7ecb6ad91a1527d60dac25c6dcf56 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 17 Jun 2021 15:54:03 -0700 Subject: [PATCH 03/23] chore: regenerate README (#196) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-06-17 22:38:19,431 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-notebooks/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-06-17 22:38:20,618 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/9cb70eb2-eaf5-4682-ac19-1201be123e6f/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 99ad075e..af905c2b 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-notebooks.git", - "sha": "f9d3af7003042d426d2f81a938829eae89840a17" + "sha": "86e7c5e0a7de27e3e86df0cb3b754be3146d1e92" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "0a071b3460344886297a304253bf924aa68ddb7e" + "sha": "c72e5beaba53532dc561094b2d8483e4da06921d" } } ] diff --git a/README.md b/README.md index 32e2ef15..a3d148e9 100644 --- a/README.md +++ b/README.md @@ -20,19 +20,19 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-notebooks - 0.2.6 + 0.3.0 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-notebooks:0.2.6' +compile 'com.google.cloud:google-cloud-notebooks:0.3.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-notebooks" % "0.2.6" +libraryDependencies += "com.google.cloud" % "google-cloud-notebooks" % "0.3.0" ``` ## Authentication From ee7afc372c6b13287db3b79c40278795c041ddfb Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 22 Jun 2021 08:04:07 -0700 Subject: [PATCH 04/23] chore: minimize noise from build scripts (#197) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/17af2da2-8b71-4742-9fa6-259d2a329a67/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/1c0c698705e668ccb3d68556ae7260f16ce63a6e --- .kokoro/coerce_logs.sh | 1 - synth.metadata | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.kokoro/coerce_logs.sh b/.kokoro/coerce_logs.sh index 5cf7ba49..46edbf7f 100755 --- a/.kokoro/coerce_logs.sh +++ b/.kokoro/coerce_logs.sh @@ -28,7 +28,6 @@ job=$(basename ${KOKORO_JOB_NAME}) echo "coercing sponge logs..." for xml in `find . -name *-sponge_log.xml` do - echo "processing ${xml}" class=$(basename ${xml} | cut -d- -f2) dir=$(dirname ${xml})/${job}/${class} text=$(dirname ${xml})/${class}-sponge_log.txt diff --git a/synth.metadata b/synth.metadata index 7cd8a298..d8354552 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-notebooks.git", - "sha": "54c3021955d2308d37a2a16701524b7ec7de6f71" + "sha": "7c298fbe61c7ecb6ad91a1527d60dac25c6dcf56" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "8f76a885deaaf2fe234daeba4a8cc4d1b3de8086" + "sha": "1c0c698705e668ccb3d68556ae7260f16ce63a6e" } } ], From a3c4f6b0a8b18055c083a797fec1d7d0aacad6dc Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 23 Jun 2021 09:02:21 -0700 Subject: [PATCH 05/23] fix: Add `shopt -s nullglob` to dependencies script (#198) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/dfa6ad9a-152f-40df-82c2-80be93370a5f/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/87254ac89a9559864c0a245d6b150406439ce3d8 --- .kokoro/dependencies.sh | 1 + synth.metadata | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.kokoro/dependencies.sh b/.kokoro/dependencies.sh index a7e999d3..9030ba8f 100755 --- a/.kokoro/dependencies.sh +++ b/.kokoro/dependencies.sh @@ -14,6 +14,7 @@ # limitations under the License. set -eo pipefail +shopt -s nullglob ## Get the directory of the build script scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}")) diff --git a/synth.metadata b/synth.metadata index d8354552..593511b7 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-notebooks.git", - "sha": "7c298fbe61c7ecb6ad91a1527d60dac25c6dcf56" + "sha": "ee7afc372c6b13287db3b79c40278795c041ddfb" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "1c0c698705e668ccb3d68556ae7260f16ce63a6e" + "sha": "87254ac89a9559864c0a245d6b150406439ce3d8" } } ], From dbdcbee7d46416dffce92e819974a807401e32e8 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 2 Jul 2021 01:26:09 +0200 Subject: [PATCH 06/23] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v1.4.0 (#200) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `1.3.0` -> `1.4.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.4.0/compatibility-slim/1.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.4.0/confidence-slim/1.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v1.4.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​140-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare130v140-2021-06-30) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v1.3.0...v1.4.0) ##### Features - add grpc-gcp to dependencyManagement ([#​389](https://www.github.com/googleapis/java-shared-dependencies/issues/389)) ([57fd2e6](https://www.github.com/googleapis/java-shared-dependencies/commit/57fd2e646e28e37e0b5e4e1b37425d4897a8776f)) ##### Bug Fixes - Add `shopt -s nullglob` to dependencies script ([#​392](https://www.github.com/googleapis/java-shared-dependencies/issues/392)) ([f8f29df](https://www.github.com/googleapis/java-shared-dependencies/commit/f8f29df1c9cc6eca517c99113fb9509fd611ac92)) - Add common httpclient and oauth dependencies ([#​391](https://www.github.com/googleapis/java-shared-dependencies/issues/391)) ([09660e1](https://www.github.com/googleapis/java-shared-dependencies/commit/09660e1e50c96dcd7df4e80d8ad357f8256eda6c)) - Update dependencies.sh to not break on mac ([#​384](https://www.github.com/googleapis/java-shared-dependencies/issues/384)) ([0ae2841](https://www.github.com/googleapis/java-shared-dependencies/commit/0ae2841d7ce2885d041795c58a38d2d3973c2e5a)) ##### Dependencies - update dependency com.google.api-client:google-api-client-bom to v1.32.1 ([#​390](https://www.github.com/googleapis/java-shared-dependencies/issues/390)) ([00288c1](https://www.github.com/googleapis/java-shared-dependencies/commit/00288c18d09616582c8bec961ecc5c00ef1d4288)) - update dependency com.google.api:api-common to v1.10.4 ([#​385](https://www.github.com/googleapis/java-shared-dependencies/issues/385)) ([5f2b39b](https://www.github.com/googleapis/java-shared-dependencies/commit/5f2b39b5bdc4cec9d5ab2f050e11000ed372d057)) - update dependency com.google.api:gax-grpc to v1.65.1 ([#​382](https://www.github.com/googleapis/java-shared-dependencies/issues/382)) ([a2a1547](https://www.github.com/googleapis/java-shared-dependencies/commit/a2a15471dee21207a0b97b3bc8f6f59d6a4a2d13)) - update dependency com.google.protobuf:protobuf-bom to v3.17.3 ([#​379](https://www.github.com/googleapis/java-shared-dependencies/issues/379)) ([6f43eb5](https://www.github.com/googleapis/java-shared-dependencies/commit/6f43eb553dca98140d343bee3f1003096d79ee6c)) - update dependency io.grpc:grpc-bom to v1.38.1 ([#​386](https://www.github.com/googleapis/java-shared-dependencies/issues/386)) ([7b1d4cf](https://www.github.com/googleapis/java-shared-dependencies/commit/7b1d4cf317fbd75b91d6a63f82b5fc2f46eaf3ca)) - update dependency io.grpc:grpc-bom to v1.39.0 ([#​394](https://www.github.com/googleapis/java-shared-dependencies/issues/394)) ([ebc8af6](https://www.github.com/googleapis/java-shared-dependencies/commit/ebc8af6b3f850b58b35d9720a7a0b1545d4616bd)) - update gax.version to v1.66.0 ([#​395](https://www.github.com/googleapis/java-shared-dependencies/issues/395)) ([c73f73e](https://www.github.com/googleapis/java-shared-dependencies/commit/c73f73e84740a8117be342a66e179eaf3e29c6fd)) - update google.core.version to v1.95.1 ([#​381](https://www.github.com/googleapis/java-shared-dependencies/issues/381)) ([4496153](https://www.github.com/googleapis/java-shared-dependencies/commit/44961532f621b0ab19e9e7feebb7d588aef5d423)) - update google.core.version to v1.95.2 ([#​383](https://www.github.com/googleapis/java-shared-dependencies/issues/383)) ([7216859](https://www.github.com/googleapis/java-shared-dependencies/commit/7216859bcd67fa1ce1119831c33c50a2d5b79324)) - update google.core.version to v1.95.3 ([#​388](https://www.github.com/googleapis/java-shared-dependencies/issues/388)) ([354e4e8](https://www.github.com/googleapis/java-shared-dependencies/commit/354e4e811f4ba886406681a4261ac0455a9eb2d2)) - update google.core.version to v1.95.4 ([#​393](https://www.github.com/googleapis/java-shared-dependencies/issues/393)) ([be78ad8](https://www.github.com/googleapis/java-shared-dependencies/commit/be78ad85e31d8876eabafee7aa8242712573cb46))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-notebooks). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index a5ff9e23..d52b7c5b 100644 --- a/pom.xml +++ b/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-shared-dependencies - 1.3.0 + 1.4.0 pom import From 15d6c6eccb7f4108e9e218735b3d7ed436d23aa4 Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Wed, 7 Jul 2021 11:04:25 -0400 Subject: [PATCH 07/23] chore: remove distributionManagement section (#203) All java client libraries inherit the distributionManagement section form shared-config. To prevent individual pom files from overriding the shared-config version of distributionManagement, it is being removed. --- pom.xml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/pom.xml b/pom.xml index d52b7c5b..b96d2362 100644 --- a/pom.xml +++ b/pom.xml @@ -41,16 +41,7 @@ https://github.com/googleapis/java-notebooks/issues GitHub Issues - - - sonatype-nexus-snapshots - https://oss.sonatype.org/content/repositories/snapshots - - - sonatype-nexus-staging - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - - + Apache-2.0 From d5ab72dfb132318821076e3ca5a1fe2c30ea7f20 Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Thu, 8 Jul 2021 12:36:17 -0400 Subject: [PATCH 08/23] chore: remove distributionManagement section (#209) All java client libraries inherit the distributionManagement section form shared-config. To prevent individual pom files from overriding the shared-config version of distributionManagement, it is being removed. --- google-cloud-notebooks-bom/pom.xml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/google-cloud-notebooks-bom/pom.xml b/google-cloud-notebooks-bom/pom.xml index 95bdafa4..140e9416 100644 --- a/google-cloud-notebooks-bom/pom.xml +++ b/google-cloud-notebooks-bom/pom.xml @@ -43,17 +43,6 @@ true
- - - sonatype-nexus-snapshots - https://oss.sonatype.org/content/repositories/snapshots - - - sonatype-nexus-staging - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - - - The Apache Software License, Version 2.0 From c28fe5f23b3a9d903be86edb04da0874c02e395c Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 9 Jul 2021 10:02:39 -0700 Subject: [PATCH 09/23] chore: remove All rights reserved clause from java.header (#210) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/55cd9b68-f6e6-40a8-be70-9887c22d3eda/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/09c59c20a4bf0daed1665af59035ff240fe356df --- java.header | 2 +- synth.metadata | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java.header b/java.header index 3a9b503a..d0970ba7 100644 --- a/java.header +++ b/java.header @@ -1,5 +1,5 @@ ^/\*$ -^ \* Copyright \d\d\d\d,? Google (Inc\.|LLC)( All [rR]ights [rR]eserved\.)?$ +^ \* Copyright \d\d\d\d,? Google (Inc\.|LLC)$ ^ \*$ ^ \* Licensed under the Apache License, Version 2\.0 \(the "License"\);$ ^ \* you may not use this file except in compliance with the License\.$ diff --git a/synth.metadata b/synth.metadata index 593511b7..03586d29 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-notebooks.git", - "sha": "ee7afc372c6b13287db3b79c40278795c041ddfb" + "sha": "d5ab72dfb132318821076e3ca5a1fe2c30ea7f20" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "87254ac89a9559864c0a245d6b150406439ce3d8" + "sha": "09c59c20a4bf0daed1665af59035ff240fe356df" } } ], From cd677429f00839f7b876e00e66f364953d88b19a Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 15 Jul 2021 07:30:38 -0700 Subject: [PATCH 10/23] chore: add dependencyDashboardLabels to renovate.json (#211) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/eb3a58d4-aa88-4fab-8c20-53abc3423cdc/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/5d3c52f5db664eee9026db76b5bcb466f3a09ca9 --- renovate.json | 5 ++++- synth.metadata | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/renovate.json b/renovate.json index 5c10b672..2f5b2f4c 100644 --- a/renovate.json +++ b/renovate.json @@ -69,5 +69,8 @@ } ], "semanticCommits": true, - "masterIssue": true + "dependencyDashboard": true, + "dependencyDashboardLabels": [ + "type: process" + ] } diff --git a/synth.metadata b/synth.metadata index 03586d29..5e97872a 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-notebooks.git", - "sha": "d5ab72dfb132318821076e3ca5a1fe2c30ea7f20" + "sha": "c28fe5f23b3a9d903be86edb04da0874c02e395c" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "09c59c20a4bf0daed1665af59035ff240fe356df" + "sha": "5d3c52f5db664eee9026db76b5bcb466f3a09ca9" } } ], From f268957ba036b288c1e6416479d6b15b89270f5d Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 15 Jul 2021 07:58:24 -0700 Subject: [PATCH 11/23] chore: regenerate README (#212) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-07-15 14:38:16,287 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-notebooks/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-07-15 14:38:17,460 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/36099f24-c354-4cb6-bdef-2d4c62593781/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .github/readme/synth.metadata/synth.metadata | 4 +- README.md | 48 +++++++++++++++++++- 2 files changed, 49 insertions(+), 3 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index af905c2b..4d3d957e 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-notebooks.git", - "sha": "86e7c5e0a7de27e3e86df0cb3b754be3146d1e92" + "sha": "cd677429f00839f7b876e00e66f364953d88b19a" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "c72e5beaba53532dc561094b2d8483e4da06921d" + "sha": "4124d245133c0f740ac5e6fa2e7daeba327f1297" } } ] diff --git a/README.md b/README.md index a3d148e9..4aa228f1 100644 --- a/README.md +++ b/README.md @@ -75,10 +75,50 @@ To get help, follow the instructions in the [shared Troubleshooting document][tr AI Platform Notebooks uses gRPC for the transport layer. -## Java Versions +## Supported Java Versions Java 7 or above is required for using this client. +Google's Java client libraries, +[Google Cloud Client Libraries][cloudlibs] +and +[Google Cloud API Libraries][apilibs], +follow the +[Oracle Java SE support roadmap][oracle] +(see the Oracle Java SE Product Releases section). + +### For new development + +In general, new feature development occurs with support for the lowest Java +LTS version covered by Oracle's Premier Support (which typically lasts 5 years +from initial General Availability). If the minimum required JVM for a given +library is changed, it is accompanied by a [semver][semver] major release. + +Java 11 and (in September 2021) Java 17 are the best choices for new +development. + +### Keeping production systems current + +Google tests its client libraries with all current LTS versions covered by +Oracle's Extended Support (which typically lasts 8 years from initial +General Availability). + +#### Legacy support + +Google's client libraries support legacy versions of Java runtimes with long +term stable libraries that don't receive feature updates on a best efforts basis +as it may not be possible to backport all patches. + +Google provides updates on a best efforts basis to apps that continue to use +Java 7, though apps might need to upgrade to current versions of the library +that supports their JVM. + +#### Where to find specific information + +The latest versions and the supported Java versions are identified on +the individual GitHub repository `github.com/GoogleAPIs/java-SERVICENAME` +and on [google-cloud-java][g-c-j]. + ## Versioning @@ -142,3 +182,9 @@ Java is a registered trademark of Oracle and/or its affiliates. [enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=notebooks.googleapis.com [libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM [shell_img]: https://gstatic.com/cloudssh/images/open-btn.png + +[semver]: https://semver.org/ +[cloudlibs]: https://cloud.google.com/apis/docs/client-libraries-explained +[apilibs]: https://cloud.google.com/apis/docs/client-libraries-explained#google_api_client_libraries +[oracle]: https://www.oracle.com/java/technologies/java-se-support-roadmap.html +[g-c-j]: http://github.com/googleapis/google-cloud-java From d9c97a8a912c6a7d1ac714dbbdf8a14bebf661af Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Fri, 16 Jul 2021 13:44:34 -0400 Subject: [PATCH 12/23] chore: migrate to owlbot (#213) --- .github/.OwlBot.lock.yaml | 3 +++ .github/.OwlBot.yaml | 32 ++++++++++++++++++++++++++++++ .github/sync-repo-settings.yaml | 1 + google-cloud-notebooks-bom/pom.xml | 13 ++++++------ google-cloud-notebooks/pom.xml | 4 ++-- owlbot.py | 24 ++++++++++++++++++++++ pom.xml | 4 ++-- synth.py | 32 ------------------------------ versions.txt | 2 +- 9 files changed, 71 insertions(+), 44 deletions(-) create mode 100644 .github/.OwlBot.lock.yaml create mode 100644 .github/.OwlBot.yaml create mode 100644 owlbot.py delete mode 100644 synth.py diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml new file mode 100644 index 00000000..906e06fb --- /dev/null +++ b/.github/.OwlBot.lock.yaml @@ -0,0 +1,3 @@ +docker: + digest: sha256:b3f8a219abf58ed4a775da5b90934b34f477b74f6f4e5d15781694dcc67b6f41 + image: gcr.io/repo-automation-bots/owlbot-java:latest diff --git a/.github/.OwlBot.yaml b/.github/.OwlBot.yaml new file mode 100644 index 00000000..0ae9a6ac --- /dev/null +++ b/.github/.OwlBot.yaml @@ -0,0 +1,32 @@ +# Copyright 2021 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. + +docker: + image: "gcr.io/repo-automation-bots/owlbot-java:latest" + +deep-remove-regex: +- "/grpc-google-.*/src" +- "/proto-google-.*/src" +- "/google-.*/src" + +deep-preserve-regex: +- "/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + +deep-copy-regex: +- source: "/google/cloud/notebooks/(v.*)/.*-java/proto-google-.*/src" + dest: "/owl-bot-staging/$1/proto-google-cloud-notebooks-$1/src" +- source: "/google/cloud/notebooks/(v.*)/.*-java/grpc-google-.*/src" + dest: "/owl-bot-staging/$1/grpc-google-cloud-notebooks-$1/src" +- source: "/google/cloud/notebooks/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/$1/google-cloud-notebooks/src" diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index 6bddd18e..dbe495a7 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -39,6 +39,7 @@ branchProtectionRules: - "units (11)" - "Kokoro - Test: Integration" - "cla/google" + - "OwlBot Post Processor" # List of explicit permissions to add (additive only) permissionRules: - team: yoshi-admins diff --git a/google-cloud-notebooks-bom/pom.xml b/google-cloud-notebooks-bom/pom.xml index 140e9416..9b44082c 100644 --- a/google-cloud-notebooks-bom/pom.xml +++ b/google-cloud-notebooks-bom/pom.xml @@ -1,4 +1,4 @@ - + 4.0.0 com.google.cloud @@ -53,7 +53,6 @@ - com.google.cloud google-cloud-notebooks @@ -61,13 +60,13 @@ com.google.api.grpc - proto-google-cloud-notebooks-v1beta1 - 0.3.1-SNAPSHOT + grpc-google-cloud-notebooks-v1beta1 + 0.3.1-SNAPSHOT com.google.api.grpc - grpc-google-cloud-notebooks-v1beta1 - 0.3.1-SNAPSHOT + proto-google-cloud-notebooks-v1beta1 + 0.3.1-SNAPSHOT @@ -83,4 +82,4 @@ - \ No newline at end of file + diff --git a/google-cloud-notebooks/pom.xml b/google-cloud-notebooks/pom.xml index 4a595370..2f788f76 100644 --- a/google-cloud-notebooks/pom.xml +++ b/google-cloud-notebooks/pom.xml @@ -1,4 +1,4 @@ - + 4.0.0 com.google.cloud @@ -111,4 +111,4 @@ - \ No newline at end of file + diff --git a/owlbot.py b/owlbot.py new file mode 100644 index 00000000..dca9d867 --- /dev/null +++ b/owlbot.py @@ -0,0 +1,24 @@ +# Copyright 2021 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 +# +# https://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. + +import synthtool as s +from synthtool.languages import java + + +for library in s.get_staging_dirs(): + # put any special-case replacements here + s.move(library) + +s.remove_staging_dirs() +java.common_templates() diff --git a/pom.xml b/pom.xml index b96d2362..e668168c 100644 --- a/pom.xml +++ b/pom.xml @@ -110,8 +110,8 @@ google-cloud-notebooks - proto-google-cloud-notebooks-v1beta1 grpc-google-cloud-notebooks-v1beta1 + proto-google-cloud-notebooks-v1beta1 google-cloud-notebooks-bom @@ -184,4 +184,4 @@ - \ No newline at end of file + diff --git a/synth.py b/synth.py deleted file mode 100644 index 0b4bcd1a..00000000 --- a/synth.py +++ /dev/null @@ -1,32 +0,0 @@ -# Copyright 2020 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. - -"""This script is used to synthesize generated parts of this library.""" - -import synthtool as s -import synthtool.gcp as gcp -import synthtool.languages.java as java - -service = 'notebooks' -versions = ['v1beta1'] - -for version in versions: - java.bazel_library( - service=service, - version=version, - proto_path=f'google/cloud/{service}/{version}', - bazel_target=f'//google/cloud/{service}/{version}:google-cloud-{service}-{version}-java', - ) - -java.common_templates() \ No newline at end of file diff --git a/versions.txt b/versions.txt index 046e19cf..21f845e4 100644 --- a/versions.txt +++ b/versions.txt @@ -2,5 +2,5 @@ # module:released-version:current-version google-cloud-notebooks:0.3.0:0.3.1-SNAPSHOT +grpc-google-cloud-notebooks-v1beta1:0.3.0:0.3.1-SNAPSHOT proto-google-cloud-notebooks-v1beta1:0.3.0:0.3.1-SNAPSHOT -grpc-google-cloud-notebooks-v1beta1:0.3.0:0.3.1-SNAPSHOT \ No newline at end of file From 683c3e14ed6528d739ba3422a7faac8cbae918a6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 27 Jul 2021 22:52:37 +0200 Subject: [PATCH 13/23] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v0.13.1 (#216) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `0.12.0` -> `0.13.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.13.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.13.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.13.1/compatibility-slim/0.12.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.13.1/confidence-slim/0.12.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v0.13.1`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​0131-httpswwwgithubcomgoogleapisjava-shared-configcomparev0130v0131-2021-07-27) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v0.13.0...v0.13.1) ### [`v0.13.0`](https://togithub.com/googleapis/java-shared-config/releases/v0.13.0) ##### Features - add `gcf-owl-bot[bot]` to `ignoreAuthors` ([#​264](https://www.github.com/googleapis/java-shared-config/issues/264)) ([d274af8](https://www.github.com/googleapis/java-shared-config/commit/d274af836ac9b3e98be84e551b7e9e552397ecc1)) ##### Bug Fixes - Add shopt -s nullglob to dependencies script ([865ca3c](https://www.github.com/googleapis/java-shared-config/commit/865ca3cbf106a7aaae1a989320a1ad5a47b6ffaf)) - Update dependencies.sh to not break on mac ([#​276](https://www.github.com/googleapis/java-shared-config/issues/276)) ([865ca3c](https://www.github.com/googleapis/java-shared-config/commit/865ca3cbf106a7aaae1a989320a1ad5a47b6ffaf)) ##### Dependencies - update auto-value-annotation.version to v1.8.2 ([#​275](https://www.github.com/googleapis/java-shared-config/issues/275)) ([4d15246](https://www.github.com/googleapis/java-shared-config/commit/4d152461a5592940a8be762c7a8698a02dbe26cf)) - update dependency com.puppycrawl.tools:checkstyle to v8.43 ([#​266](https://www.github.com/googleapis/java-shared-config/issues/266)) ([fae7961](https://www.github.com/googleapis/java-shared-config/commit/fae7961412b33e34e8fcfec78d1451894d4e61d9)) - update dependency com.puppycrawl.tools:checkstyle to v8.44 ([#​274](https://www.github.com/googleapis/java-shared-config/issues/274)) ([d53d0e0](https://www.github.com/googleapis/java-shared-config/commit/d53d0e0935e908d16f4e7cf763577cf3fd8128d3)) ***
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-notebooks). --- google-cloud-notebooks-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-notebooks-bom/pom.xml b/google-cloud-notebooks-bom/pom.xml index 9b44082c..effdb631 100644 --- a/google-cloud-notebooks-bom/pom.xml +++ b/google-cloud-notebooks-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 0.12.0 + 0.13.1 Google AI Platform Notebooks BOM diff --git a/pom.xml b/pom.xml index e668168c..7c636a89 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 0.12.0 + 0.13.1 From 098f9529d409d61f763f199433209546f8cf2e37 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 28 Jul 2021 00:56:38 +0000 Subject: [PATCH 14/23] chore(docs): add Authorization section to Java README template (#1161) (#215) as a part of the PR 582 for java-logging an authorization section is added to the Java README template. Fixing googleapis/java-logging#570. Source-Link: https://github.com/googleapis/synthtool/commit/3d32990b6f4b57be77455e3ca89e6e21cd0c06b3 Post-Processor: gcr.io/repo-automation-bots/owlbot-java:latest@sha256:2904b9ad921ecc1343d1cf815bfaafbcc1115c1f39593aef9f8e333ffda552f7 --- .github/.OwlBot.lock.yaml | 2 +- README.md | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 906e06fb..419ccb9a 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: - digest: sha256:b3f8a219abf58ed4a775da5b90934b34f477b74f6f4e5d15781694dcc67b6f41 image: gcr.io/repo-automation-bots/owlbot-java:latest + digest: sha256:2904b9ad921ecc1343d1cf815bfaafbcc1115c1f39593aef9f8e333ffda552f7 diff --git a/README.md b/README.md index 4aa228f1..87da2cd3 100644 --- a/README.md +++ b/README.md @@ -11,11 +11,13 @@ Java idiomatic client for [AI Platform Notebooks][product-docs]. > Note: This client is a work-in-progress, and may occasionally > make backwards-incompatible changes. + ## Quickstart If you are using Maven, add this to your pom.xml file: + ```xml com.google.cloud @@ -26,11 +28,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 compile 'com.google.cloud:google-cloud-notebooks:0.3.0' ``` If you are using SBT, add this to your dependencies + ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-notebooks" % "0.3.0" ``` @@ -39,6 +43,10 @@ libraryDependencies += "com.google.cloud" % "google-cloud-notebooks" % "0.3.0" See the [Authentication][authentication] section in the base directory's README. +## Authorization + +The client application making API calls must be granted [authorization scopes][auth-scopes] required for the desired AI Platform Notebooks APIs, and the authenticated principal must have the [IAM role(s)][predefined-iam-roles] required to access GCP resources using the AI Platform Notebooks API calls. + ## Getting Started ### Prerequisites @@ -128,6 +136,7 @@ This library follows [Semantic Versioning](http://semver.org/). It is currently in major version zero (``0.y.z``), which means that anything may change at any time and the public API should not be considered stable. + ## Contributing @@ -139,6 +148,7 @@ Please note that this project is released with a Contributor Code of Conduct. By this project you agree to abide by its terms. See [Code of Conduct][code-of-conduct] for more information. + ## License Apache 2.0 - See [LICENSE][license] for more information. @@ -171,6 +181,9 @@ Java is a registered trademark of Oracle and/or its affiliates. [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-notebooks.svg [maven-version-link]: https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-notebooks&core=gav [authentication]: https://github.com/googleapis/google-cloud-java#authentication +[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes +[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles +[iam-policy]: https://cloud.google.com/iam/docs/overview#cloud-iam-policy [developer-console]: https://console.developers.google.com/ [create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects [cloud-sdk]: https://cloud.google.com/sdk/ From ceb77f3c645429ceed51847055b16d8c51f874cc Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 28 Jul 2021 08:58:39 -0700 Subject: [PATCH 15/23] chore: regenerate README (#217) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-07-27 20:57:49,126 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-notebooks/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-07-27 20:57:50,198 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/ff28cafd-e704-4258-ae8a-fd5c34ef0d27/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .github/readme/synth.metadata/synth.metadata | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 4d3d957e..8421744f 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-notebooks.git", - "sha": "cd677429f00839f7b876e00e66f364953d88b19a" + "sha": "683c3e14ed6528d739ba3422a7faac8cbae918a6" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "4124d245133c0f740ac5e6fa2e7daeba327f1297" + "sha": "3d32990b6f4b57be77455e3ca89e6e21cd0c06b3" } } ] From d9ef6d5e710b349f8571bcc777896ae08c80de4e Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Thu, 29 Jul 2021 15:48:42 -0400 Subject: [PATCH 16/23] build: configure branch java7 as a release branch (#220) enable releases --- .github/release-please.yml | 5 ++ .github/sync-repo-settings.yaml | 85 ++++++++++++++++----------------- 2 files changed, 45 insertions(+), 45 deletions(-) diff --git a/.github/release-please.yml b/.github/release-please.yml index 8ca7f9ca..7bf58076 100644 --- a/.github/release-please.yml +++ b/.github/release-please.yml @@ -1,3 +1,8 @@ bumpMinorPreMajor: true handleGHRelease: true releaseType: java-yoshi +branches: + - bumpMinorPreMajor: true + handleGHRelease: true + releaseType: java-yoshi + branch: java7 diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index dbe495a7..84b918e8 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -1,50 +1,45 @@ - -# Whether or not rebase-merging is enabled on this repository. -# Defaults to `true` rebaseMergeAllowed: false - -# Whether or not squash-merging is enabled on this repository. -# Defaults to `true` squashMergeAllowed: true - -# Whether or not PRs are merged with a merge commit on this repository. -# Defaults to `false` mergeCommitAllowed: false - -# Rules for master branch protection branchProtectionRules: -# Identifies the protection rule pattern. Name of the branch to be protected. -# Defaults to `master` -- pattern: master - # Can admins overwrite branch protection. - # Defaults to `true` - isAdminEnforced: true - # Number of approving reviews required to update matching branches. - # Defaults to `1` - requiredApprovingReviewCount: 1 - # Are reviews from code owners required to update matching branches. - # Defaults to `false` - requiresCodeOwnerReviews: true - # Require up to date branches - requiresStrictStatusChecks: false - # List of required status check contexts that must pass for commits to be accepted to matching branches. - requiredStatusCheckContexts: - - "dependencies (8)" - - "dependencies (11)" - - "linkage-monitor" - - "lint" - - "clirr" - - "units (7)" - - "units (8)" - - "units (11)" - - "Kokoro - Test: Integration" - - "cla/google" - - "OwlBot Post Processor" -# List of explicit permissions to add (additive only) + - pattern: master + isAdminEnforced: true + requiredApprovingReviewCount: 1 + requiresCodeOwnerReviews: true + requiresStrictStatusChecks: false + requiredStatusCheckContexts: + - dependencies (8) + - dependencies (11) + - linkage-monitor + - lint + - clirr + - units (7) + - units (8) + - units (11) + - 'Kokoro - Test: Integration' + - cla/google + - OwlBot Post Processor + - pattern: java7 + isAdminEnforced: true + requiredApprovingReviewCount: 1 + requiresCodeOwnerReviews: true + requiresStrictStatusChecks: false + requiredStatusCheckContexts: + - dependencies (8) + - dependencies (11) + - linkage-monitor + - lint + - clirr + - units (7) + - units (8) + - units (11) + - 'Kokoro - Test: Integration' + - cla/google + - OwlBot Post Processor permissionRules: -- team: yoshi-admins - permission: admin -- team: yoshi-java-admins - permission: admin -- team: yoshi-java - permission: push \ No newline at end of file + - team: yoshi-admins + permission: admin + - team: yoshi-java-admins + permission: admin + - team: yoshi-java + permission: push From 451e9ccd7530b5d51706ecfdfe595134f9a94d22 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 5 Aug 2021 00:06:47 +0200 Subject: [PATCH 17/23] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1 (#222) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `0.13.1` -> `1.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.0.0/compatibility-slim/0.13.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.0.0/confidence-slim/0.13.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.0.0`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​100-httpswwwgithubcomgoogleapisjava-shared-configcomparev0131v100-2021-07-29) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v0.13.1...v1.0.0) ##### âš  BREAKING CHANGES - update shared-config to java 1.8 ([#​277](https://togithub.com/googleapis/java-shared-config/issues/277)) ##### Features - update shared-config to java 1.8 ([#​277](https://www.github.com/googleapis/java-shared-config/issues/277)) ([9c297a2](https://www.github.com/googleapis/java-shared-config/commit/9c297a27bc236092aab3ae292c7bed206293bc51)) ##### [0.13.1](https://www.github.com/googleapis/java-shared-config/compare/v0.13.0...v0.13.1) (2021-07-27) ##### Bug Fixes - revert update dependency org.apache.maven.plugins:maven-dependency-plugin to v3.2.0 ([#​280](https://www.github.com/googleapis/java-shared-config/issues/280)) ([bdbbb9c](https://www.github.com/googleapis/java-shared-config/commit/bdbbb9c13571d0ef06009ebf03bc25c6e6fcbc17))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-notebooks). --- google-cloud-notebooks-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-notebooks-bom/pom.xml b/google-cloud-notebooks-bom/pom.xml index effdb631..333ad4f9 100644 --- a/google-cloud-notebooks-bom/pom.xml +++ b/google-cloud-notebooks-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 0.13.1 + 1.0.0 Google AI Platform Notebooks BOM diff --git a/pom.xml b/pom.xml index 7c636a89..0b4dd24c 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 0.13.1 + 1.0.0 From fa1f88a37c088ec89490b0b2ef2f8da1ed61a2f2 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 4 Aug 2021 23:16:31 +0000 Subject: [PATCH 18/23] chore: release gapic-generator-java v1.0.17 (#224) Committer: @miraleung PiperOrigin-RevId: 388499329 Source-Link: https://github.com/googleapis/googleapis/commit/bb0a090d9204110042ab5dee2ce9e06e8071ce54 Source-Link: https://github.com/googleapis/googleapis-gen/commit/d196f38277f745f7d99d468c5af0950bc9925b44 --- .../notebooks/v1beta1/stub/GrpcNotebookServiceStub.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/GrpcNotebookServiceStub.java b/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/GrpcNotebookServiceStub.java index 9d93277b..76d957d6 100644 --- a/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/GrpcNotebookServiceStub.java +++ b/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/GrpcNotebookServiceStub.java @@ -992,7 +992,13 @@ public UnaryCallable deleteEnvironmentCalla @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override From 0e026cacec57f5815f6d4701d197f20c0fadfc5b Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 5 Aug 2021 11:56:11 -0400 Subject: [PATCH 19/23] chore: remove java 7 units check (#1168) (#218) Source-Link: https://github.com/googleapis/synthtool/commit/1a2878d6909dd10ca4e3c1b5943d6622e996054e Post-Processor: gcr.io/repo-automation-bots/owlbot-java:latest@sha256:12cbdc4f137152a1a8b83f50ebc1a4098be0d3baff78b46efaec306f7cfafd13 Co-authored-by: Owl Bot --- .github/.OwlBot.lock.yaml | 2 +- .github/workflows/ci.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 419ccb9a..3f7432a5 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/repo-automation-bots/owlbot-java:latest - digest: sha256:2904b9ad921ecc1343d1cf815bfaafbcc1115c1f39593aef9f8e333ffda552f7 + digest: sha256:12cbdc4f137152a1a8b83f50ebc1a4098be0d3baff78b46efaec306f7cfafd13 diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0195b32f..65ae6ecd 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - java: [7, 8, 11] + java: [8, 11] steps: - uses: actions/checkout@v2 - uses: actions/setup-java@v1 From 3f6cb2928dd123e7a274eb9e0b7404797b967453 Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Thu, 5 Aug 2021 15:18:32 -0400 Subject: [PATCH 20/23] chore: remove java7 units check from required checks in master (#228) --- .github/sync-repo-settings.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index 84b918e8..ffd39f6f 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -13,7 +13,6 @@ branchProtectionRules: - linkage-monitor - lint - clirr - - units (7) - units (8) - units (11) - 'Kokoro - Test: Integration' From f5542e6b0a6177e3f36957d2d4841b451cd9ba5d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 6 Aug 2021 20:56:32 +0200 Subject: [PATCH 21/23] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2 (#226) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `1.4.0` -> `2.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.0.0/compatibility-slim/1.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.0.0/confidence-slim/1.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v2.0.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​200-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare140v200-2021-08-03) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v1.4.0...v2.0.0) ##### âš  BREAKING CHANGES - promote to 2.0.0 ([#​428](https://togithub.com/googleapis/java-shared-dependencies/issues/428)) ##### Features - promote to 2.0.0 ([#​428](https://www.github.com/googleapis/java-shared-dependencies/issues/428)) ([4db31f2](https://www.github.com/googleapis/java-shared-dependencies/commit/4db31f29f1668d4743e8af8996b0c4b30e6831b3)) ##### Documentation - we don't use this as a parent pom ([#​407](https://www.github.com/googleapis/java-shared-dependencies/issues/407)) ([4c86aaf](https://www.github.com/googleapis/java-shared-dependencies/commit/4c86aafc05097b6702056f5cb37736127b6df306)) ##### Dependencies - update dependency com.fasterxml.jackson:jackson-bom to v2.12.4 ([#​398](https://www.github.com/googleapis/java-shared-dependencies/issues/398)) ([f0d49b5](https://www.github.com/googleapis/java-shared-dependencies/commit/f0d49b54ba334f9351c66c9924e3d0d2ed7c0016)) - update dependency com.google.api:api-common to v1.10.6 ([#​411](https://www.github.com/googleapis/java-shared-dependencies/issues/411)) ([79801b5](https://www.github.com/googleapis/java-shared-dependencies/commit/79801b5fee08a8c97e275ed3674ab6c83b204a90)) - update dependency com.google.api:api-common to v2 ([#​414](https://www.github.com/googleapis/java-shared-dependencies/issues/414)) ([17f6e68](https://www.github.com/googleapis/java-shared-dependencies/commit/17f6e68a2792843dd41d3877c095e97c052c5ac0)) - update dependency com.google.auth:google-auth-library-bom to v0.27.0 ([#​400](https://www.github.com/googleapis/java-shared-dependencies/issues/400)) ([0d5a95b](https://www.github.com/googleapis/java-shared-dependencies/commit/0d5a95b84076684f84b0fdbb93a706113f44457d)) - update dependency com.google.auth:google-auth-library-bom to v1 ([#​413](https://www.github.com/googleapis/java-shared-dependencies/issues/413)) ([94897d3](https://www.github.com/googleapis/java-shared-dependencies/commit/94897d30bb1cac0059e272b058f6221fb7e4733f)) - update dependency com.google.cloud:grpc-gcp to v1.1.0 ([#​403](https://www.github.com/googleapis/java-shared-dependencies/issues/403)) ([3cc59f1](https://www.github.com/googleapis/java-shared-dependencies/commit/3cc59f15ebb31a7f97c9f3d78057022afabe75e9)) - update dependency com.google.errorprone:error_prone_annotations to v2.8.0 ([#​406](https://www.github.com/googleapis/java-shared-dependencies/issues/406)) ([2905787](https://www.github.com/googleapis/java-shared-dependencies/commit/29057879adeda8bc40a903ef3b5feafc83c3d972)) - update dependency com.google.errorprone:error_prone_annotations to v2.8.1 ([#​426](https://www.github.com/googleapis/java-shared-dependencies/issues/426)) ([853b68b](https://www.github.com/googleapis/java-shared-dependencies/commit/853b68b16c88c3abb745ee1f71ba4bb317cbc680)) - update gax.version to v1.67.0 ([#​405](https://www.github.com/googleapis/java-shared-dependencies/issues/405)) ([632dcd0](https://www.github.com/googleapis/java-shared-dependencies/commit/632dcd0a9f10b034a2a2ec92c7c3413490dd2a03)) - update gax.version to v2 (major) ([#​418](https://www.github.com/googleapis/java-shared-dependencies/issues/418)) ([670a9e0](https://www.github.com/googleapis/java-shared-dependencies/commit/670a9e0a9588a7e592eb5dd8c0cb9ab08e07293e)) - update google.core.version to v1.96.1 ([#​417](https://www.github.com/googleapis/java-shared-dependencies/issues/417)) ([49db9cb](https://www.github.com/googleapis/java-shared-dependencies/commit/49db9cb473c8d3d794ad57a41cfc223239482174)) - update google.core.version to v2 (major) ([#​427](https://www.github.com/googleapis/java-shared-dependencies/issues/427)) ([8cc7a92](https://www.github.com/googleapis/java-shared-dependencies/commit/8cc7a922cc3ba10a157e3649d7a783bbbcbee010)) - update guava to 30.1.1-jre ([#​423](https://www.github.com/googleapis/java-shared-dependencies/issues/423)) ([94aca59](https://www.github.com/googleapis/java-shared-dependencies/commit/94aca597804d7b45aae22811b277c44281e62d64))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-notebooks). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 0b4dd24c..8d48c7f4 100644 --- a/pom.xml +++ b/pom.xml @@ -77,7 +77,7 @@ com.google.cloud google-cloud-shared-dependencies - 1.4.0 + 2.0.0 pom import From 58bb59d1457adf28f571bc6f8b5026e776bafec2 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 10 Aug 2021 03:26:26 +0000 Subject: [PATCH 22/23] feat!: release gapic-generator-java v2.0.0 (#225) Committer: @miraleung PiperOrigin-RevId: 388535346 Source-Link: https://github.com/googleapis/googleapis/commit/d9eaf41de44d953458b18712a3f240bb4c564e48 Source-Link: https://github.com/googleapis/googleapis-gen/commit/976c5ab6f24b58c91fe04847ead1953f99d19e6a --- .../v1beta1/NotebookServiceClient.java | 15 +- .../v1beta1/NotebookServiceSettings.java | 3 +- .../v1beta1/stub/GrpcNotebookServiceStub.java | 213 +++++++----------- .../stub/NotebookServiceStubSettings.java | 3 +- .../v1beta1/NotebookServiceClientTest.java | 28 +-- .../clirr-ignored-differences.xml | 8 + proto-google-cloud-notebooks-v1beta1/pom.xml | 8 - .../notebooks/v1beta1/EnvironmentName.java | 192 ---------------- .../cloud/notebooks/v1beta1/InstanceName.java | 192 ---------------- 9 files changed, 103 insertions(+), 559 deletions(-) delete mode 100644 proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/EnvironmentName.java delete mode 100644 proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/InstanceName.java diff --git a/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceClient.java b/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceClient.java index 5b25080e..04a28fea 100644 --- a/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceClient.java +++ b/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceClient.java @@ -16,7 +16,6 @@ package com.google.cloud.notebooks.v1beta1; -import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; @@ -1526,12 +1525,7 @@ public static ApiFuture createAsync( ListInstancesPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListInstancesPagedResponse apply(ListInstancesPage input) { - return new ListInstancesPagedResponse(input); - } - }, + input -> new ListInstancesPagedResponse(input), MoreExecutors.directExecutor()); } @@ -1607,12 +1601,7 @@ public static ApiFuture createAsync( ListEnvironmentsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListEnvironmentsPagedResponse apply(ListEnvironmentsPage input) { - return new ListEnvironmentsPagedResponse(input); - } - }, + input -> new ListEnvironmentsPagedResponse(input), MoreExecutors.directExecutor()); } diff --git a/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceSettings.java b/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceSettings.java index 761f0015..b4ed4fae 100644 --- a/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceSettings.java +++ b/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceSettings.java @@ -348,14 +348,13 @@ public NotebookServiceStubSettings.Builder getStubSettingsBuilder() { return ((NotebookServiceStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; diff --git a/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/GrpcNotebookServiceStub.java b/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/GrpcNotebookServiceStub.java index 76d957d6..03e5f6e7 100644 --- a/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/GrpcNotebookServiceStub.java +++ b/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/GrpcNotebookServiceStub.java @@ -26,7 +26,6 @@ import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest; import com.google.cloud.notebooks.v1beta1.CreateInstanceRequest; @@ -60,7 +59,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -373,52 +371,40 @@ protected GrpcNotebookServiceStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(listInstancesMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListInstancesRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings getInstanceTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getInstanceMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetInstanceRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings createInstanceTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createInstanceMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateInstanceRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings registerInstanceTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(registerInstanceMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(RegisterInstanceRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings @@ -426,13 +412,10 @@ public Map extract(RegisterInstanceRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(setInstanceAcceleratorMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(SetInstanceAcceleratorRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -440,91 +423,70 @@ public Map extract(SetInstanceAcceleratorRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(setInstanceMachineTypeMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(SetInstanceMachineTypeRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings setInstanceLabelsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(setInstanceLabelsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(SetInstanceLabelsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings deleteInstanceTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteInstanceMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteInstanceRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings startInstanceTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(startInstanceMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(StartInstanceRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings stopInstanceTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(stopInstanceMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(StopInstanceRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings resetInstanceTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(resetInstanceMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ResetInstanceRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings reportInstanceInfoTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(reportInstanceInfoMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ReportInstanceInfoRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -533,27 +495,21 @@ public Map extract(ReportInstanceInfoRequest request) { .newBuilder() .setMethodDescriptor(isInstanceUpgradeableMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(IsInstanceUpgradeableRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "notebook_instance", String.valueOf(request.getNotebookInstance())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "notebook_instance", String.valueOf(request.getNotebookInstance())); + return params.build(); }) .build(); GrpcCallSettings upgradeInstanceTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(upgradeInstanceMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpgradeInstanceRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -561,13 +517,10 @@ public Map extract(UpgradeInstanceRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(upgradeInstanceInternalMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpgradeInstanceInternalRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -575,52 +528,40 @@ public Map extract(UpgradeInstanceInternalRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(listEnvironmentsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListEnvironmentsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings getEnvironmentTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getEnvironmentMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetEnvironmentRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings createEnvironmentTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createEnvironmentMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateEnvironmentRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings deleteEnvironmentTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteEnvironmentMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteEnvironmentRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); diff --git a/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/NotebookServiceStubSettings.java b/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/NotebookServiceStubSettings.java index fea5ea88..43670127 100644 --- a/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/NotebookServiceStubSettings.java +++ b/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/NotebookServiceStubSettings.java @@ -1269,14 +1269,13 @@ private static Builder initDefaults(Builder builder) { return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } diff --git a/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1beta1/NotebookServiceClientTest.java b/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1beta1/NotebookServiceClientTest.java index 0b44c36e..06fd67e9 100644 --- a/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1beta1/NotebookServiceClientTest.java +++ b/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1beta1/NotebookServiceClientTest.java @@ -147,7 +147,7 @@ public void listInstancesExceptionTest() throws Exception { public void getInstanceTest() throws Exception { Instance expectedResponse = Instance.newBuilder() - .setName(InstanceName.of("[PROJECT]", "[INSTANCE]").toString()) + .setName("name3373707") .setPostStartupScript("postStartupScript870779112") .setProxyUri("proxyUri-985185250") .addAllInstanceOwners(new ArrayList()) @@ -205,7 +205,7 @@ public void getInstanceExceptionTest() throws Exception { public void createInstanceTest() throws Exception { Instance expectedResponse = Instance.newBuilder() - .setName(InstanceName.of("[PROJECT]", "[INSTANCE]").toString()) + .setName("name3373707") .setPostStartupScript("postStartupScript870779112") .setProxyUri("proxyUri-985185250") .addAllInstanceOwners(new ArrayList()) @@ -283,7 +283,7 @@ public void createInstanceExceptionTest() throws Exception { public void registerInstanceTest() throws Exception { Instance expectedResponse = Instance.newBuilder() - .setName(InstanceName.of("[PROJECT]", "[INSTANCE]").toString()) + .setName("name3373707") .setPostStartupScript("postStartupScript870779112") .setProxyUri("proxyUri-985185250") .addAllInstanceOwners(new ArrayList()) @@ -358,7 +358,7 @@ public void registerInstanceExceptionTest() throws Exception { public void setInstanceAcceleratorTest() throws Exception { Instance expectedResponse = Instance.newBuilder() - .setName(InstanceName.of("[PROJECT]", "[INSTANCE]").toString()) + .setName("name3373707") .setPostStartupScript("postStartupScript870779112") .setProxyUri("proxyUri-985185250") .addAllInstanceOwners(new ArrayList()) @@ -435,7 +435,7 @@ public void setInstanceAcceleratorExceptionTest() throws Exception { public void setInstanceMachineTypeTest() throws Exception { Instance expectedResponse = Instance.newBuilder() - .setName(InstanceName.of("[PROJECT]", "[INSTANCE]").toString()) + .setName("name3373707") .setPostStartupScript("postStartupScript870779112") .setProxyUri("proxyUri-985185250") .addAllInstanceOwners(new ArrayList()) @@ -511,7 +511,7 @@ public void setInstanceMachineTypeExceptionTest() throws Exception { public void setInstanceLabelsTest() throws Exception { Instance expectedResponse = Instance.newBuilder() - .setName(InstanceName.of("[PROJECT]", "[INSTANCE]").toString()) + .setName("name3373707") .setPostStartupScript("postStartupScript870779112") .setProxyUri("proxyUri-985185250") .addAllInstanceOwners(new ArrayList()) @@ -630,7 +630,7 @@ public void deleteInstanceExceptionTest() throws Exception { public void startInstanceTest() throws Exception { Instance expectedResponse = Instance.newBuilder() - .setName(InstanceName.of("[PROJECT]", "[INSTANCE]").toString()) + .setName("name3373707") .setPostStartupScript("postStartupScript870779112") .setProxyUri("proxyUri-985185250") .addAllInstanceOwners(new ArrayList()) @@ -697,7 +697,7 @@ public void startInstanceExceptionTest() throws Exception { public void stopInstanceTest() throws Exception { Instance expectedResponse = Instance.newBuilder() - .setName(InstanceName.of("[PROJECT]", "[INSTANCE]").toString()) + .setName("name3373707") .setPostStartupScript("postStartupScript870779112") .setProxyUri("proxyUri-985185250") .addAllInstanceOwners(new ArrayList()) @@ -763,7 +763,7 @@ public void stopInstanceExceptionTest() throws Exception { public void resetInstanceTest() throws Exception { Instance expectedResponse = Instance.newBuilder() - .setName(InstanceName.of("[PROJECT]", "[INSTANCE]").toString()) + .setName("name3373707") .setPostStartupScript("postStartupScript870779112") .setProxyUri("proxyUri-985185250") .addAllInstanceOwners(new ArrayList()) @@ -830,7 +830,7 @@ public void resetInstanceExceptionTest() throws Exception { public void reportInstanceInfoTest() throws Exception { Instance expectedResponse = Instance.newBuilder() - .setName(InstanceName.of("[PROJECT]", "[INSTANCE]").toString()) + .setName("name3373707") .setPostStartupScript("postStartupScript870779112") .setProxyUri("proxyUri-985185250") .addAllInstanceOwners(new ArrayList()) @@ -955,7 +955,7 @@ public void isInstanceUpgradeableExceptionTest() throws Exception { public void upgradeInstanceTest() throws Exception { Instance expectedResponse = Instance.newBuilder() - .setName(InstanceName.of("[PROJECT]", "[INSTANCE]").toString()) + .setName("name3373707") .setPostStartupScript("postStartupScript870779112") .setProxyUri("proxyUri-985185250") .addAllInstanceOwners(new ArrayList()) @@ -1023,7 +1023,7 @@ public void upgradeInstanceExceptionTest() throws Exception { public void upgradeInstanceInternalTest() throws Exception { Instance expectedResponse = Instance.newBuilder() - .setName(InstanceName.of("[PROJECT]", "[INSTANCE]").toString()) + .setName("name3373707") .setPostStartupScript("postStartupScript870779112") .setProxyUri("proxyUri-985185250") .addAllInstanceOwners(new ArrayList()) @@ -1155,7 +1155,7 @@ public void listEnvironmentsExceptionTest() throws Exception { public void getEnvironmentTest() throws Exception { Environment expectedResponse = Environment.newBuilder() - .setName(EnvironmentName.of("[PROJECT]", "[ENVIRONMENT]").toString()) + .setName("name3373707") .setDisplayName("displayName1714148973") .setDescription("description-1724546052") .setPostStartupScript("postStartupScript870779112") @@ -1199,7 +1199,7 @@ public void getEnvironmentExceptionTest() throws Exception { public void createEnvironmentTest() throws Exception { Environment expectedResponse = Environment.newBuilder() - .setName(EnvironmentName.of("[PROJECT]", "[ENVIRONMENT]").toString()) + .setName("name3373707") .setDisplayName("displayName1714148973") .setDescription("description-1724546052") .setPostStartupScript("postStartupScript870779112") diff --git a/proto-google-cloud-notebooks-v1beta1/clirr-ignored-differences.xml b/proto-google-cloud-notebooks-v1beta1/clirr-ignored-differences.xml index cd69cec7..10919cf3 100644 --- a/proto-google-cloud-notebooks-v1beta1/clirr-ignored-differences.xml +++ b/proto-google-cloud-notebooks-v1beta1/clirr-ignored-differences.xml @@ -16,4 +16,12 @@ com/google/cloud/notebooks/v1beta1/*OrBuilder boolean has*(*) + + 8001 + com/google/cloud/notebooks/v1beta1/Environment* + + + 8001 + com/google/cloud/notebooks/v1beta1/Instance* + \ No newline at end of file diff --git a/proto-google-cloud-notebooks-v1beta1/pom.xml b/proto-google-cloud-notebooks-v1beta1/pom.xml index 7b939ee9..9e32e3fa 100644 --- a/proto-google-cloud-notebooks-v1beta1/pom.xml +++ b/proto-google-cloud-notebooks-v1beta1/pom.xml @@ -21,14 +21,6 @@ com.google.api.grpc proto-google-common-protos - - com.google.api - api-common - - - com.google.guava - guava - diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/EnvironmentName.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/EnvironmentName.java deleted file mode 100644 index c7f15af9..00000000 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/EnvironmentName.java +++ /dev/null @@ -1,192 +0,0 @@ -/* - * Copyright 2021 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 - * - * https://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. - */ - -package com.google.cloud.notebooks.v1beta1; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class EnvironmentName implements ResourceName { - private static final PathTemplate PROJECT_ENVIRONMENT = - PathTemplate.createWithoutUrlEncoding("projects/{project}/environments/{environment}"); - private volatile Map fieldValuesMap; - private final String project; - private final String environment; - - @Deprecated - protected EnvironmentName() { - project = null; - environment = null; - } - - private EnvironmentName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - environment = Preconditions.checkNotNull(builder.getEnvironment()); - } - - public String getProject() { - return project; - } - - public String getEnvironment() { - return environment; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static EnvironmentName of(String project, String environment) { - return newBuilder().setProject(project).setEnvironment(environment).build(); - } - - public static String format(String project, String environment) { - return newBuilder().setProject(project).setEnvironment(environment).build().toString(); - } - - public static EnvironmentName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_ENVIRONMENT.validatedMatch( - formattedString, "EnvironmentName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("environment")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (EnvironmentName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_ENVIRONMENT.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (project != null) { - fieldMapBuilder.put("project", project); - } - if (environment != null) { - fieldMapBuilder.put("environment", environment); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_ENVIRONMENT.instantiate("project", project, "environment", environment); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - EnvironmentName that = ((EnvironmentName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.environment, that.environment); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(environment); - return h; - } - - /** Builder for projects/{project}/environments/{environment}. */ - public static class Builder { - private String project; - private String environment; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getEnvironment() { - return environment; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setEnvironment(String environment) { - this.environment = environment; - return this; - } - - private Builder(EnvironmentName environmentName) { - this.project = environmentName.project; - this.environment = environmentName.environment; - } - - public EnvironmentName build() { - return new EnvironmentName(this); - } - } -} diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/InstanceName.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/InstanceName.java deleted file mode 100644 index fcfb9d32..00000000 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/InstanceName.java +++ /dev/null @@ -1,192 +0,0 @@ -/* - * Copyright 2021 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 - * - * https://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. - */ - -package com.google.cloud.notebooks.v1beta1; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class InstanceName implements ResourceName { - private static final PathTemplate PROJECT_INSTANCE = - PathTemplate.createWithoutUrlEncoding("projects/{project}/instances/{instance}"); - private volatile Map fieldValuesMap; - private final String project; - private final String instance; - - @Deprecated - protected InstanceName() { - project = null; - instance = null; - } - - private InstanceName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - instance = Preconditions.checkNotNull(builder.getInstance()); - } - - public String getProject() { - return project; - } - - public String getInstance() { - return instance; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static InstanceName of(String project, String instance) { - return newBuilder().setProject(project).setInstance(instance).build(); - } - - public static String format(String project, String instance) { - return newBuilder().setProject(project).setInstance(instance).build().toString(); - } - - public static InstanceName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_INSTANCE.validatedMatch( - formattedString, "InstanceName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("instance")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (InstanceName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_INSTANCE.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (project != null) { - fieldMapBuilder.put("project", project); - } - if (instance != null) { - fieldMapBuilder.put("instance", instance); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_INSTANCE.instantiate("project", project, "instance", instance); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - InstanceName that = ((InstanceName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.instance, that.instance); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(instance); - return h; - } - - /** Builder for projects/{project}/instances/{instance}. */ - public static class Builder { - private String project; - private String instance; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getInstance() { - return instance; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setInstance(String instance) { - this.instance = instance; - return this; - } - - private Builder(InstanceName instanceName) { - this.project = instanceName.project; - this.instance = instanceName.instance; - } - - public InstanceName build() { - return new InstanceName(this); - } - } -} From 393d4fff288082e722663e98e843c42f4f3a6991 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 10 Aug 2021 03:40:26 +0000 Subject: [PATCH 23/23] chore: release 0.4.0 (#199) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit :robot: I have created a release \*beep\* \*boop\* --- ## [0.4.0](https://www.github.com/googleapis/java-notebooks/compare/v0.3.0...v0.4.0) (2021-08-10) ### âš  BREAKING CHANGES * release gapic-generator-java v2.0.0 (#225) ### Features * release gapic-generator-java v2.0.0 ([#225](https://www.github.com/googleapis/java-notebooks/issues/225)) ([58bb59d](https://www.github.com/googleapis/java-notebooks/commit/58bb59d1457adf28f571bc6f8b5026e776bafec2)) ### Bug Fixes * Add `shopt -s nullglob` to dependencies script ([#198](https://www.github.com/googleapis/java-notebooks/issues/198)) ([a3c4f6b](https://www.github.com/googleapis/java-notebooks/commit/a3c4f6b0a8b18055c083a797fec1d7d0aacad6dc)) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v1.4.0 ([#200](https://www.github.com/googleapis/java-notebooks/issues/200)) ([dbdcbee](https://www.github.com/googleapis/java-notebooks/commit/dbdcbee7d46416dffce92e819974a807401e32e8)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v2 ([#226](https://www.github.com/googleapis/java-notebooks/issues/226)) ([f5542e6](https://www.github.com/googleapis/java-notebooks/commit/f5542e6b0a6177e3f36957d2d4841b451cd9ba5d)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 22 ++++++++++++++++++++ google-cloud-notebooks-bom/pom.xml | 8 +++---- google-cloud-notebooks/pom.xml | 4 ++-- grpc-google-cloud-notebooks-v1beta1/pom.xml | 4 ++-- pom.xml | 8 +++---- proto-google-cloud-notebooks-v1beta1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 40 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 78db8124..7100cc91 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,27 @@ # Changelog +## [0.4.0](https://www.github.com/googleapis/java-notebooks/compare/v0.3.0...v0.4.0) (2021-08-10) + + +### âš  BREAKING CHANGES + +* release gapic-generator-java v2.0.0 (#225) + +### Features + +* release gapic-generator-java v2.0.0 ([#225](https://www.github.com/googleapis/java-notebooks/issues/225)) ([58bb59d](https://www.github.com/googleapis/java-notebooks/commit/58bb59d1457adf28f571bc6f8b5026e776bafec2)) + + +### Bug Fixes + +* Add `shopt -s nullglob` to dependencies script ([#198](https://www.github.com/googleapis/java-notebooks/issues/198)) ([a3c4f6b](https://www.github.com/googleapis/java-notebooks/commit/a3c4f6b0a8b18055c083a797fec1d7d0aacad6dc)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.4.0 ([#200](https://www.github.com/googleapis/java-notebooks/issues/200)) ([dbdcbee](https://www.github.com/googleapis/java-notebooks/commit/dbdcbee7d46416dffce92e819974a807401e32e8)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2 ([#226](https://www.github.com/googleapis/java-notebooks/issues/226)) ([f5542e6](https://www.github.com/googleapis/java-notebooks/commit/f5542e6b0a6177e3f36957d2d4841b451cd9ba5d)) + ## [0.3.0](https://www.github.com/googleapis/java-notebooks/compare/v0.2.6...v0.3.0) (2021-06-17) diff --git a/google-cloud-notebooks-bom/pom.xml b/google-cloud-notebooks-bom/pom.xml index 333ad4f9..2be496ef 100644 --- a/google-cloud-notebooks-bom/pom.xml +++ b/google-cloud-notebooks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-notebooks-bom - 0.3.1-SNAPSHOT + 0.4.0 pom com.google.cloud @@ -56,17 +56,17 @@ com.google.cloud google-cloud-notebooks - 0.3.1-SNAPSHOT + 0.4.0 com.google.api.grpc grpc-google-cloud-notebooks-v1beta1 - 0.3.1-SNAPSHOT + 0.4.0 com.google.api.grpc proto-google-cloud-notebooks-v1beta1 - 0.3.1-SNAPSHOT + 0.4.0 diff --git a/google-cloud-notebooks/pom.xml b/google-cloud-notebooks/pom.xml index 2f788f76..ce3b23e6 100644 --- a/google-cloud-notebooks/pom.xml +++ b/google-cloud-notebooks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-notebooks - 0.3.1-SNAPSHOT + 0.4.0 jar Google AI Platform Notebooks https://github.com/googleapis/java-notebooks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-notebooks-parent - 0.3.1-SNAPSHOT + 0.4.0 google-cloud-notebooks diff --git a/grpc-google-cloud-notebooks-v1beta1/pom.xml b/grpc-google-cloud-notebooks-v1beta1/pom.xml index a5e58e4f..667d2df9 100644 --- a/grpc-google-cloud-notebooks-v1beta1/pom.xml +++ b/grpc-google-cloud-notebooks-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-notebooks-v1beta1 - 0.3.1-SNAPSHOT + 0.4.0 grpc-google-cloud-notebooks-v1beta1 GRPC library for grpc-google-cloud-notebooks-v1beta1 com.google.cloud google-cloud-notebooks-parent - 0.3.1-SNAPSHOT + 0.4.0 diff --git a/pom.xml b/pom.xml index 8d48c7f4..7ed02d51 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-notebooks-parent pom - 0.3.1-SNAPSHOT + 0.4.0 Google AI Platform Notebooks Parent https://github.com/googleapis/java-notebooks @@ -61,17 +61,17 @@ com.google.cloud google-cloud-notebooks - 0.3.1-SNAPSHOT + 0.4.0 com.google.api.grpc proto-google-cloud-notebooks-v1beta1 - 0.3.1-SNAPSHOT + 0.4.0 com.google.api.grpc grpc-google-cloud-notebooks-v1beta1 - 0.3.1-SNAPSHOT + 0.4.0 diff --git a/proto-google-cloud-notebooks-v1beta1/pom.xml b/proto-google-cloud-notebooks-v1beta1/pom.xml index 9e32e3fa..ddb4a01d 100644 --- a/proto-google-cloud-notebooks-v1beta1/pom.xml +++ b/proto-google-cloud-notebooks-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-notebooks-v1beta1 - 0.3.1-SNAPSHOT + 0.4.0 proto-google-cloud-notebooks-v1beta1 PROTO library for proto-google-cloud-notebooks-v1beta1 com.google.cloud google-cloud-notebooks-parent - 0.3.1-SNAPSHOT + 0.4.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index da69197c..7d5cc2e3 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-notebooks - 0.3.1-SNAPSHOT + 0.4.0 diff --git a/versions.txt b/versions.txt index 21f845e4..37150f00 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-notebooks:0.3.0:0.3.1-SNAPSHOT -grpc-google-cloud-notebooks-v1beta1:0.3.0:0.3.1-SNAPSHOT -proto-google-cloud-notebooks-v1beta1:0.3.0:0.3.1-SNAPSHOT +google-cloud-notebooks:0.4.0:0.4.0 +grpc-google-cloud-notebooks-v1beta1:0.4.0:0.4.0 +proto-google-cloud-notebooks-v1beta1:0.4.0:0.4.0