Skip to content

Commit

Permalink
feat: [batch] support order_by in ListJobs and ListTasks requests (#9359
Browse files Browse the repository at this point in the history
)

- [ ] Regenerate this pull request now.

---
feat: add support for placement policies

---
feat: per-Runnable labels
PiperOrigin-RevId: 531181280

Source-Link: https://github.com/googleapis/googleapis/commit/284507839ffb401e0e1f2a4288178ecc511ca584

Source-Link: https://github.com/googleapis/googleapis-gen/commit/f09a853ad8080cfefdfc61b6434d762c8bfd6eb7
Copy-Tag: eyJwIjoiamF2YS1iYXRjaC8uT3dsQm90LnlhbWwiLCJoIjoiZjA5YTg1M2FkODA4MGNmZWZkZmM2MWI2NDM0ZDc2MmM4YmZkNmViNyJ9

BEGIN_NESTED_COMMIT
feat: [batch] support order_by in ListJobs and ListTasks requests (#21)
PiperOrigin-RevId: 530949397

Source-Link: https://github.com/googleapis/googleapis-gen/commit/50f5709c916294a900be0e7f515dca39aa2ba71c
Copy-Tag: eyJwIjoiamF2YS1iYXRjaC8uT3dsQm90LnlhbWwiLCJoIjoiNTBmNTcwOWM5MTYyOTRhOTAwYmUwZTdmNTE1ZGNhMzlhYTJiYTcxYyJ9
END_NESTED_COMMIT
BEGIN_NESTED_COMMIT
feat: [batch] support order_by in ListJobs and ListTasks requests
---
feat: add support for placement policies

---
feat: per-Runnable labels
PiperOrigin-RevId: 530747589

Source-Link: https://github.com/googleapis/googleapis/commit/d944931a7ef52d980ee57af4308f1eff85468de6

Source-Link: https://github.com/googleapis/googleapis-gen/commit/96b4871e5bb966512145d4199563e16e6e3d3baa
Copy-Tag: eyJwIjoiamF2YS1iYXRjaC8uT3dsQm90LnlhbWwiLCJoIjoiOTZiNDg3MWU1YmI5NjY1MTIxNDVkNDE5OTU2M2UxNmU2ZTNkM2JhYSJ9
END_NESTED_COMMIT
BEGIN_NESTED_COMMIT
feat: [batch] add TaskStatus's new terminated state UNEXECUTED
feat: add scheduling_policy IN_ORDER enum to support sequential task executions
docs: update comments on boot disk fields for clearer usage scope
feat: add support for placement policies
docs: update block_external_network field comment to reduce confusion
docs: update disk and network field comment for better readability
docs: fix `book disk` typo
docs: Update reservation field API doc

PiperOrigin-RevId: 524883955

Source-Link: https://github.com/googleapis/googleapis/commit/0830aaf0eaf5ef3615cb2f9c4ef81c73c319e1a7

Source-Link: https://github.com/googleapis/googleapis-gen/commit/a294b7e89acf09c4801b672d36aa171f9bd69403
Copy-Tag: eyJwIjoiamF2YS1iYXRjaC8uT3dsQm90LnlhbWwiLCJoIjoiYTI5NGI3ZTg5YWNmMDljNDgwMWI2NzJkMzZhYTE3MWY5YmQ2OTQwMyJ9
END_NESTED_COMMIT
  • Loading branch information
gcf-owl-bot[bot] authored May 12, 2023
1 parent 7b673de commit 720796b
Show file tree
Hide file tree
Showing 25 changed files with 2,413 additions and 679 deletions.
4 changes: 2 additions & 2 deletions java-batch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>26.11.0</version>
<version>26.14.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down Expand Up @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-batch.svg
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-batch/0.14.0
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-batch/0.17.0
[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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,7 @@ public final ListJobsPagedResponse listJobs(String parent) {
* ListJobsRequest.newBuilder()
* .setParent("parent-995424086")
* .setFilter("filter-1274492040")
* .setOrderBy("orderBy-1207110587")
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .build();
Expand Down Expand Up @@ -649,6 +650,7 @@ public final ListJobsPagedResponse listJobs(ListJobsRequest request) {
* ListJobsRequest.newBuilder()
* .setParent("parent-995424086")
* .setFilter("filter-1274492040")
* .setOrderBy("orderBy-1207110587")
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .build();
Expand Down Expand Up @@ -681,6 +683,7 @@ public final UnaryCallable<ListJobsRequest, ListJobsPagedResponse> listJobsPaged
* ListJobsRequest.newBuilder()
* .setParent("parent-995424086")
* .setFilter("filter-1274492040")
* .setOrderBy("orderBy-1207110587")
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .build();
Expand Down Expand Up @@ -894,6 +897,7 @@ public final ListTasksPagedResponse listTasks(String parent) {
* .setParent(
* TaskGroupName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[TASK_GROUP]").toString())
* .setFilter("filter-1274492040")
* .setOrderBy("orderBy-1207110587")
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .build();
Expand Down Expand Up @@ -928,6 +932,7 @@ public final ListTasksPagedResponse listTasks(ListTasksRequest request) {
* .setParent(
* TaskGroupName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[TASK_GROUP]").toString())
* .setFilter("filter-1274492040")
* .setOrderBy("orderBy-1207110587")
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .build();
Expand Down Expand Up @@ -961,6 +966,7 @@ public final UnaryCallable<ListTasksRequest, ListTasksPagedResponse> listTasksPa
* .setParent(
* TaskGroupName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[TASK_GROUP]").toString())
* .setFilter("filter-1274492040")
* .setOrderBy("orderBy-1207110587")
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ public class HttpJsonBatchServiceStub extends BatchServiceStub {
ProtoRestSerializer<ListJobsRequest> serializer =
ProtoRestSerializer.create();
serializer.putQueryParam(fields, "filter", request.getFilter());
serializer.putQueryParam(fields, "orderBy", request.getOrderBy());
serializer.putQueryParam(fields, "pageSize", request.getPageSize());
serializer.putQueryParam(fields, "pageToken", request.getPageToken());
serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
Expand Down Expand Up @@ -278,6 +279,7 @@ public class HttpJsonBatchServiceStub extends BatchServiceStub {
ProtoRestSerializer<ListTasksRequest> serializer =
ProtoRestSerializer.create();
serializer.putQueryParam(fields, "filter", request.getFilter());
serializer.putQueryParam(fields, "orderBy", request.getOrderBy());
serializer.putQueryParam(fields, "pageSize", request.getPageSize());
serializer.putQueryParam(fields, "pageToken", request.getPageToken());
serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
Expand Down Expand Up @@ -423,16 +425,6 @@ protected HttpJsonBatchServiceStub(
callableFactory,
typeRegistry,
ImmutableMap.<String, HttpRule>builder()
.put(
"google.longrunning.Operations.CancelOperation",
HttpRule.newBuilder()
.setPost("/v1alpha/{name=projects/*/locations/*/operations/*}:cancel")
.build())
.put(
"google.longrunning.Operations.DeleteOperation",
HttpRule.newBuilder()
.setDelete("/v1alpha/{name=projects/*/locations/*/operations/*}")
.build())
.put(
"google.longrunning.Operations.GetOperation",
HttpRule.newBuilder()
Expand Down
Loading

0 comments on commit 720796b

Please sign in to comment.