Skip to content

Commit 9078292

Browse files
Sita04Neenu1995release-please[bot]renovate-botgcf-owl-bot[bot]
authored
feat: migrate code from googleapis/java-batch (#7364)
* feat: initial generation * chore: fix dependencies * chore(main): release 0.1.0 * chore(main): release 0.1.1-SNAPSHOT (#4) :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). * chore(deps): update dependency com.google.cloud:google-cloud-batch to v0.1.0 (#5) [![Mend 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-batch](https://togithub.com/googleapis/java-batch) | `0.0.0` -> `0.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-batch/0.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-batch/0.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-batch/0.1.0/compatibility-slim/0.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-batch/0.1.0/confidence-slim/0.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-batch). * chore(main): release 0.1.1 (#8) :robot: I have created a release *beep* *boop* --- ## [0.1.1](googleapis/java-batch@v0.1.0...v0.1.1) (2022-06-23) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.13.0 ([#7](googleapis/java-batch#7)) ([0859548](googleapis/java-batch@0859548)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). * chore(main): release 0.1.2-SNAPSHOT (#9) :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). * chore(deps): update dependency com.google.cloud:google-cloud-batch to v0.1.1 (#10) [![Mend 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-batch](https://togithub.com/googleapis/java-batch) | `0.1.0` -> `0.1.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-batch/0.1.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-batch/0.1.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-batch/0.1.1/compatibility-slim/0.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-batch/0.1.1/confidence-slim/0.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-batch). * chore(main): release 0.2.0 (#11) :robot: I have created a release *beep* *boop* --- ## [0.2.0](googleapis/java-batch@v0.1.1...v0.2.0) (2022-06-30) ### Features * add client library BUILD rules, API proto option, v1alpha service config file and service YAML file ([ca7e9fa](googleapis/java-batch@ca7e9fa)) * Enable REST transport for most of Java and Go clients ([#6](googleapis/java-batch#6)) ([ca7e9fa](googleapis/java-batch@ca7e9fa)) ### Bug Fixes * update gapic-generator-java with mock service generation fixes ([#13](googleapis/java-batch#13)) ([4ce5e88](googleapis/java-batch@4ce5e88)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). * chore(main): release 0.2.1-SNAPSHOT (#15) :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). * chore(main): release 0.2.1 (#19) :robot: I have created a release *beep* *boop* --- ## [0.2.1](googleapis/java-batch@v0.2.0...v0.2.1) (2022-07-13) ### Bug Fixes * enable longpaths support for windows test ([#1485](https://github.com/googleapis/java-batch/issues/1485)) ([#18](googleapis/java-batch#18)) ([9a8cd4b](googleapis/java-batch@9a8cd4b)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). * build(deps): update dependency org.apache.maven.plugins:maven-deploy-plugin to v3 (#23) [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-deploy-plugin](https://maven.apache.org/plugins/) ([source](https://togithub.com/apache/maven-deploy-plugin)) | `2.8.2` -> `3.0.0` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-deploy-plugin/3.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-deploy-plugin/3.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-deploy-plugin/3.0.0/compatibility-slim/2.8.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-deploy-plugin/3.0.0/confidence-slim/2.8.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-batch). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4xMTcuNCIsInVwZGF0ZWRJblZlciI6IjMyLjExNy40In0=--> * chore(deps): update dependency com.google.cloud:google-cloud-batch to v0.2.0 (#27) [![Mend 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-batch](https://togithub.com/googleapis/java-batch) | `0.1.1` -> `0.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-batch/0.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-batch/0.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-batch/0.2.0/compatibility-slim/0.1.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-batch/0.2.0/confidence-slim/0.1.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>googleapis/java-batch</summary> ### [`v0.2.0`](https://togithub.com/googleapis/java-batch/blob/HEAD/CHANGELOG.md#&#8203;020-httpsgithubcomgoogleapisjava-batchcomparev011v020-2022-06-30) [Compare Source](https://togithub.com/googleapis/java-batch/compare/v0.1.1...v0.2.0) ##### Features - add client library BUILD rules, API proto option, v1alpha service config file and service YAML file ([ca7e9fa](https://togithub.com/googleapis/java-batch/commit/ca7e9fa43e64d378edf2fd0917585ab33135fc81)) - Enable REST transport for most of Java and Go clients ([#&#8203;6](https://togithub.com/googleapis/java-batch/issues/6)) ([ca7e9fa](https://togithub.com/googleapis/java-batch/commit/ca7e9fa43e64d378edf2fd0917585ab33135fc81)) ##### Bug Fixes - update gapic-generator-java with mock service generation fixes ([#&#8203;13](https://togithub.com/googleapis/java-batch/issues/13)) ([4ce5e88](https://togithub.com/googleapis/java-batch/commit/4ce5e884e0a9cc97affd6076846276f9c81ce78b)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-batch). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4xMzUuMSIsInVwZGF0ZWRJblZlciI6IjMyLjEzNS4xIn0=--> * chore(main): release 0.2.2-SNAPSHOT (#20) :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). * chore(main): release 0.2.2 (#29) :robot: I have created a release *beep* *boop* --- ## [0.2.2](googleapis/java-batch@v0.2.1...v0.2.2) (2022-08-09) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v3 ([#25](googleapis/java-batch#25)) ([74aada0](googleapis/java-batch@74aada0)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.1 ([#28](googleapis/java-batch#28)) ([fd55721](googleapis/java-batch@fd55721)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). * chore(main): release 0.2.3-SNAPSHOT (#30) :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). * chore(deps): update dependency com.google.cloud:google-cloud-batch to v0.2.2 (#31) [![Mend 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-batch](https://togithub.com/googleapis/java-batch) | `0.2.0` -> `0.2.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-batch/0.2.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-batch/0.2.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-batch/0.2.2/compatibility-slim/0.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-batch/0.2.2/confidence-slim/0.2.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-batch). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4xNTAuNCIsInVwZGF0ZWRJblZlciI6IjMyLjE1MC40In0=--> * chore(main): release 0.3.0 (#35) :robot: I have created a release *beep* *boop* --- ## [0.3.0](googleapis/java-batch@v0.2.2...v0.3.0) (2022-09-15) ### Features * environment variables, disk interfaces ([4f26297](googleapis/java-batch@4f26297)) * environment variables, disk interfaces ([4f26297](googleapis/java-batch@4f26297)) ### Bug Fixes * Mark service_account_email as deprecated ([#36](googleapis/java-batch#36)) ([176b6e6](googleapis/java-batch@176b6e6)) ### Documentation * removing comment from a deprecated field ([176b6e6](googleapis/java-batch@176b6e6)) ### Dependencies * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.2 ([#38](googleapis/java-batch#38)) ([7d5571a](googleapis/java-batch@7d5571a)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.3 ([#40](googleapis/java-batch#40)) ([fcd0595](googleapis/java-batch@fcd0595)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). * chore(main): release 0.3.1-SNAPSHOT (#41) :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). * chore(deps): update dependency com.google.cloud:google-cloud-batch to v0.3.0 (#42) [![Mend 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-batch](https://togithub.com/googleapis/java-batch) | `0.2.2` -> `0.3.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-batch/0.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-batch/0.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-batch/0.3.0/compatibility-slim/0.2.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-batch/0.3.0/confidence-slim/0.2.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-batch). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4xOTUuNSIsInVwZGF0ZWRJblZlciI6IjMyLjE5NS41In0=--> * chore(main): release 0.3.1 (#68) :robot: I have created a release *beep* *boop* --- ## [0.3.1](googleapis/java-batch@v0.3.0...v0.3.1) (2022-09-28) ### Dependencies * Update dependency cachetools to v5 ([#62](googleapis/java-batch#62)) ([10f1cc8](googleapis/java-batch@10f1cc8)) * Update dependency certifi to v2022.9.24 ([#46](googleapis/java-batch#46)) ([16fd4f4](googleapis/java-batch@16fd4f4)) * Update dependency charset-normalizer to v2.1.1 ([#50](googleapis/java-batch#50)) ([75906e4](googleapis/java-batch@75906e4)) * Update dependency click to v8.1.3 ([#51](googleapis/java-batch#51)) ([3bc6542](googleapis/java-batch@3bc6542)) * Update dependency gcp-releasetool to v1.8.8 ([#47](googleapis/java-batch#47)) ([2175cf4](googleapis/java-batch@2175cf4)) * Update dependency google-api-core to v2.10.1 ([#52](googleapis/java-batch#52)) ([1684933](googleapis/java-batch@1684933)) * Update dependency google-auth to v2.12.0 ([#53](googleapis/java-batch#53)) ([ead1241](googleapis/java-batch@ead1241)) * Update dependency google-cloud-core to v2.3.2 ([#48](googleapis/java-batch#48)) ([716b8d8](googleapis/java-batch@716b8d8)) * Update dependency google-cloud-storage to v2.5.0 ([#54](googleapis/java-batch#54)) ([b0e2745](googleapis/java-batch@b0e2745)) * Update dependency google-crc32c to v1.5.0 ([#55](googleapis/java-batch#55)) ([a20c8ab](googleapis/java-batch@a20c8ab)) * Update dependency googleapis-common-protos to v1.56.4 ([#49](googleapis/java-batch#49)) ([62c0202](googleapis/java-batch@62c0202)) * Update dependency importlib-metadata to v4.12.0 ([#63](googleapis/java-batch#63)) ([3a88cb3](googleapis/java-batch@3a88cb3)) * Update dependency jeepney to v0.8.0 ([#64](googleapis/java-batch#64)) ([a4c5676](googleapis/java-batch@a4c5676)) * Update dependency jinja2 to v3.1.2 ([#65](googleapis/java-batch#65)) ([3e58704](googleapis/java-batch@3e58704)) * Update dependency keyring to v23.9.3 ([#66](googleapis/java-batch#66)) ([3630bdc](googleapis/java-batch@3630bdc)) * Update dependency markupsafe to v2.1.1 ([#56](googleapis/java-batch#56)) ([58cf14a](googleapis/java-batch@58cf14a)) * Update dependency protobuf to v3.20.2 ([#57](googleapis/java-batch#57)) ([ee2f20d](googleapis/java-batch@ee2f20d)) * Update dependency protobuf to v4 ([#67](googleapis/java-batch#67)) ([74ab05f](googleapis/java-batch@74ab05f)) * Update dependency pyjwt to v2.5.0 ([#58](googleapis/java-batch#58)) ([54bc183](googleapis/java-batch@54bc183)) * Update dependency requests to v2.28.1 ([#59](googleapis/java-batch#59)) ([316c948](googleapis/java-batch@316c948)) * Update dependency typing-extensions to v4.3.0 ([#60](googleapis/java-batch#60)) ([d0cc0ec](googleapis/java-batch@d0cc0ec)) * Update dependency zipp to v3.8.1 ([#61](googleapis/java-batch#61)) ([c9443db](googleapis/java-batch@c9443db)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). * chore(main): release 0.3.2-SNAPSHOT (#69) :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). * docs(samples): added basic samples and tests (#43) * docs(samples): added basic samples and tests * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * minor refactoring * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * updated comments Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> * chore(deps): update dependency com.google.cloud:google-cloud-batch to v0.3.1 (#70) * chore(deps): update dependency com.google.cloud:google-cloud-batch to v0.3.1 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> * chore(main): release 0.3.2 (#71) :robot: I have created a release *beep* *boop* --- ## [0.3.2](https://togithub.com/googleapis/java-batch/compare/v0.3.1...v0.3.2) (2022-10-03) ### Documentation * **samples:** Added basic samples and tests ([#43](https://togithub.com/googleapis/java-batch/issues/43)) ([62bdc9a](https://togithub.com/googleapis/java-batch/commit/62bdc9a31d657818110b9d2f4560ee391fd27942)) ### Dependencies * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.4 ([#77](https://togithub.com/googleapis/java-batch/issues/77)) ([bf0394e](https://togithub.com/googleapis/java-batch/commit/bf0394e4a45eaf3a966f7840a69afe0d44faad0a)) * Update dependency google-resumable-media to v2.4.0 ([#74](https://togithub.com/googleapis/java-batch/issues/74)) ([b05cbba](https://togithub.com/googleapis/java-batch/commit/b05cbbaa3b28016d0d5f90f2b18d358f2d3bb535)) * Update dependency protobuf to v3.20.3 ([#75](https://togithub.com/googleapis/java-batch/issues/75)) ([9d639bc](https://togithub.com/googleapis/java-batch/commit/9d639bc48ecfe9bc278e56574207e9745dc8eea5)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). * chore(main): release 0.3.3-SNAPSHOT (#78) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). * chore(deps): update dependency com.google.cloud:google-cloud-batch to v0.3.2 (#80) [![Mend 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-batch](https://togithub.com/googleapis/java-batch) | `0.3.1` -> `0.3.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-batch/0.3.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-batch/0.3.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-batch/0.3.2/compatibility-slim/0.3.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-batch/0.3.2/confidence-slim/0.3.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-batch). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4yMTYuMCIsInVwZGF0ZWRJblZlciI6IjMyLjIxNi4wIn0=--> * updated pom to include product prefix * corrected the library release version * increased timeout for snippets * restructured and removed non-essential files * add snippets/ directory Co-authored-by: Neenu1995 <[email protected]> Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: WhiteSource Renovate <[email protected]> Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 16213c7 commit 9078292

File tree

7 files changed

+616
-0
lines changed

7 files changed

+616
-0
lines changed

batch/snippets/pom.xml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
<groupId>com.google.cloud</groupId>
7+
<artifactId>-snippets</artifactId>
8+
<packaging>jar</packaging>
9+
<name>Google Google Cloud Batch Snippets</name>
10+
<url>https://github.com/googleapis/java-batch</url>
11+
12+
<!--
13+
The parent pom defines common style checks and testing strategies for our samples.
14+
Removing or replacing it should not affect the execution of the samples in anyway.
15+
-->
16+
<parent>
17+
<groupId>com.google.cloud.samples</groupId>
18+
<artifactId>shared-configuration</artifactId>
19+
<version>1.2.0</version>
20+
</parent>
21+
22+
<properties>
23+
<maven.compiler.target>1.8</maven.compiler.target>
24+
<maven.compiler.source>1.8</maven.compiler.source>
25+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
26+
</properties>
27+
28+
<dependencies>
29+
<!-- TODO: switch to libraries-bom after this artifact is included -->
30+
<dependency>
31+
<groupId>com.google.cloud</groupId>
32+
<artifactId>google-cloud-batch</artifactId>
33+
<version>0.3.2</version>
34+
</dependency>
35+
36+
<dependency>
37+
<groupId>junit</groupId>
38+
<artifactId>junit</artifactId>
39+
<version>4.13.2</version>
40+
<scope>test</scope>
41+
</dependency>
42+
<dependency>
43+
<groupId>com.google.truth</groupId>
44+
<artifactId>truth</artifactId>
45+
<version>1.1.3</version>
46+
<scope>test</scope>
47+
</dependency>
48+
</dependencies>
49+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
// Copyright 2022 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// [START batch_create_container_job]
16+
17+
import com.google.cloud.batch.v1.AllocationPolicy;
18+
import com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy;
19+
import com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate;
20+
import com.google.cloud.batch.v1.BatchServiceClient;
21+
import com.google.cloud.batch.v1.ComputeResource;
22+
import com.google.cloud.batch.v1.CreateJobRequest;
23+
import com.google.cloud.batch.v1.Job;
24+
import com.google.cloud.batch.v1.LogsPolicy;
25+
import com.google.cloud.batch.v1.LogsPolicy.Destination;
26+
import com.google.cloud.batch.v1.Runnable;
27+
import com.google.cloud.batch.v1.Runnable.Container;
28+
import com.google.cloud.batch.v1.TaskGroup;
29+
import com.google.cloud.batch.v1.TaskSpec;
30+
import com.google.protobuf.Duration;
31+
import java.io.IOException;
32+
import java.util.concurrent.ExecutionException;
33+
import java.util.concurrent.TimeUnit;
34+
import java.util.concurrent.TimeoutException;
35+
36+
public class CreateWithContainerNoMounting {
37+
38+
public static void main(String[] args)
39+
throws IOException, ExecutionException, InterruptedException, TimeoutException {
40+
// TODO(developer): Replace these variables before running the sample.
41+
// Project ID or project number of the Cloud project you want to use.
42+
String projectId = "YOUR_PROJECT_ID";
43+
44+
// Name of the region you want to use to run the job. Regions that are
45+
// available for Batch are listed on: https://cloud.google.com/batch/docs/get-started#locations
46+
String region = "europe-central2";
47+
48+
// The name of the job that will be created.
49+
// It needs to be unique for each project and region pair.
50+
String jobName = "JOB_NAME";
51+
52+
createContainerJob(projectId, region, jobName);
53+
}
54+
55+
// This method shows how to create a sample Batch Job that will run a simple command inside a
56+
// container on Cloud Compute instances.
57+
public static void createContainerJob(String projectId, String region, String jobName)
58+
throws IOException, ExecutionException, InterruptedException, TimeoutException {
59+
// Initialize client that will be used to send requests. This client only needs to be created
60+
// once, and can be reused for multiple requests. After completing all of your requests, call
61+
// the `batchServiceClient.close()` method on the client to safely
62+
// clean up any remaining background resources.
63+
try (BatchServiceClient batchServiceClient = BatchServiceClient.create()) {
64+
65+
// Define what will be done as part of the job.
66+
Runnable runnable =
67+
Runnable.newBuilder()
68+
.setContainer(
69+
Container.newBuilder()
70+
.setImageUri("gcr.io/google-containers/busybox")
71+
.setEntrypoint("/bin/sh")
72+
.addCommands("-c")
73+
.addCommands(
74+
"echo Hello world! This is task ${BATCH_TASK_INDEX}. "
75+
+ "This job has a total of ${BATCH_TASK_COUNT} tasks.")
76+
.build())
77+
.build();
78+
79+
// We can specify what resources are requested by each task.
80+
ComputeResource computeResource =
81+
ComputeResource.newBuilder()
82+
// In milliseconds per cpu-second. This means the task requires 2 whole CPUs.
83+
.setCpuMilli(2000)
84+
// In MiB.
85+
.setMemoryMib(16)
86+
.build();
87+
88+
TaskSpec task =
89+
TaskSpec.newBuilder()
90+
// Jobs can be divided into tasks. In this case, we have only one task.
91+
.addRunnables(runnable)
92+
.setComputeResource(computeResource)
93+
.setMaxRetryCount(2)
94+
.setMaxRunDuration(Duration.newBuilder().setSeconds(3600).build())
95+
.build();
96+
97+
// Tasks are grouped inside a job using TaskGroups.
98+
TaskGroup taskGroup = TaskGroup.newBuilder().setTaskCount(4).setTaskSpec(task).build();
99+
100+
// Policies are used to define on what kind of virtual machines the tasks will run on.
101+
// In this case, we tell the system to use "e2-standard-4" machine type.
102+
// Read more about machine types here: https://cloud.google.com/compute/docs/machine-types
103+
InstancePolicy instancePolicy =
104+
InstancePolicy.newBuilder().setMachineType("e2-standard-4").build();
105+
106+
AllocationPolicy allocationPolicy =
107+
AllocationPolicy.newBuilder()
108+
.addInstances(InstancePolicyOrTemplate.newBuilder().setPolicy(instancePolicy).build())
109+
.build();
110+
111+
Job job =
112+
Job.newBuilder()
113+
.addTaskGroups(taskGroup)
114+
.setAllocationPolicy(allocationPolicy)
115+
.putLabels("env", "testing")
116+
.putLabels("type", "container")
117+
// We use Cloud Logging as it's an out of the box available option.
118+
.setLogsPolicy(
119+
LogsPolicy.newBuilder().setDestination(Destination.CLOUD_LOGGING).build())
120+
.build();
121+
122+
CreateJobRequest createJobRequest =
123+
CreateJobRequest.newBuilder()
124+
// The job's parent is the region in which the job will run.
125+
.setParent(String.format("projects/%s/locations/%s", projectId, region))
126+
.setJob(job)
127+
.setJobId(jobName)
128+
.build();
129+
130+
Job result =
131+
batchServiceClient
132+
.createJobCallable()
133+
.futureCall(createJobRequest)
134+
.get(5, TimeUnit.MINUTES);
135+
136+
System.out.printf("Successfully created the job: %s", result.getName());
137+
}
138+
}
139+
}
140+
// [END batch_create_container_job]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
// Copyright 2022 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// [START batch_create_script_job]
16+
17+
import com.google.cloud.batch.v1.AllocationPolicy;
18+
import com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy;
19+
import com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate;
20+
import com.google.cloud.batch.v1.BatchServiceClient;
21+
import com.google.cloud.batch.v1.ComputeResource;
22+
import com.google.cloud.batch.v1.CreateJobRequest;
23+
import com.google.cloud.batch.v1.Job;
24+
import com.google.cloud.batch.v1.LogsPolicy;
25+
import com.google.cloud.batch.v1.LogsPolicy.Destination;
26+
import com.google.cloud.batch.v1.Runnable;
27+
import com.google.cloud.batch.v1.Runnable.Script;
28+
import com.google.cloud.batch.v1.TaskGroup;
29+
import com.google.cloud.batch.v1.TaskSpec;
30+
import com.google.protobuf.Duration;
31+
import java.io.IOException;
32+
import java.util.concurrent.ExecutionException;
33+
import java.util.concurrent.TimeUnit;
34+
import java.util.concurrent.TimeoutException;
35+
36+
public class CreateWithScriptNoMounting {
37+
38+
public static void main(String[] args)
39+
throws IOException, ExecutionException, InterruptedException, TimeoutException {
40+
// TODO(developer): Replace these variables before running the sample.
41+
// Project ID or project number of the Cloud project you want to use.
42+
String projectId = "YOUR_PROJECT_ID";
43+
44+
// Name of the region you want to use to run the job. Regions that are
45+
// available for Batch are listed on: https://cloud.google.com/batch/docs/get-started#locations
46+
String region = "europe-central2";
47+
48+
// The name of the job that will be created.
49+
// It needs to be unique for each project and region pair.
50+
String jobName = "JOB_NAME";
51+
52+
createScriptJob(projectId, region, jobName);
53+
}
54+
55+
// This method shows how to create a sample Batch Job that will run
56+
// a simple command on Cloud Compute instances.
57+
public static void createScriptJob(String projectId, String region, String jobName)
58+
throws IOException, ExecutionException, InterruptedException, TimeoutException {
59+
// Initialize client that will be used to send requests. This client only needs to be created
60+
// once, and can be reused for multiple requests. After completing all of your requests, call
61+
// the `batchServiceClient.close()` method on the client to safely
62+
// clean up any remaining background resources.
63+
try (BatchServiceClient batchServiceClient = BatchServiceClient.create()) {
64+
65+
// Define what will be done as part of the job.
66+
Runnable runnable =
67+
Runnable.newBuilder()
68+
.setScript(
69+
Script.newBuilder()
70+
.setText(
71+
"echo Hello world! This is task ${BATCH_TASK_INDEX}. "
72+
+ "This job has a total of ${BATCH_TASK_COUNT} tasks.")
73+
// You can also run a script from a file. Just remember, that needs to be a
74+
// script that's already on the VM that will be running the job.
75+
// Using setText() and setPath() is mutually exclusive.
76+
// .setPath("/tmp/test.sh")
77+
.build())
78+
.build();
79+
80+
// We can specify what resources are requested by each task.
81+
ComputeResource computeResource =
82+
ComputeResource.newBuilder()
83+
// In milliseconds per cpu-second. This means the task requires 2 whole CPUs.
84+
.setCpuMilli(2000)
85+
// In MiB.
86+
.setMemoryMib(16)
87+
.build();
88+
89+
TaskSpec task =
90+
TaskSpec.newBuilder()
91+
// Jobs can be divided into tasks. In this case, we have only one task.
92+
.addRunnables(runnable)
93+
.setComputeResource(computeResource)
94+
.setMaxRetryCount(2)
95+
.setMaxRunDuration(Duration.newBuilder().setSeconds(3600).build())
96+
.build();
97+
98+
// Tasks are grouped inside a job using TaskGroups.
99+
TaskGroup taskGroup = TaskGroup.newBuilder().setTaskCount(4).setTaskSpec(task).build();
100+
101+
// Policies are used to define on what kind of virtual machines the tasks will run on.
102+
// In this case, we tell the system to use "e2-standard-4" machine type.
103+
// Read more about machine types here: https://cloud.google.com/compute/docs/machine-types
104+
InstancePolicy instancePolicy =
105+
InstancePolicy.newBuilder().setMachineType("e2-standard-4").build();
106+
107+
AllocationPolicy allocationPolicy =
108+
AllocationPolicy.newBuilder()
109+
.addInstances(InstancePolicyOrTemplate.newBuilder().setPolicy(instancePolicy).build())
110+
.build();
111+
112+
Job job =
113+
Job.newBuilder()
114+
.addTaskGroups(taskGroup)
115+
.setAllocationPolicy(allocationPolicy)
116+
.putLabels("env", "testing")
117+
.putLabels("type", "script")
118+
// We use Cloud Logging as it's an out of the box available option.
119+
.setLogsPolicy(
120+
LogsPolicy.newBuilder().setDestination(Destination.CLOUD_LOGGING).build())
121+
.build();
122+
123+
CreateJobRequest createJobRequest =
124+
CreateJobRequest.newBuilder()
125+
// The job's parent is the region in which the job will run.
126+
.setParent(String.format("projects/%s/locations/%s", projectId, region))
127+
.setJob(job)
128+
.setJobId(jobName)
129+
.build();
130+
131+
Job result =
132+
batchServiceClient
133+
.createJobCallable()
134+
.futureCall(createJobRequest)
135+
.get(5, TimeUnit.MINUTES);
136+
137+
System.out.printf("Successfully created the job: %s", result.getName());
138+
}
139+
}
140+
}
141+
// [END batch_create_script_job]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
// Copyright 2022 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// [START batch_delete_job]
16+
17+
import com.google.cloud.batch.v1.BatchServiceClient;
18+
import java.io.IOException;
19+
import java.util.concurrent.ExecutionException;
20+
import java.util.concurrent.TimeUnit;
21+
import java.util.concurrent.TimeoutException;
22+
23+
public class DeleteJob {
24+
25+
public static void main(String[] args)
26+
throws IOException, ExecutionException, InterruptedException, TimeoutException {
27+
// TODO(developer): Replace these variables before running the sample.
28+
// Project ID or project number of the Cloud project you want to use.
29+
String projectId = "YOUR_PROJECT_ID";
30+
31+
// Name of the region hosts the job.
32+
String region = "europe-central2";
33+
34+
// The name of the job that you want to delete.
35+
String jobName = "JOB_NAME";
36+
37+
deleteJob(projectId, region, jobName);
38+
}
39+
40+
// Triggers the deletion of a Job.
41+
public static void deleteJob(String projectId, String region, String jobName)
42+
throws IOException, ExecutionException, InterruptedException, TimeoutException {
43+
// Initialize client that will be used to send requests. This client only needs to be created
44+
// once, and can be reused for multiple requests. After completing all of your requests, call
45+
// the `batchServiceClient.close()` method on the client to safely
46+
// clean up any remaining background resources.
47+
try (BatchServiceClient batchServiceClient = BatchServiceClient.create()) {
48+
49+
// Construct the parent path of the job.
50+
String name = String.format("projects/%s/locations/%s/jobs/%s", projectId, region, jobName);
51+
52+
batchServiceClient.deleteJobAsync(name).get(5, TimeUnit.MINUTES);
53+
System.out.printf("Delete the job: %s", jobName);
54+
}
55+
}
56+
}
57+
// [END batch_delete_job]

0 commit comments

Comments
 (0)