Skip to content

Commit 26bdfa3

Browse files
chore(bazel): update protobuf to v3.21.7 (#186)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 477955264 Source-Link: https://togithub.com/googleapis/googleapis/commit/a724450af76d0001f23602684c49cd6a4b3a5654 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/4abcbcaec855e74a0b22a4988cf9e0eb61a83094 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGFiY2JjYWVjODU1ZTc0YTBiMjJhNDk4OGNmOWUwZWI2MWE4MzA5NCJ9 fix!: Fix resource annotations for Cloud Deploy to use common resource name for locations This is technically a breaking change in that it's modifying the type for a resource, but it's a fast-follow fix to the earlier broken definition. PiperOrigin-RevId: 477192133 Source-Link: https://togithub.com/googleapis/googleapis/commit/f252e11bdab81146c67a7de4eddec412f18cd94f Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/34ca7cd6da0ac5920011c8bda01e8bc32b7da444 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMzRjYTdjZDZkYTBhYzU5MjAwMTFjOGJkYTAxZThiYzMyYjdkYTQ0NCJ9 feat: Publish new JobRun resource and associated methods for Google Cloud Deploy PiperOrigin-RevId: 477144554 Source-Link: https://togithub.com/googleapis/googleapis/commit/59a30fb00d6142f88c6b9960e195ff33bc66776e Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/4edce039d3cffaa4202f6112d9caf6fc29dec0be Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGVkY2UwMzlkM2NmZmFhNDIwMmY2MTEyZDljYWY2ZmMyOWRlYzBiZSJ9
1 parent f4d027a commit 26bdfa3

File tree

146 files changed

+39573
-5374
lines changed

Some content is hidden

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

146 files changed

+39573
-5374
lines changed

java-deploy/google-cloud-deploy/pom.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333
<groupId>com.google.api</groupId>
3434
<artifactId>api-common</artifactId>
3535
</dependency>
36+
<dependency>
37+
<groupId>com.google.api.grpc</groupId>
38+
<artifactId>proto-google-iam-v1</artifactId>
39+
</dependency>
3640
<dependency>
3741
<groupId>com.google.protobuf</groupId>
3842
<artifactId>protobuf-java</artifactId>
@@ -80,6 +84,17 @@
8084
<artifactId>grpc-google-cloud-deploy-v1</artifactId>
8185
<scope>test</scope>
8286
</dependency>
87+
<dependency>
88+
<groupId>com.google.api.grpc</groupId>
89+
<artifactId>grpc-google-iam-v1</artifactId>
90+
<scope>test</scope>
91+
</dependency>
92+
<dependency>
93+
<groupId>com.google.api.grpc</groupId>
94+
<artifactId>grpc-google-common-protos</artifactId>
95+
<scope>test</scope>
96+
</dependency>
97+
8398
<!-- Need testing utility classes for generated gRPC clients tests -->
8499
<dependency>
85100
<groupId>com.google.api</groupId>

java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeployClient.java

Lines changed: 1183 additions & 63 deletions
Large diffs are not rendered by default.

java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeploySettings.java

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
package com.google.cloud.deploy.v1;
1818

1919
import static com.google.cloud.deploy.v1.CloudDeployClient.ListDeliveryPipelinesPagedResponse;
20+
import static com.google.cloud.deploy.v1.CloudDeployClient.ListJobRunsPagedResponse;
21+
import static com.google.cloud.deploy.v1.CloudDeployClient.ListLocationsPagedResponse;
2022
import static com.google.cloud.deploy.v1.CloudDeployClient.ListReleasesPagedResponse;
2123
import static com.google.cloud.deploy.v1.CloudDeployClient.ListRolloutsPagedResponse;
2224
import static com.google.cloud.deploy.v1.CloudDeployClient.ListTargetsPagedResponse;
@@ -35,6 +37,15 @@
3537
import com.google.api.gax.rpc.TransportChannelProvider;
3638
import com.google.api.gax.rpc.UnaryCallSettings;
3739
import com.google.cloud.deploy.v1.stub.CloudDeployStubSettings;
40+
import com.google.cloud.location.GetLocationRequest;
41+
import com.google.cloud.location.ListLocationsRequest;
42+
import com.google.cloud.location.ListLocationsResponse;
43+
import com.google.cloud.location.Location;
44+
import com.google.iam.v1.GetIamPolicyRequest;
45+
import com.google.iam.v1.Policy;
46+
import com.google.iam.v1.SetIamPolicyRequest;
47+
import com.google.iam.v1.TestIamPermissionsRequest;
48+
import com.google.iam.v1.TestIamPermissionsResponse;
3849
import com.google.longrunning.Operation;
3950
import com.google.protobuf.Empty;
4051
import java.io.IOException;
@@ -194,6 +205,11 @@ public UnaryCallSettings<CreateReleaseRequest, Operation> createReleaseSettings(
194205
return ((CloudDeployStubSettings) getStubSettings()).createReleaseOperationSettings();
195206
}
196207

208+
/** Returns the object with the settings used for calls to abandonRelease. */
209+
public UnaryCallSettings<AbandonReleaseRequest, AbandonReleaseResponse> abandonReleaseSettings() {
210+
return ((CloudDeployStubSettings) getStubSettings()).abandonReleaseSettings();
211+
}
212+
197213
/** Returns the object with the settings used for calls to approveRollout. */
198214
public UnaryCallSettings<ApproveRolloutRequest, ApproveRolloutResponse> approveRolloutSettings() {
199215
return ((CloudDeployStubSettings) getStubSettings()).approveRolloutSettings();
@@ -221,11 +237,54 @@ public UnaryCallSettings<CreateRolloutRequest, Operation> createRolloutSettings(
221237
return ((CloudDeployStubSettings) getStubSettings()).createRolloutOperationSettings();
222238
}
223239

240+
/** Returns the object with the settings used for calls to retryJob. */
241+
public UnaryCallSettings<RetryJobRequest, RetryJobResponse> retryJobSettings() {
242+
return ((CloudDeployStubSettings) getStubSettings()).retryJobSettings();
243+
}
244+
245+
/** Returns the object with the settings used for calls to listJobRuns. */
246+
public PagedCallSettings<ListJobRunsRequest, ListJobRunsResponse, ListJobRunsPagedResponse>
247+
listJobRunsSettings() {
248+
return ((CloudDeployStubSettings) getStubSettings()).listJobRunsSettings();
249+
}
250+
251+
/** Returns the object with the settings used for calls to getJobRun. */
252+
public UnaryCallSettings<GetJobRunRequest, JobRun> getJobRunSettings() {
253+
return ((CloudDeployStubSettings) getStubSettings()).getJobRunSettings();
254+
}
255+
224256
/** Returns the object with the settings used for calls to getConfig. */
225257
public UnaryCallSettings<GetConfigRequest, Config> getConfigSettings() {
226258
return ((CloudDeployStubSettings) getStubSettings()).getConfigSettings();
227259
}
228260

261+
/** Returns the object with the settings used for calls to listLocations. */
262+
public PagedCallSettings<ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
263+
listLocationsSettings() {
264+
return ((CloudDeployStubSettings) getStubSettings()).listLocationsSettings();
265+
}
266+
267+
/** Returns the object with the settings used for calls to getLocation. */
268+
public UnaryCallSettings<GetLocationRequest, Location> getLocationSettings() {
269+
return ((CloudDeployStubSettings) getStubSettings()).getLocationSettings();
270+
}
271+
272+
/** Returns the object with the settings used for calls to setIamPolicy. */
273+
public UnaryCallSettings<SetIamPolicyRequest, Policy> setIamPolicySettings() {
274+
return ((CloudDeployStubSettings) getStubSettings()).setIamPolicySettings();
275+
}
276+
277+
/** Returns the object with the settings used for calls to getIamPolicy. */
278+
public UnaryCallSettings<GetIamPolicyRequest, Policy> getIamPolicySettings() {
279+
return ((CloudDeployStubSettings) getStubSettings()).getIamPolicySettings();
280+
}
281+
282+
/** Returns the object with the settings used for calls to testIamPermissions. */
283+
public UnaryCallSettings<TestIamPermissionsRequest, TestIamPermissionsResponse>
284+
testIamPermissionsSettings() {
285+
return ((CloudDeployStubSettings) getStubSettings()).testIamPermissionsSettings();
286+
}
287+
229288
public static final CloudDeploySettings create(CloudDeployStubSettings stub) throws IOException {
230289
return new CloudDeploySettings.Builder(stub.toBuilder()).build();
231290
}
@@ -461,6 +520,12 @@ public UnaryCallSettings.Builder<CreateReleaseRequest, Operation> createReleaseS
461520
return getStubSettingsBuilder().createReleaseOperationSettings();
462521
}
463522

523+
/** Returns the builder for the settings used for calls to abandonRelease. */
524+
public UnaryCallSettings.Builder<AbandonReleaseRequest, AbandonReleaseResponse>
525+
abandonReleaseSettings() {
526+
return getStubSettingsBuilder().abandonReleaseSettings();
527+
}
528+
464529
/** Returns the builder for the settings used for calls to approveRollout. */
465530
public UnaryCallSettings.Builder<ApproveRolloutRequest, ApproveRolloutResponse>
466531
approveRolloutSettings() {
@@ -490,11 +555,56 @@ public UnaryCallSettings.Builder<CreateRolloutRequest, Operation> createRolloutS
490555
return getStubSettingsBuilder().createRolloutOperationSettings();
491556
}
492557

558+
/** Returns the builder for the settings used for calls to retryJob. */
559+
public UnaryCallSettings.Builder<RetryJobRequest, RetryJobResponse> retryJobSettings() {
560+
return getStubSettingsBuilder().retryJobSettings();
561+
}
562+
563+
/** Returns the builder for the settings used for calls to listJobRuns. */
564+
public PagedCallSettings.Builder<
565+
ListJobRunsRequest, ListJobRunsResponse, ListJobRunsPagedResponse>
566+
listJobRunsSettings() {
567+
return getStubSettingsBuilder().listJobRunsSettings();
568+
}
569+
570+
/** Returns the builder for the settings used for calls to getJobRun. */
571+
public UnaryCallSettings.Builder<GetJobRunRequest, JobRun> getJobRunSettings() {
572+
return getStubSettingsBuilder().getJobRunSettings();
573+
}
574+
493575
/** Returns the builder for the settings used for calls to getConfig. */
494576
public UnaryCallSettings.Builder<GetConfigRequest, Config> getConfigSettings() {
495577
return getStubSettingsBuilder().getConfigSettings();
496578
}
497579

580+
/** Returns the builder for the settings used for calls to listLocations. */
581+
public PagedCallSettings.Builder<
582+
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
583+
listLocationsSettings() {
584+
return getStubSettingsBuilder().listLocationsSettings();
585+
}
586+
587+
/** Returns the builder for the settings used for calls to getLocation. */
588+
public UnaryCallSettings.Builder<GetLocationRequest, Location> getLocationSettings() {
589+
return getStubSettingsBuilder().getLocationSettings();
590+
}
591+
592+
/** Returns the builder for the settings used for calls to setIamPolicy. */
593+
public UnaryCallSettings.Builder<SetIamPolicyRequest, Policy> setIamPolicySettings() {
594+
return getStubSettingsBuilder().setIamPolicySettings();
595+
}
596+
597+
/** Returns the builder for the settings used for calls to getIamPolicy. */
598+
public UnaryCallSettings.Builder<GetIamPolicyRequest, Policy> getIamPolicySettings() {
599+
return getStubSettingsBuilder().getIamPolicySettings();
600+
}
601+
602+
/** Returns the builder for the settings used for calls to testIamPermissions. */
603+
public UnaryCallSettings.Builder<TestIamPermissionsRequest, TestIamPermissionsResponse>
604+
testIamPermissionsSettings() {
605+
return getStubSettingsBuilder().testIamPermissionsSettings();
606+
}
607+
498608
@Override
499609
public CloudDeploySettings build() throws IOException {
500610
return new CloudDeploySettings(this);

java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/gapic_metadata.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
"grpc": {
1111
"libraryClient": "CloudDeployClient",
1212
"rpcs": {
13+
"AbandonRelease": {
14+
"methods": ["abandonRelease", "abandonRelease", "abandonRelease", "abandonReleaseCallable"]
15+
},
1316
"ApproveRollout": {
1417
"methods": ["approveRollout", "approveRollout", "approveRollout", "approveRolloutCallable"]
1518
},
@@ -37,6 +40,15 @@
3740
"GetDeliveryPipeline": {
3841
"methods": ["getDeliveryPipeline", "getDeliveryPipeline", "getDeliveryPipeline", "getDeliveryPipelineCallable"]
3942
},
43+
"GetIamPolicy": {
44+
"methods": ["getIamPolicy", "getIamPolicyCallable"]
45+
},
46+
"GetJobRun": {
47+
"methods": ["getJobRun", "getJobRun", "getJobRun", "getJobRunCallable"]
48+
},
49+
"GetLocation": {
50+
"methods": ["getLocation", "getLocationCallable"]
51+
},
4052
"GetRelease": {
4153
"methods": ["getRelease", "getRelease", "getRelease", "getReleaseCallable"]
4254
},
@@ -49,6 +61,12 @@
4961
"ListDeliveryPipelines": {
5062
"methods": ["listDeliveryPipelines", "listDeliveryPipelines", "listDeliveryPipelines", "listDeliveryPipelinesPagedCallable", "listDeliveryPipelinesCallable"]
5163
},
64+
"ListJobRuns": {
65+
"methods": ["listJobRuns", "listJobRuns", "listJobRuns", "listJobRunsPagedCallable", "listJobRunsCallable"]
66+
},
67+
"ListLocations": {
68+
"methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
69+
},
5270
"ListReleases": {
5371
"methods": ["listReleases", "listReleases", "listReleases", "listReleasesPagedCallable", "listReleasesCallable"]
5472
},
@@ -58,6 +76,15 @@
5876
"ListTargets": {
5977
"methods": ["listTargets", "listTargets", "listTargets", "listTargetsPagedCallable", "listTargetsCallable"]
6078
},
79+
"RetryJob": {
80+
"methods": ["retryJob", "retryJob", "retryJob", "retryJobCallable"]
81+
},
82+
"SetIamPolicy": {
83+
"methods": ["setIamPolicy", "setIamPolicyCallable"]
84+
},
85+
"TestIamPermissions": {
86+
"methods": ["testIamPermissions", "testIamPermissionsCallable"]
87+
},
6188
"UpdateDeliveryPipeline": {
6289
"methods": ["updateDeliveryPipelineAsync", "updateDeliveryPipelineAsync", "updateDeliveryPipelineOperationCallable", "updateDeliveryPipelineCallable"]
6390
},

java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStub.java

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,17 @@
1717
package com.google.cloud.deploy.v1.stub;
1818

1919
import static com.google.cloud.deploy.v1.CloudDeployClient.ListDeliveryPipelinesPagedResponse;
20+
import static com.google.cloud.deploy.v1.CloudDeployClient.ListJobRunsPagedResponse;
21+
import static com.google.cloud.deploy.v1.CloudDeployClient.ListLocationsPagedResponse;
2022
import static com.google.cloud.deploy.v1.CloudDeployClient.ListReleasesPagedResponse;
2123
import static com.google.cloud.deploy.v1.CloudDeployClient.ListRolloutsPagedResponse;
2224
import static com.google.cloud.deploy.v1.CloudDeployClient.ListTargetsPagedResponse;
2325

2426
import com.google.api.gax.core.BackgroundResource;
2527
import com.google.api.gax.rpc.OperationCallable;
2628
import com.google.api.gax.rpc.UnaryCallable;
29+
import com.google.cloud.deploy.v1.AbandonReleaseRequest;
30+
import com.google.cloud.deploy.v1.AbandonReleaseResponse;
2731
import com.google.cloud.deploy.v1.ApproveRolloutRequest;
2832
import com.google.cloud.deploy.v1.ApproveRolloutResponse;
2933
import com.google.cloud.deploy.v1.Config;
@@ -36,11 +40,15 @@
3640
import com.google.cloud.deploy.v1.DeliveryPipeline;
3741
import com.google.cloud.deploy.v1.GetConfigRequest;
3842
import com.google.cloud.deploy.v1.GetDeliveryPipelineRequest;
43+
import com.google.cloud.deploy.v1.GetJobRunRequest;
3944
import com.google.cloud.deploy.v1.GetReleaseRequest;
4045
import com.google.cloud.deploy.v1.GetRolloutRequest;
4146
import com.google.cloud.deploy.v1.GetTargetRequest;
47+
import com.google.cloud.deploy.v1.JobRun;
4248
import com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest;
4349
import com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse;
50+
import com.google.cloud.deploy.v1.ListJobRunsRequest;
51+
import com.google.cloud.deploy.v1.ListJobRunsResponse;
4452
import com.google.cloud.deploy.v1.ListReleasesRequest;
4553
import com.google.cloud.deploy.v1.ListReleasesResponse;
4654
import com.google.cloud.deploy.v1.ListRolloutsRequest;
@@ -49,10 +57,21 @@
4957
import com.google.cloud.deploy.v1.ListTargetsResponse;
5058
import com.google.cloud.deploy.v1.OperationMetadata;
5159
import com.google.cloud.deploy.v1.Release;
60+
import com.google.cloud.deploy.v1.RetryJobRequest;
61+
import com.google.cloud.deploy.v1.RetryJobResponse;
5262
import com.google.cloud.deploy.v1.Rollout;
5363
import com.google.cloud.deploy.v1.Target;
5464
import com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest;
5565
import com.google.cloud.deploy.v1.UpdateTargetRequest;
66+
import com.google.cloud.location.GetLocationRequest;
67+
import com.google.cloud.location.ListLocationsRequest;
68+
import com.google.cloud.location.ListLocationsResponse;
69+
import com.google.cloud.location.Location;
70+
import com.google.iam.v1.GetIamPolicyRequest;
71+
import com.google.iam.v1.Policy;
72+
import com.google.iam.v1.SetIamPolicyRequest;
73+
import com.google.iam.v1.TestIamPermissionsRequest;
74+
import com.google.iam.v1.TestIamPermissionsResponse;
5675
import com.google.longrunning.Operation;
5776
import com.google.longrunning.stub.OperationsStub;
5877
import com.google.protobuf.Empty;
@@ -180,6 +199,10 @@ public UnaryCallable<CreateReleaseRequest, Operation> createReleaseCallable() {
180199
throw new UnsupportedOperationException("Not implemented: createReleaseCallable()");
181200
}
182201

202+
public UnaryCallable<AbandonReleaseRequest, AbandonReleaseResponse> abandonReleaseCallable() {
203+
throw new UnsupportedOperationException("Not implemented: abandonReleaseCallable()");
204+
}
205+
183206
public UnaryCallable<ApproveRolloutRequest, ApproveRolloutResponse> approveRolloutCallable() {
184207
throw new UnsupportedOperationException("Not implemented: approveRolloutCallable()");
185208
}
@@ -205,10 +228,52 @@ public UnaryCallable<CreateRolloutRequest, Operation> createRolloutCallable() {
205228
throw new UnsupportedOperationException("Not implemented: createRolloutCallable()");
206229
}
207230

231+
public UnaryCallable<RetryJobRequest, RetryJobResponse> retryJobCallable() {
232+
throw new UnsupportedOperationException("Not implemented: retryJobCallable()");
233+
}
234+
235+
public UnaryCallable<ListJobRunsRequest, ListJobRunsPagedResponse> listJobRunsPagedCallable() {
236+
throw new UnsupportedOperationException("Not implemented: listJobRunsPagedCallable()");
237+
}
238+
239+
public UnaryCallable<ListJobRunsRequest, ListJobRunsResponse> listJobRunsCallable() {
240+
throw new UnsupportedOperationException("Not implemented: listJobRunsCallable()");
241+
}
242+
243+
public UnaryCallable<GetJobRunRequest, JobRun> getJobRunCallable() {
244+
throw new UnsupportedOperationException("Not implemented: getJobRunCallable()");
245+
}
246+
208247
public UnaryCallable<GetConfigRequest, Config> getConfigCallable() {
209248
throw new UnsupportedOperationException("Not implemented: getConfigCallable()");
210249
}
211250

251+
public UnaryCallable<ListLocationsRequest, ListLocationsPagedResponse>
252+
listLocationsPagedCallable() {
253+
throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
254+
}
255+
256+
public UnaryCallable<ListLocationsRequest, ListLocationsResponse> listLocationsCallable() {
257+
throw new UnsupportedOperationException("Not implemented: listLocationsCallable()");
258+
}
259+
260+
public UnaryCallable<GetLocationRequest, Location> getLocationCallable() {
261+
throw new UnsupportedOperationException("Not implemented: getLocationCallable()");
262+
}
263+
264+
public UnaryCallable<SetIamPolicyRequest, Policy> setIamPolicyCallable() {
265+
throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()");
266+
}
267+
268+
public UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
269+
throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()");
270+
}
271+
272+
public UnaryCallable<TestIamPermissionsRequest, TestIamPermissionsResponse>
273+
testIamPermissionsCallable() {
274+
throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
275+
}
276+
212277
@Override
213278
public abstract void close();
214279
}

0 commit comments

Comments
 (0)