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

Commit db14077

Browse files
feat: add queue_ttl to Build, invert_regex to RepoSource (#100)
* chore: Migrate cloudbuild synth.py to bazel The changes in grpc stubs are caused by the gRPC upgrade from 1.10 (more than a year old) to 1.27 (same version which is used as runtime dependency) * chore: Migrate cloudbuild synth.py to bazel The changes in grpc stubs are caused by the gRPC upgrade from 1.10 (more than a year old) to 1.27 (same version which is used as runtime dependency) * chore: Migrate dataproc synth.py to bazel The changes in grpc stubs are caused by the gRPC upgrade from 1.10 (more than a year old) to 1.27 (same version which is used as runtime dependency) Co-authored-by: Jeff Ching <chingor@google.com>
1 parent b5a9292 commit db14077

File tree

103 files changed

+6252
-1422
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+6252
-1422
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file
2929
<groupId>com.google.cloud</groupId>
3030
<artifactId>google-cloud-build</artifactId>
3131
</dependency>
32+
</dependencies>
3233

3334
```
3435

google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildClient.java

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019 Google LLC
2+
* Copyright 2020 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -205,7 +205,6 @@ public CloudBuildStub getStub() {
205205
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
206206
*/
207207
public final Operation createBuild(String projectId, Build build) {
208-
209208
CreateBuildRequest request =
210209
CreateBuildRequest.newBuilder().setProjectId(projectId).setBuild(build).build();
211210
return createBuild(request);
@@ -288,7 +287,6 @@ public final UnaryCallable<CreateBuildRequest, Operation> createBuildCallable()
288287
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
289288
*/
290289
public final Build getBuild(String projectId, String id) {
291-
292290
GetBuildRequest request =
293291
GetBuildRequest.newBuilder().setProjectId(projectId).setId(id).build();
294292
return getBuild(request);
@@ -486,7 +484,6 @@ public final UnaryCallable<ListBuildsRequest, ListBuildsResponse> listBuildsCall
486484
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
487485
*/
488486
public final Build cancelBuild(String projectId, String id) {
489-
490487
CancelBuildRequest request =
491488
CancelBuildRequest.newBuilder().setProjectId(projectId).setId(id).build();
492489
return cancelBuild(request);
@@ -562,7 +559,6 @@ public final UnaryCallable<CancelBuildRequest, Build> cancelBuildCallable() {
562559
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
563560
*/
564561
public final BuildTrigger createBuildTrigger(String projectId, BuildTrigger trigger) {
565-
566562
CreateBuildTriggerRequest request =
567563
CreateBuildTriggerRequest.newBuilder().setProjectId(projectId).setTrigger(trigger).build();
568564
return createBuildTrigger(request);
@@ -638,11 +634,10 @@ public final UnaryCallable<CreateBuildTriggerRequest, BuildTrigger> createBuildT
638634
* </code></pre>
639635
*
640636
* @param projectId Required. ID of the project that owns the trigger.
641-
* @param triggerId Required. ID of the `BuildTrigger` to get.
637+
* @param triggerId Required. Identifier (`id` or `name`) of the `BuildTrigger` to get.
642638
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
643639
*/
644640
public final BuildTrigger getBuildTrigger(String projectId, String triggerId) {
645-
646641
GetBuildTriggerRequest request =
647642
GetBuildTriggerRequest.newBuilder().setProjectId(projectId).setTriggerId(triggerId).build();
648643
return getBuildTrigger(request);
@@ -720,7 +715,6 @@ public final UnaryCallable<GetBuildTriggerRequest, BuildTrigger> getBuildTrigger
720715
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
721716
*/
722717
public final ListBuildTriggersResponse listBuildTriggers(String projectId) {
723-
724718
ListBuildTriggersRequest request =
725719
ListBuildTriggersRequest.newBuilder().setProjectId(projectId).build();
726720
return listBuildTriggers(request);
@@ -797,7 +791,6 @@ public final ListBuildTriggersResponse listBuildTriggers(ListBuildTriggersReques
797791
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
798792
*/
799793
public final void deleteBuildTrigger(String projectId, String triggerId) {
800-
801794
DeleteBuildTriggerRequest request =
802795
DeleteBuildTriggerRequest.newBuilder()
803796
.setProjectId(projectId)
@@ -883,7 +876,6 @@ public final UnaryCallable<DeleteBuildTriggerRequest, Empty> deleteBuildTriggerC
883876
*/
884877
public final BuildTrigger updateBuildTrigger(
885878
String projectId, String triggerId, BuildTrigger trigger) {
886-
887879
UpdateBuildTriggerRequest request =
888880
UpdateBuildTriggerRequest.newBuilder()
889881
.setProjectId(projectId)
@@ -971,7 +963,6 @@ public final UnaryCallable<UpdateBuildTriggerRequest, BuildTrigger> updateBuildT
971963
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
972964
*/
973965
public final Operation runBuildTrigger(String projectId, String triggerId, RepoSource source) {
974-
975966
RunBuildTriggerRequest request =
976967
RunBuildTriggerRequest.newBuilder()
977968
.setProjectId(projectId)
@@ -1076,7 +1067,6 @@ public final UnaryCallable<RunBuildTriggerRequest, Operation> runBuildTriggerCal
10761067
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
10771068
*/
10781069
public final Operation retryBuild(String projectId, String id) {
1079-
10801070
RetryBuildRequest request =
10811071
RetryBuildRequest.newBuilder().setProjectId(projectId).setId(id).build();
10821072
return retryBuild(request);

google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildSettings.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019 Google LLC
2+
* Copyright 2020 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -78,8 +78,12 @@
7878
* <code>
7979
* CloudBuildSettings.Builder cloudBuildSettingsBuilder =
8080
* CloudBuildSettings.newBuilder();
81-
* cloudBuildSettingsBuilder.createBuildSettings().getRetrySettings().toBuilder()
82-
* .setTotalTimeout(Duration.ofSeconds(30));
81+
* cloudBuildSettingsBuilder
82+
* .createBuildSettings()
83+
* .setRetrySettings(
84+
* cloudBuildSettingsBuilder.createBuildSettings().getRetrySettings().toBuilder()
85+
* .setTotalTimeout(Duration.ofSeconds(30))
86+
* .build());
8387
* CloudBuildSettings cloudBuildSettings = cloudBuildSettingsBuilder.build();
8488
* </code>
8589
* </pre>

google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/package-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019 Google LLC
2+
* Copyright 2020 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStub.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019 Google LLC
2+
* Copyright 2020 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStubSettings.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019 Google LLC
2+
* Copyright 2020 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -93,8 +93,12 @@
9393
* <code>
9494
* CloudBuildStubSettings.Builder cloudBuildSettingsBuilder =
9595
* CloudBuildStubSettings.newBuilder();
96-
* cloudBuildSettingsBuilder.createBuildSettings().getRetrySettings().toBuilder()
97-
* .setTotalTimeout(Duration.ofSeconds(30));
96+
* cloudBuildSettingsBuilder
97+
* .createBuildSettings()
98+
* .setRetrySettings(
99+
* cloudBuildSettingsBuilder.createBuildSettings().getRetrySettings().toBuilder()
100+
* .setTotalTimeout(Duration.ofSeconds(30))
101+
* .build());
98102
* CloudBuildStubSettings cloudBuildSettings = cloudBuildSettingsBuilder.build();
99103
* </code>
100104
* </pre>

google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/GrpcCloudBuildCallableFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019 Google LLC
2+
* Copyright 2020 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/GrpcCloudBuildStub.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019 Google LLC
2+
* Copyright 2020 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)