Skip to content
This repository was archived by the owner on Mar 16, 2023. It is now read-only.

Commit aaaa624

Browse files
feat: [batch] Adds named reservation to InstancePolicy (googleapis#8822)
- [ ] Regenerate this pull request now. --- docs:Remove "not yet implemented" for Accelerator & Refine Volume API docs --- docs: update the job id format requirement PiperOrigin-RevId: 489502315 Source-Link: https://togithub.com/googleapis/googleapis/commit/db1cc1139fe0def1e87ead1fffbc5bedbeccb887 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/fcc564ef064c7dff31d7970e12318ad084703ac6 Copy-Tag: eyJwIjoiamF2YS1iYXRjaC8uT3dsQm90LnlhbWwiLCJoIjoiZmNjNTY0ZWYwNjRjN2RmZjMxZDc5NzBlMTIzMThhZDA4NDcwM2FjNiJ9 BEGIN_NESTED_COMMIT feat: [batch] Adds named reservation to InstancePolicy --- docs:Remove "not yet implemented" for Accelerator & Refine Volume API docs --- docs: update the job id format requirement PiperOrigin-RevId: 489501779 Source-Link: https://togithub.com/googleapis/googleapis/commit/488a4bdeebf9c7f505f48bed23f0b95fcbbec0bb Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/5b3d3a550015e9367ad13ee5f9febe0c3f84cf33 Copy-Tag: eyJwIjoiamF2YS1iYXRjaC8uT3dsQm90LnlhbWwiLCJoIjoiNWIzZDNhNTUwMDE1ZTkzNjdhZDEzZWU1ZjlmZWJlMGMzZjg0Y2YzMyJ9 END_NESTED_COMMIT
1 parent f7d5c7f commit aaaa624

35 files changed

Lines changed: 1199 additions & 869 deletions

java-batch/README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file:
2222
<dependency>
2323
<groupId>com.google.cloud</groupId>
2424
<artifactId>google-cloud-batch</artifactId>
25-
<version>0.5.0</version>
25+
<version>0.6.0</version>
2626
</dependency>
2727
```
2828

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

3131
```Groovy
32-
implementation 'com.google.cloud:google-cloud-batch:0.5.0'
32+
implementation 'com.google.cloud:google-cloud-batch:0.6.0'
3333
```
3434

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

3737
```Scala
38-
libraryDependencies += "com.google.cloud" % "google-cloud-batch" % "0.5.0"
38+
libraryDependencies += "com.google.cloud" % "google-cloud-batch" % "0.6.0"
3939
```
4040

4141
## Authentication
@@ -165,16 +165,16 @@ Java is a registered trademark of Oracle and/or its affiliates.
165165

166166
[product-docs]: https://cloud.google.com/
167167
[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-batch/latest/overview
168-
[kokoro-badge-image-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-batch/java7.svg
169-
[kokoro-badge-link-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-batch/java7.html
170-
[kokoro-badge-image-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-batch/java8.svg
171-
[kokoro-badge-link-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-batch/java8.html
172-
[kokoro-badge-image-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-batch/java8-osx.svg
173-
[kokoro-badge-link-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-batch/java8-osx.html
174-
[kokoro-badge-image-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-batch/java8-win.svg
175-
[kokoro-badge-link-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-batch/java8-win.html
176-
[kokoro-badge-image-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-batch/java11.svg
177-
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-batch/java11.html
168+
[kokoro-badge-image-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java7.svg
169+
[kokoro-badge-link-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java7.html
170+
[kokoro-badge-image-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8.svg
171+
[kokoro-badge-link-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8.html
172+
[kokoro-badge-image-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8-osx.svg
173+
[kokoro-badge-link-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8-osx.html
174+
[kokoro-badge-image-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8-win.svg
175+
[kokoro-badge-link-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8-win.html
176+
[kokoro-badge-image-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.svg
177+
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
178178
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
179179
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-batch.svg
180180
[maven-version-link]: https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-batch&core=gav
@@ -186,9 +186,9 @@ Java is a registered trademark of Oracle and/or its affiliates.
186186
[create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects
187187
[cloud-sdk]: https://cloud.google.com/sdk/
188188
[troubleshooting]: https://github.com/googleapis/google-cloud-common/blob/main/troubleshooting/readme.md#troubleshooting
189-
[contributing]: https://github.com/googleapis/java-batch/blob/main/CONTRIBUTING.md
190-
[code-of-conduct]: https://github.com/googleapis/java-batch/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct
191-
[license]: https://github.com/googleapis/java-batch/blob/main/LICENSE
189+
[contributing]: https://github.com/googleapis/google-cloud-java/blob/main/CONTRIBUTING.md
190+
[code-of-conduct]: https://github.com/googleapis/google-cloud-java/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct
191+
[license]: https://github.com/googleapis/google-cloud-java/blob/main/LICENSE
192192
[enable-billing]: https://cloud.google.com/apis/docs/getting-started#enabling_billing
193193
[enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=batch.googleapis.com
194194
[libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM

java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/BatchServiceClient.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,9 @@ public final OperationsClient getHttpJsonOperationsClient() {
236236
* "projects/{project}/locations/{location}"
237237
* @param job Required. The Job to create.
238238
* @param jobId ID used to uniquely identify the Job within its parent scope. This field should
239-
* contain at most 63 characters. Only alphanumeric characters or '-' are accepted. The '-'
240-
* character cannot be the first or the last one. A system generated ID will be used if the
241-
* field is not set.
239+
* contain at most 63 characters and must start with lowercase characters. Only lowercase
240+
* characters, numbers and '-' are accepted. The '-' character cannot be the first or the last
241+
* one. A system generated ID will be used if the field is not set.
242242
* <p>The job.name field in the request will be ignored and the created resource name of the
243243
* Job will be "{parent}/jobs/{job_id}".
244244
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -277,9 +277,9 @@ public final Job createJob(LocationName parent, Job job, String jobId) {
277277
* "projects/{project}/locations/{location}"
278278
* @param job Required. The Job to create.
279279
* @param jobId ID used to uniquely identify the Job within its parent scope. This field should
280-
* contain at most 63 characters. Only alphanumeric characters or '-' are accepted. The '-'
281-
* character cannot be the first or the last one. A system generated ID will be used if the
282-
* field is not set.
280+
* contain at most 63 characters and must start with lowercase characters. Only lowercase
281+
* characters, numbers and '-' are accepted. The '-' character cannot be the first or the last
282+
* one. A system generated ID will be used if the field is not set.
283283
* <p>The job.name field in the request will be ignored and the created resource name of the
284284
* Job will be "{parent}/jobs/{job_id}".
285285
* @throws com.google.api.gax.rpc.ApiException if the remote call fails

java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/BatchServiceClient.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,9 @@ public final OperationsClient getHttpJsonOperationsClient() {
237237
* "projects/{project}/locations/{location}"
238238
* @param job Required. The Job to create.
239239
* @param jobId ID used to uniquely identify the Job within its parent scope. This field should
240-
* contain at most 63 characters. Only alphanumeric characters or '-' are accepted. The '-'
241-
* character cannot be the first or the last one. A system generated ID will be used if the
242-
* field is not set.
240+
* contain at most 63 characters and must start with lowercase characters. Only lowercase
241+
* characters, numbers and '-' are accepted. The '-' character cannot be the first or the last
242+
* one. A system generated ID will be used if the field is not set.
243243
* <p>The job.name field in the request will be ignored and the created resource name of the
244244
* Job will be "{parent}/jobs/{job_id}".
245245
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -278,9 +278,9 @@ public final Job createJob(LocationName parent, Job job, String jobId) {
278278
* "projects/{project}/locations/{location}"
279279
* @param job Required. The Job to create.
280280
* @param jobId ID used to uniquely identify the Job within its parent scope. This field should
281-
* contain at most 63 characters. Only alphanumeric characters or '-' are accepted. The '-'
282-
* character cannot be the first or the last one. A system generated ID will be used if the
283-
* field is not set.
281+
* contain at most 63 characters and must start with lowercase characters. Only lowercase
282+
* characters, numbers and '-' are accepted. The '-' character cannot be the first or the last
283+
* one. A system generated ID will be used if the field is not set.
284284
* <p>The job.name field in the request will be ignored and the created resource name of the
285285
* Job will be "{parent}/jobs/{job_id}".
286286
* @throws com.google.api.gax.rpc.ApiException if the remote call fails

0 commit comments

Comments
 (0)