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

Commit 6d6a715

Browse files
feat: add Application.service_account (#234)
* chore(bazel): update version of Protobuf to v3.20.1 PiperOrigin-RevId: 444328399 Source-Link: googleapis/googleapis@c7ca416 Source-Link: https://github.com/googleapis/googleapis-gen/commit/d61705453a62b3ecda78aa30c192840ebc5a8a90 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDYxNzA1NDUzYTYyYjNlY2RhNzhhYTMwYzE5Mjg0MGViYzVhOGE5MCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore(deps): upgrade gapic-generator-java to 2.7.0 and update gax-java to 2.16.0 PiperOrigin-RevId: 446250659 Source-Link: googleapis/googleapis@dc4ef31 Source-Link: https://github.com/googleapis/googleapis-gen/commit/5fdda4ddfbab87998e77e4a453e0ff87986d2db8 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNWZkZGE0ZGRmYmFiODc5OThlNzdlNGE0NTNlMGZmODc5ODZkMmRiOCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: add Application.service_account feat: add client library method signature to retrieve Application by name feat: add Service.labels feat: add Version.app_engine_apis feat: add VpcAccessConnector.egress_setting PiperOrigin-RevId: 446641753 Source-Link: googleapis/googleapis@cd7a3e5 Source-Link: https://github.com/googleapis/googleapis-gen/commit/0e7d6d2055ea2ea48cefd8abb97f7f66e9b0e1a7 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMGU3ZDZkMjA1NWVhMmVhNDhjZWZkOGFiYjk3ZjdmNjZlOWIwZTFhNyJ9 * 🦉 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>
1 parent 8628ac3 commit 6d6a715

File tree

190 files changed

+2837
-1039
lines changed

Some content is hidden

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

190 files changed

+2837
-1039
lines changed

google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/ApplicationsClient.java

Lines changed: 57 additions & 4 deletions
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.
@@ -37,10 +37,11 @@
3737
* calls that map to API methods. Sample code to get started:
3838
*
3939
* <pre>{@code
40+
* // This snippet has been automatically generated for illustrative purposes only.
41+
* // It may require modifications to work in your environment.
4042
* try (ApplicationsClient applicationsClient = ApplicationsClient.create()) {
41-
* GetApplicationRequest request =
42-
* GetApplicationRequest.newBuilder().setName("name3373707").build();
43-
* Application response = applicationsClient.getApplication(request);
43+
* String name = "name3373707";
44+
* Application response = applicationsClient.getApplication(name);
4445
* }
4546
* }</pre>
4647
*
@@ -73,6 +74,8 @@
7374
* <p>To customize credentials:
7475
*
7576
* <pre>{@code
77+
* // This snippet has been automatically generated for illustrative purposes only.
78+
* // It may require modifications to work in your environment.
7679
* ApplicationsSettings applicationsSettings =
7780
* ApplicationsSettings.newBuilder()
7881
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -83,6 +86,8 @@
8386
* <p>To customize the endpoint:
8487
*
8588
* <pre>{@code
89+
* // This snippet has been automatically generated for illustrative purposes only.
90+
* // It may require modifications to work in your environment.
8691
* ApplicationsSettings applicationsSettings =
8792
* ApplicationsSettings.newBuilder().setEndpoint(myEndpoint).build();
8893
* ApplicationsClient applicationsClient = ApplicationsClient.create(applicationsSettings);
@@ -160,6 +165,31 @@ public final OperationsClient getOperationsClient() {
160165
* <p>Sample code:
161166
*
162167
* <pre>{@code
168+
* // This snippet has been automatically generated for illustrative purposes only.
169+
* // It may require modifications to work in your environment.
170+
* try (ApplicationsClient applicationsClient = ApplicationsClient.create()) {
171+
* String name = "name3373707";
172+
* Application response = applicationsClient.getApplication(name);
173+
* }
174+
* }</pre>
175+
*
176+
* @param name Name of the Application resource to get. Example: `apps/myapp`.
177+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
178+
*/
179+
public final Application getApplication(String name) {
180+
GetApplicationRequest request = GetApplicationRequest.newBuilder().setName(name).build();
181+
return getApplication(request);
182+
}
183+
184+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
185+
/**
186+
* Gets information about an application.
187+
*
188+
* <p>Sample code:
189+
*
190+
* <pre>{@code
191+
* // This snippet has been automatically generated for illustrative purposes only.
192+
* // It may require modifications to work in your environment.
163193
* try (ApplicationsClient applicationsClient = ApplicationsClient.create()) {
164194
* GetApplicationRequest request =
165195
* GetApplicationRequest.newBuilder().setName("name3373707").build();
@@ -181,6 +211,8 @@ public final Application getApplication(GetApplicationRequest request) {
181211
* <p>Sample code:
182212
*
183213
* <pre>{@code
214+
* // This snippet has been automatically generated for illustrative purposes only.
215+
* // It may require modifications to work in your environment.
184216
* try (ApplicationsClient applicationsClient = ApplicationsClient.create()) {
185217
* GetApplicationRequest request =
186218
* GetApplicationRequest.newBuilder().setName("name3373707").build();
@@ -211,6 +243,8 @@ public final UnaryCallable<GetApplicationRequest, Application> getApplicationCal
211243
* <p>Sample code:
212244
*
213245
* <pre>{@code
246+
* // This snippet has been automatically generated for illustrative purposes only.
247+
* // It may require modifications to work in your environment.
214248
* try (ApplicationsClient applicationsClient = ApplicationsClient.create()) {
215249
* CreateApplicationRequest request =
216250
* CreateApplicationRequest.newBuilder()
@@ -244,6 +278,8 @@ public final OperationFuture<Application, OperationMetadataV1> createApplication
244278
* <p>Sample code:
245279
*
246280
* <pre>{@code
281+
* // This snippet has been automatically generated for illustrative purposes only.
282+
* // It may require modifications to work in your environment.
247283
* try (ApplicationsClient applicationsClient = ApplicationsClient.create()) {
248284
* CreateApplicationRequest request =
249285
* CreateApplicationRequest.newBuilder()
@@ -277,6 +313,8 @@ public final OperationFuture<Application, OperationMetadataV1> createApplication
277313
* <p>Sample code:
278314
*
279315
* <pre>{@code
316+
* // This snippet has been automatically generated for illustrative purposes only.
317+
* // It may require modifications to work in your environment.
280318
* try (ApplicationsClient applicationsClient = ApplicationsClient.create()) {
281319
* CreateApplicationRequest request =
282320
* CreateApplicationRequest.newBuilder()
@@ -301,11 +339,14 @@ public final UnaryCallable<CreateApplicationRequest, Operation> createApplicatio
301339
* <li>`auth_domain` - Google authentication domain for controlling user access to the
302340
* application.
303341
* <li>`default_cookie_expiration` - Cookie expiration policy for the application.
342+
* <li>`iap` - Identity-Aware Proxy properties for the application.
304343
* </ul>
305344
*
306345
* <p>Sample code:
307346
*
308347
* <pre>{@code
348+
* // This snippet has been automatically generated for illustrative purposes only.
349+
* // It may require modifications to work in your environment.
309350
* try (ApplicationsClient applicationsClient = ApplicationsClient.create()) {
310351
* UpdateApplicationRequest request =
311352
* UpdateApplicationRequest.newBuilder()
@@ -333,11 +374,14 @@ public final OperationFuture<Application, OperationMetadataV1> updateApplication
333374
* <li>`auth_domain` - Google authentication domain for controlling user access to the
334375
* application.
335376
* <li>`default_cookie_expiration` - Cookie expiration policy for the application.
377+
* <li>`iap` - Identity-Aware Proxy properties for the application.
336378
* </ul>
337379
*
338380
* <p>Sample code:
339381
*
340382
* <pre>{@code
383+
* // This snippet has been automatically generated for illustrative purposes only.
384+
* // It may require modifications to work in your environment.
341385
* try (ApplicationsClient applicationsClient = ApplicationsClient.create()) {
342386
* UpdateApplicationRequest request =
343387
* UpdateApplicationRequest.newBuilder()
@@ -365,11 +409,14 @@ public final OperationFuture<Application, OperationMetadataV1> updateApplication
365409
* <li>`auth_domain` - Google authentication domain for controlling user access to the
366410
* application.
367411
* <li>`default_cookie_expiration` - Cookie expiration policy for the application.
412+
* <li>`iap` - Identity-Aware Proxy properties for the application.
368413
* </ul>
369414
*
370415
* <p>Sample code:
371416
*
372417
* <pre>{@code
418+
* // This snippet has been automatically generated for illustrative purposes only.
419+
* // It may require modifications to work in your environment.
373420
* try (ApplicationsClient applicationsClient = ApplicationsClient.create()) {
374421
* UpdateApplicationRequest request =
375422
* UpdateApplicationRequest.newBuilder()
@@ -401,6 +448,8 @@ public final UnaryCallable<UpdateApplicationRequest, Operation> updateApplicatio
401448
* <p>Sample code:
402449
*
403450
* <pre>{@code
451+
* // This snippet has been automatically generated for illustrative purposes only.
452+
* // It may require modifications to work in your environment.
404453
* try (ApplicationsClient applicationsClient = ApplicationsClient.create()) {
405454
* RepairApplicationRequest request =
406455
* RepairApplicationRequest.newBuilder().setName("name3373707").build();
@@ -429,6 +478,8 @@ public final OperationFuture<Application, OperationMetadataV1> repairApplication
429478
* <p>Sample code:
430479
*
431480
* <pre>{@code
481+
* // This snippet has been automatically generated for illustrative purposes only.
482+
* // It may require modifications to work in your environment.
432483
* try (ApplicationsClient applicationsClient = ApplicationsClient.create()) {
433484
* RepairApplicationRequest request =
434485
* RepairApplicationRequest.newBuilder().setName("name3373707").build();
@@ -457,6 +508,8 @@ public final OperationFuture<Application, OperationMetadataV1> repairApplication
457508
* <p>Sample code:
458509
*
459510
* <pre>{@code
511+
* // This snippet has been automatically generated for illustrative purposes only.
512+
* // It may require modifications to work in your environment.
460513
* try (ApplicationsClient applicationsClient = ApplicationsClient.create()) {
461514
* RepairApplicationRequest request =
462515
* RepairApplicationRequest.newBuilder().setName("name3373707").build();

google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/ApplicationsSettings.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.
@@ -51,6 +51,8 @@
5151
* <p>For example, to set the total timeout of getApplication to 30 seconds:
5252
*
5353
* <pre>{@code
54+
* // This snippet has been automatically generated for illustrative purposes only.
55+
* // It may require modifications to work in your environment.
5456
* ApplicationsSettings.Builder applicationsSettingsBuilder = ApplicationsSettings.newBuilder();
5557
* applicationsSettingsBuilder
5658
* .getApplicationSettings()

google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/AuthorizedCertificatesClient.java

Lines changed: 29 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.
@@ -43,6 +43,8 @@
4343
* calls that map to API methods. Sample code to get started:
4444
*
4545
* <pre>{@code
46+
* // This snippet has been automatically generated for illustrative purposes only.
47+
* // It may require modifications to work in your environment.
4648
* try (AuthorizedCertificatesClient authorizedCertificatesClient =
4749
* AuthorizedCertificatesClient.create()) {
4850
* GetAuthorizedCertificateRequest request =
@@ -85,6 +87,8 @@
8587
* <p>To customize credentials:
8688
*
8789
* <pre>{@code
90+
* // This snippet has been automatically generated for illustrative purposes only.
91+
* // It may require modifications to work in your environment.
8892
* AuthorizedCertificatesSettings authorizedCertificatesSettings =
8993
* AuthorizedCertificatesSettings.newBuilder()
9094
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -96,6 +100,8 @@
96100
* <p>To customize the endpoint:
97101
*
98102
* <pre>{@code
103+
* // This snippet has been automatically generated for illustrative purposes only.
104+
* // It may require modifications to work in your environment.
99105
* AuthorizedCertificatesSettings authorizedCertificatesSettings =
100106
* AuthorizedCertificatesSettings.newBuilder().setEndpoint(myEndpoint).build();
101107
* AuthorizedCertificatesClient authorizedCertificatesClient =
@@ -165,6 +171,8 @@ public AuthorizedCertificatesStub getStub() {
165171
* <p>Sample code:
166172
*
167173
* <pre>{@code
174+
* // This snippet has been automatically generated for illustrative purposes only.
175+
* // It may require modifications to work in your environment.
168176
* try (AuthorizedCertificatesClient authorizedCertificatesClient =
169177
* AuthorizedCertificatesClient.create()) {
170178
* ListAuthorizedCertificatesRequest request =
@@ -196,6 +204,8 @@ public final ListAuthorizedCertificatesPagedResponse listAuthorizedCertificates(
196204
* <p>Sample code:
197205
*
198206
* <pre>{@code
207+
* // This snippet has been automatically generated for illustrative purposes only.
208+
* // It may require modifications to work in your environment.
199209
* try (AuthorizedCertificatesClient authorizedCertificatesClient =
200210
* AuthorizedCertificatesClient.create()) {
201211
* ListAuthorizedCertificatesRequest request =
@@ -229,6 +239,8 @@ public final ListAuthorizedCertificatesPagedResponse listAuthorizedCertificates(
229239
* <p>Sample code:
230240
*
231241
* <pre>{@code
242+
* // This snippet has been automatically generated for illustrative purposes only.
243+
* // It may require modifications to work in your environment.
232244
* try (AuthorizedCertificatesClient authorizedCertificatesClient =
233245
* AuthorizedCertificatesClient.create()) {
234246
* ListAuthorizedCertificatesRequest request =
@@ -266,6 +278,8 @@ public final ListAuthorizedCertificatesPagedResponse listAuthorizedCertificates(
266278
* <p>Sample code:
267279
*
268280
* <pre>{@code
281+
* // This snippet has been automatically generated for illustrative purposes only.
282+
* // It may require modifications to work in your environment.
269283
* try (AuthorizedCertificatesClient authorizedCertificatesClient =
270284
* AuthorizedCertificatesClient.create()) {
271285
* GetAuthorizedCertificateRequest request =
@@ -293,6 +307,8 @@ public final AuthorizedCertificate getAuthorizedCertificate(
293307
* <p>Sample code:
294308
*
295309
* <pre>{@code
310+
* // This snippet has been automatically generated for illustrative purposes only.
311+
* // It may require modifications to work in your environment.
296312
* try (AuthorizedCertificatesClient authorizedCertificatesClient =
297313
* AuthorizedCertificatesClient.create()) {
298314
* GetAuthorizedCertificateRequest request =
@@ -319,6 +335,8 @@ public final AuthorizedCertificate getAuthorizedCertificate(
319335
* <p>Sample code:
320336
*
321337
* <pre>{@code
338+
* // This snippet has been automatically generated for illustrative purposes only.
339+
* // It may require modifications to work in your environment.
322340
* try (AuthorizedCertificatesClient authorizedCertificatesClient =
323341
* AuthorizedCertificatesClient.create()) {
324342
* CreateAuthorizedCertificateRequest request =
@@ -346,6 +364,8 @@ public final AuthorizedCertificate createAuthorizedCertificate(
346364
* <p>Sample code:
347365
*
348366
* <pre>{@code
367+
* // This snippet has been automatically generated for illustrative purposes only.
368+
* // It may require modifications to work in your environment.
349369
* try (AuthorizedCertificatesClient authorizedCertificatesClient =
350370
* AuthorizedCertificatesClient.create()) {
351371
* CreateAuthorizedCertificateRequest request =
@@ -375,6 +395,8 @@ public final AuthorizedCertificate createAuthorizedCertificate(
375395
* <p>Sample code:
376396
*
377397
* <pre>{@code
398+
* // This snippet has been automatically generated for illustrative purposes only.
399+
* // It may require modifications to work in your environment.
378400
* try (AuthorizedCertificatesClient authorizedCertificatesClient =
379401
* AuthorizedCertificatesClient.create()) {
380402
* UpdateAuthorizedCertificateRequest request =
@@ -406,6 +428,8 @@ public final AuthorizedCertificate updateAuthorizedCertificate(
406428
* <p>Sample code:
407429
*
408430
* <pre>{@code
431+
* // This snippet has been automatically generated for illustrative purposes only.
432+
* // It may require modifications to work in your environment.
409433
* try (AuthorizedCertificatesClient authorizedCertificatesClient =
410434
* AuthorizedCertificatesClient.create()) {
411435
* UpdateAuthorizedCertificateRequest request =
@@ -433,6 +457,8 @@ public final AuthorizedCertificate updateAuthorizedCertificate(
433457
* <p>Sample code:
434458
*
435459
* <pre>{@code
460+
* // This snippet has been automatically generated for illustrative purposes only.
461+
* // It may require modifications to work in your environment.
436462
* try (AuthorizedCertificatesClient authorizedCertificatesClient =
437463
* AuthorizedCertificatesClient.create()) {
438464
* DeleteAuthorizedCertificateRequest request =
@@ -455,6 +481,8 @@ public final void deleteAuthorizedCertificate(DeleteAuthorizedCertificateRequest
455481
* <p>Sample code:
456482
*
457483
* <pre>{@code
484+
* // This snippet has been automatically generated for illustrative purposes only.
485+
* // It may require modifications to work in your environment.
458486
* try (AuthorizedCertificatesClient authorizedCertificatesClient =
459487
* AuthorizedCertificatesClient.create()) {
460488
* DeleteAuthorizedCertificateRequest request =

google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/AuthorizedCertificatesSettings.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.
@@ -53,6 +53,8 @@
5353
* <p>For example, to set the total timeout of getAuthorizedCertificate to 30 seconds:
5454
*
5555
* <pre>{@code
56+
* // This snippet has been automatically generated for illustrative purposes only.
57+
* // It may require modifications to work in your environment.
5658
* AuthorizedCertificatesSettings.Builder authorizedCertificatesSettingsBuilder =
5759
* AuthorizedCertificatesSettings.newBuilder();
5860
* authorizedCertificatesSettingsBuilder

0 commit comments

Comments
 (0)