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

Commit 76f4833

Browse files
chore(deps): upgrade gapic-generator-java to 2.7.0 and update gax-java to 2.16.0 (#213)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 446250659 Source-Link: googleapis/googleapis@dc4ef31 Source-Link: https://github.com/googleapis/googleapis-gen/commit/5fdda4ddfbab87998e77e4a453e0ff87986d2db8 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNWZkZGE0ZGRmYmFiODc5OThlNzdlNGE0NTNlMGZmODc5ODZkMmRiOCJ9
1 parent 7bde3da commit 76f4833

File tree

53 files changed

+241
-53
lines changed

Some content is hidden

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

53 files changed

+241
-53
lines changed

google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Client.java

Lines changed: 61 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 Google LLC
2+
* Copyright 2022 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.
@@ -50,6 +50,8 @@
5050
* calls that map to API methods. Sample code to get started:
5151
*
5252
* <pre>{@code
53+
* // This snippet has been automatically generated for illustrative purposes only.
54+
* // It may require modifications to work in your environment.
5355
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
5456
* BinauthzManagementServiceV1Beta1Client.create()) {
5557
* PolicyName name = PolicyName.ofProjectName("[PROJECT]");
@@ -87,6 +89,8 @@
8789
* <p>To customize credentials:
8890
*
8991
* <pre>{@code
92+
* // This snippet has been automatically generated for illustrative purposes only.
93+
* // It may require modifications to work in your environment.
9094
* BinauthzManagementServiceV1Beta1Settings binauthzManagementServiceV1Beta1Settings =
9195
* BinauthzManagementServiceV1Beta1Settings.newBuilder()
9296
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -98,6 +102,8 @@
98102
* <p>To customize the endpoint:
99103
*
100104
* <pre>{@code
105+
* // This snippet has been automatically generated for illustrative purposes only.
106+
* // It may require modifications to work in your environment.
101107
* BinauthzManagementServiceV1Beta1Settings binauthzManagementServiceV1Beta1Settings =
102108
* BinauthzManagementServiceV1Beta1Settings.newBuilder().setEndpoint(myEndpoint).build();
103109
* BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
@@ -179,6 +185,8 @@ public BinauthzManagementServiceV1Beta1Stub getStub() {
179185
* <p>Sample code:
180186
*
181187
* <pre>{@code
188+
* // This snippet has been automatically generated for illustrative purposes only.
189+
* // It may require modifications to work in your environment.
182190
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
183191
* BinauthzManagementServiceV1Beta1Client.create()) {
184192
* PolicyName name = PolicyName.ofProjectName("[PROJECT]");
@@ -211,6 +219,8 @@ public final Policy getPolicy(PolicyName name) {
211219
* <p>Sample code:
212220
*
213221
* <pre>{@code
222+
* // This snippet has been automatically generated for illustrative purposes only.
223+
* // It may require modifications to work in your environment.
214224
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
215225
* BinauthzManagementServiceV1Beta1Client.create()) {
216226
* String name = PolicyName.ofProjectName("[PROJECT]").toString();
@@ -242,6 +252,8 @@ public final Policy getPolicy(String name) {
242252
* <p>Sample code:
243253
*
244254
* <pre>{@code
255+
* // This snippet has been automatically generated for illustrative purposes only.
256+
* // It may require modifications to work in your environment.
245257
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
246258
* BinauthzManagementServiceV1Beta1Client.create()) {
247259
* GetPolicyRequest request =
@@ -273,6 +285,8 @@ public final Policy getPolicy(GetPolicyRequest request) {
273285
* <p>Sample code:
274286
*
275287
* <pre>{@code
288+
* // This snippet has been automatically generated for illustrative purposes only.
289+
* // It may require modifications to work in your environment.
276290
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
277291
* BinauthzManagementServiceV1Beta1Client.create()) {
278292
* GetPolicyRequest request =
@@ -301,6 +315,8 @@ public final UnaryCallable<GetPolicyRequest, Policy> getPolicyCallable() {
301315
* <p>Sample code:
302316
*
303317
* <pre>{@code
318+
* // This snippet has been automatically generated for illustrative purposes only.
319+
* // It may require modifications to work in your environment.
304320
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
305321
* BinauthzManagementServiceV1Beta1Client.create()) {
306322
* Policy policy = Policy.newBuilder().build();
@@ -330,6 +346,8 @@ public final Policy updatePolicy(Policy policy) {
330346
* <p>Sample code:
331347
*
332348
* <pre>{@code
349+
* // This snippet has been automatically generated for illustrative purposes only.
350+
* // It may require modifications to work in your environment.
333351
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
334352
* BinauthzManagementServiceV1Beta1Client.create()) {
335353
* UpdatePolicyRequest request =
@@ -356,6 +374,8 @@ public final Policy updatePolicy(UpdatePolicyRequest request) {
356374
* <p>Sample code:
357375
*
358376
* <pre>{@code
377+
* // This snippet has been automatically generated for illustrative purposes only.
378+
* // It may require modifications to work in your environment.
359379
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
360380
* BinauthzManagementServiceV1Beta1Client.create()) {
361381
* UpdatePolicyRequest request =
@@ -381,6 +401,8 @@ public final UnaryCallable<UpdatePolicyRequest, Policy> updatePolicyCallable() {
381401
* <p>Sample code:
382402
*
383403
* <pre>{@code
404+
* // This snippet has been automatically generated for illustrative purposes only.
405+
* // It may require modifications to work in your environment.
384406
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
385407
* BinauthzManagementServiceV1Beta1Client.create()) {
386408
* ProjectName parent = ProjectName.of("[PROJECT]");
@@ -421,6 +443,8 @@ public final Attestor createAttestor(ProjectName parent, String attestorId, Atte
421443
* <p>Sample code:
422444
*
423445
* <pre>{@code
446+
* // This snippet has been automatically generated for illustrative purposes only.
447+
* // It may require modifications to work in your environment.
424448
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
425449
* BinauthzManagementServiceV1Beta1Client.create()) {
426450
* String parent = ProjectName.of("[PROJECT]").toString();
@@ -461,6 +485,8 @@ public final Attestor createAttestor(String parent, String attestorId, Attestor
461485
* <p>Sample code:
462486
*
463487
* <pre>{@code
488+
* // This snippet has been automatically generated for illustrative purposes only.
489+
* // It may require modifications to work in your environment.
464490
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
465491
* BinauthzManagementServiceV1Beta1Client.create()) {
466492
* CreateAttestorRequest request =
@@ -490,6 +516,8 @@ public final Attestor createAttestor(CreateAttestorRequest request) {
490516
* <p>Sample code:
491517
*
492518
* <pre>{@code
519+
* // This snippet has been automatically generated for illustrative purposes only.
520+
* // It may require modifications to work in your environment.
493521
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
494522
* BinauthzManagementServiceV1Beta1Client.create()) {
495523
* CreateAttestorRequest request =
@@ -517,6 +545,8 @@ public final UnaryCallable<CreateAttestorRequest, Attestor> createAttestorCallab
517545
* <p>Sample code:
518546
*
519547
* <pre>{@code
548+
* // This snippet has been automatically generated for illustrative purposes only.
549+
* // It may require modifications to work in your environment.
520550
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
521551
* BinauthzManagementServiceV1Beta1Client.create()) {
522552
* AttestorName name = AttestorName.of("[PROJECT]", "[ATTESTOR]");
@@ -543,6 +573,8 @@ public final Attestor getAttestor(AttestorName name) {
543573
* <p>Sample code:
544574
*
545575
* <pre>{@code
576+
* // This snippet has been automatically generated for illustrative purposes only.
577+
* // It may require modifications to work in your environment.
546578
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
547579
* BinauthzManagementServiceV1Beta1Client.create()) {
548580
* String name = AttestorName.of("[PROJECT]", "[ATTESTOR]").toString();
@@ -568,6 +600,8 @@ public final Attestor getAttestor(String name) {
568600
* <p>Sample code:
569601
*
570602
* <pre>{@code
603+
* // This snippet has been automatically generated for illustrative purposes only.
604+
* // It may require modifications to work in your environment.
571605
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
572606
* BinauthzManagementServiceV1Beta1Client.create()) {
573607
* GetAttestorRequest request =
@@ -593,6 +627,8 @@ public final Attestor getAttestor(GetAttestorRequest request) {
593627
* <p>Sample code:
594628
*
595629
* <pre>{@code
630+
* // This snippet has been automatically generated for illustrative purposes only.
631+
* // It may require modifications to work in your environment.
596632
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
597633
* BinauthzManagementServiceV1Beta1Client.create()) {
598634
* GetAttestorRequest request =
@@ -618,6 +654,8 @@ public final UnaryCallable<GetAttestorRequest, Attestor> getAttestorCallable() {
618654
* <p>Sample code:
619655
*
620656
* <pre>{@code
657+
* // This snippet has been automatically generated for illustrative purposes only.
658+
* // It may require modifications to work in your environment.
621659
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
622660
* BinauthzManagementServiceV1Beta1Client.create()) {
623661
* Attestor attestor = Attestor.newBuilder().build();
@@ -645,6 +683,8 @@ public final Attestor updateAttestor(Attestor attestor) {
645683
* <p>Sample code:
646684
*
647685
* <pre>{@code
686+
* // This snippet has been automatically generated for illustrative purposes only.
687+
* // It may require modifications to work in your environment.
648688
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
649689
* BinauthzManagementServiceV1Beta1Client.create()) {
650690
* UpdateAttestorRequest request =
@@ -668,6 +708,8 @@ public final Attestor updateAttestor(UpdateAttestorRequest request) {
668708
* <p>Sample code:
669709
*
670710
* <pre>{@code
711+
* // This snippet has been automatically generated for illustrative purposes only.
712+
* // It may require modifications to work in your environment.
671713
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
672714
* BinauthzManagementServiceV1Beta1Client.create()) {
673715
* UpdateAttestorRequest request =
@@ -691,6 +733,8 @@ public final UnaryCallable<UpdateAttestorRequest, Attestor> updateAttestorCallab
691733
* <p>Sample code:
692734
*
693735
* <pre>{@code
736+
* // This snippet has been automatically generated for illustrative purposes only.
737+
* // It may require modifications to work in your environment.
694738
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
695739
* BinauthzManagementServiceV1Beta1Client.create()) {
696740
* ProjectName parent = ProjectName.of("[PROJECT]");
@@ -722,6 +766,8 @@ public final ListAttestorsPagedResponse listAttestors(ProjectName parent) {
722766
* <p>Sample code:
723767
*
724768
* <pre>{@code
769+
* // This snippet has been automatically generated for illustrative purposes only.
770+
* // It may require modifications to work in your environment.
725771
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
726772
* BinauthzManagementServiceV1Beta1Client.create()) {
727773
* String parent = ProjectName.of("[PROJECT]").toString();
@@ -750,6 +796,8 @@ public final ListAttestorsPagedResponse listAttestors(String parent) {
750796
* <p>Sample code:
751797
*
752798
* <pre>{@code
799+
* // This snippet has been automatically generated for illustrative purposes only.
800+
* // It may require modifications to work in your environment.
753801
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
754802
* BinauthzManagementServiceV1Beta1Client.create()) {
755803
* ListAttestorsRequest request =
@@ -780,6 +828,8 @@ public final ListAttestorsPagedResponse listAttestors(ListAttestorsRequest reque
780828
* <p>Sample code:
781829
*
782830
* <pre>{@code
831+
* // This snippet has been automatically generated for illustrative purposes only.
832+
* // It may require modifications to work in your environment.
783833
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
784834
* BinauthzManagementServiceV1Beta1Client.create()) {
785835
* ListAttestorsRequest request =
@@ -810,6 +860,8 @@ public final ListAttestorsPagedResponse listAttestors(ListAttestorsRequest reque
810860
* <p>Sample code:
811861
*
812862
* <pre>{@code
863+
* // This snippet has been automatically generated for illustrative purposes only.
864+
* // It may require modifications to work in your environment.
813865
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
814866
* BinauthzManagementServiceV1Beta1Client.create()) {
815867
* ListAttestorsRequest request =
@@ -846,6 +898,8 @@ public final UnaryCallable<ListAttestorsRequest, ListAttestorsResponse> listAtte
846898
* <p>Sample code:
847899
*
848900
* <pre>{@code
901+
* // This snippet has been automatically generated for illustrative purposes only.
902+
* // It may require modifications to work in your environment.
849903
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
850904
* BinauthzManagementServiceV1Beta1Client.create()) {
851905
* AttestorName name = AttestorName.of("[PROJECT]", "[ATTESTOR]");
@@ -872,6 +926,8 @@ public final void deleteAttestor(AttestorName name) {
872926
* <p>Sample code:
873927
*
874928
* <pre>{@code
929+
* // This snippet has been automatically generated for illustrative purposes only.
930+
* // It may require modifications to work in your environment.
875931
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
876932
* BinauthzManagementServiceV1Beta1Client.create()) {
877933
* String name = AttestorName.of("[PROJECT]", "[ATTESTOR]").toString();
@@ -897,6 +953,8 @@ public final void deleteAttestor(String name) {
897953
* <p>Sample code:
898954
*
899955
* <pre>{@code
956+
* // This snippet has been automatically generated for illustrative purposes only.
957+
* // It may require modifications to work in your environment.
900958
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
901959
* BinauthzManagementServiceV1Beta1Client.create()) {
902960
* DeleteAttestorRequest request =
@@ -922,6 +980,8 @@ public final void deleteAttestor(DeleteAttestorRequest request) {
922980
* <p>Sample code:
923981
*
924982
* <pre>{@code
983+
* // This snippet has been automatically generated for illustrative purposes only.
984+
* // It may require modifications to work in your environment.
925985
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
926986
* BinauthzManagementServiceV1Beta1Client.create()) {
927987
* DeleteAttestorRequest request =

google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Settings.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 Google LLC
2+
* Copyright 2022 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.
@@ -54,6 +54,8 @@
5454
* <p>For example, to set the total timeout of getPolicy to 30 seconds:
5555
*
5656
* <pre>{@code
57+
* // This snippet has been automatically generated for illustrative purposes only.
58+
* // It may require modifications to work in your environment.
5759
* BinauthzManagementServiceV1Beta1Settings.Builder
5860
* binauthzManagementServiceV1Beta1SettingsBuilder =
5961
* BinauthzManagementServiceV1Beta1Settings.newBuilder();

google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Client.java

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 Google LLC
2+
* Copyright 2022 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.
@@ -33,6 +33,8 @@
3333
* calls that map to API methods. Sample code to get started:
3434
*
3535
* <pre>{@code
36+
* // This snippet has been automatically generated for illustrative purposes only.
37+
* // It may require modifications to work in your environment.
3638
* try (SystemPolicyV1Beta1Client systemPolicyV1Beta1Client = SystemPolicyV1Beta1Client.create()) {
3739
* PolicyName name = PolicyName.ofProjectName("[PROJECT]");
3840
* Policy response = systemPolicyV1Beta1Client.getSystemPolicy(name);
@@ -69,6 +71,8 @@
6971
* <p>To customize credentials:
7072
*
7173
* <pre>{@code
74+
* // This snippet has been automatically generated for illustrative purposes only.
75+
* // It may require modifications to work in your environment.
7276
* SystemPolicyV1Beta1Settings systemPolicyV1Beta1Settings =
7377
* SystemPolicyV1Beta1Settings.newBuilder()
7478
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -80,6 +84,8 @@
8084
* <p>To customize the endpoint:
8185
*
8286
* <pre>{@code
87+
* // This snippet has been automatically generated for illustrative purposes only.
88+
* // It may require modifications to work in your environment.
8389
* SystemPolicyV1Beta1Settings systemPolicyV1Beta1Settings =
8490
* SystemPolicyV1Beta1Settings.newBuilder().setEndpoint(myEndpoint).build();
8591
* SystemPolicyV1Beta1Client systemPolicyV1Beta1Client =
@@ -149,6 +155,8 @@ public SystemPolicyV1Beta1Stub getStub() {
149155
* <p>Sample code:
150156
*
151157
* <pre>{@code
158+
* // This snippet has been automatically generated for illustrative purposes only.
159+
* // It may require modifications to work in your environment.
152160
* try (SystemPolicyV1Beta1Client systemPolicyV1Beta1Client = SystemPolicyV1Beta1Client.create()) {
153161
* PolicyName name = PolicyName.ofProjectName("[PROJECT]");
154162
* Policy response = systemPolicyV1Beta1Client.getSystemPolicy(name);
@@ -172,6 +180,8 @@ public final Policy getSystemPolicy(PolicyName name) {
172180
* <p>Sample code:
173181
*
174182
* <pre>{@code
183+
* // This snippet has been automatically generated for illustrative purposes only.
184+
* // It may require modifications to work in your environment.
175185
* try (SystemPolicyV1Beta1Client systemPolicyV1Beta1Client = SystemPolicyV1Beta1Client.create()) {
176186
* String name = PolicyName.ofProjectName("[PROJECT]").toString();
177187
* Policy response = systemPolicyV1Beta1Client.getSystemPolicy(name);
@@ -194,6 +204,8 @@ public final Policy getSystemPolicy(String name) {
194204
* <p>Sample code:
195205
*
196206
* <pre>{@code
207+
* // This snippet has been automatically generated for illustrative purposes only.
208+
* // It may require modifications to work in your environment.
197209
* try (SystemPolicyV1Beta1Client systemPolicyV1Beta1Client = SystemPolicyV1Beta1Client.create()) {
198210
* GetSystemPolicyRequest request =
199211
* GetSystemPolicyRequest.newBuilder()
@@ -217,6 +229,8 @@ public final Policy getSystemPolicy(GetSystemPolicyRequest request) {
217229
* <p>Sample code:
218230
*
219231
* <pre>{@code
232+
* // This snippet has been automatically generated for illustrative purposes only.
233+
* // It may require modifications to work in your environment.
220234
* try (SystemPolicyV1Beta1Client systemPolicyV1Beta1Client = SystemPolicyV1Beta1Client.create()) {
221235
* GetSystemPolicyRequest request =
222236
* GetSystemPolicyRequest.newBuilder()

google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Settings.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 Google LLC
2+
* Copyright 2022 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.
@@ -50,6 +50,8 @@
5050
* <p>For example, to set the total timeout of getSystemPolicy to 30 seconds:
5151
*
5252
* <pre>{@code
53+
* // This snippet has been automatically generated for illustrative purposes only.
54+
* // It may require modifications to work in your environment.
5355
* SystemPolicyV1Beta1Settings.Builder systemPolicyV1Beta1SettingsBuilder =
5456
* SystemPolicyV1Beta1Settings.newBuilder();
5557
* systemPolicyV1Beta1SettingsBuilder

0 commit comments

Comments
 (0)