Skip to content

Commit

Permalink
feat: [cloudbuild] add update_mask to UpdateBuildTriggerRequest proto (
Browse files Browse the repository at this point in the history
…#9704)

* feat: Add automap_substitutions flag to use substitutions as envs in Cloud Build

PiperOrigin-RevId: 551218480

Source-Link: googleapis/googleapis@f823915

Source-Link: https://github.com/googleapis/googleapis-gen/commit/5979eecd8d2b0fc158fe7152a4da43ced2929780
Copy-Tag: eyJwIjoiamF2YS1jbG91ZGJ1aWxkLy5Pd2xCb3QueWFtbCIsImgiOiI1OTc5ZWVjZDhkMmIwZmMxNThmZTcxNTJhNGRhNDNjZWQyOTI5NzgwIn0=

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* feat: add update_mask to UpdateBuildTriggerRequest proto

PiperOrigin-RevId: 552479161

Source-Link: googleapis/googleapis@f8415bd

Source-Link: https://github.com/googleapis/googleapis-gen/commit/4ac7667c7dea38738d9e2176305a804de2258be1
Copy-Tag: eyJwIjoiamF2YS1jbG91ZGJ1aWxkLy5Pd2xCb3QueWFtbCIsImgiOiI0YWM3NjY3YzdkZWEzODczOGQ5ZTIxNzYzMDVhODA0ZGUyMjU4YmUxIn0=

* 🦉 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>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Aug 2, 2023
1 parent 52c03af commit 4659951
Show file tree
Hide file tree
Showing 15 changed files with 1,283 additions and 646 deletions.
4 changes: 2 additions & 2 deletions java-cloudbuild/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,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.19.0</version>
<version>26.20.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down Expand Up @@ -195,7 +195,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-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-build.svg
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-build/3.23.0
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-build/3.24.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 @@ -1574,6 +1574,7 @@ public final BuildTrigger updateBuildTrigger(
* .setProjectId("projectId-894832108")
* .setTriggerId("triggerId-648752909")
* .setTrigger(BuildTrigger.newBuilder().build())
* .setUpdateMask(FieldMask.newBuilder().build())
* .build();
* BuildTrigger response = cloudBuildClient.updateBuildTrigger(request);
* }
Expand Down Expand Up @@ -1606,6 +1607,7 @@ public final BuildTrigger updateBuildTrigger(UpdateBuildTriggerRequest request)
* .setProjectId("projectId-894832108")
* .setTriggerId("triggerId-648752909")
* .setTrigger(BuildTrigger.newBuilder().build())
* .setUpdateMask(FieldMask.newBuilder().build())
* .build();
* ApiFuture<BuildTrigger> future =
* cloudBuildClient.updateBuildTriggerCallable().futureCall(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,7 @@ public class HttpJsonCloudBuildStub extends CloudBuildStub {
Map<String, List<String>> fields = new HashMap<>();
ProtoRestSerializer<UpdateBuildTriggerRequest> serializer =
ProtoRestSerializer.create();
serializer.putQueryParam(fields, "updateMask", request.getUpdateMask());
serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
return fields;
})
Expand Down
Loading

0 comments on commit 4659951

Please sign in to comment.