Skip to content

Commit

Permalink
feat: Add custom instance config operations (#1999)
Browse files Browse the repository at this point in the history
* feat: Add custom instance config operations

PiperOrigin-RevId: 473928081

Source-Link: googleapis/googleapis@5440048

Source-Link: googleapis/googleapis-gen@840feec
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiODQwZmVlY2Q3NThhZGFjYzEwMmQ2Yjg2ZTY2NTQ0YTBjMWMzNzA1NCJ9

chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions

PiperOrigin-RevId: 472750037

Source-Link: googleapis/googleapis@88f2ea3

Source-Link: googleapis/googleapis-gen@230a558
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjMwYTU1ODgzMDZhYWUxOGZlOGYyYTU3ZjE0ZDQwMzlhZDcyYzkwMSJ9

* 🦉 Updates from OwlBot post-processor

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

* fix!: Revert add custom instance config operations (change broke client libraries; reverting before any are released)

PiperOrigin-RevId: 473985182

Source-Link: googleapis/googleapis@e544df5

Source-Link: googleapis/googleapis-gen@a17c20e
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYTE3YzIwZTM0ZjA4ZGU4ZmI1ZjlhM2U1YmI0MjlmNDJiOGQ3NWNkZCJ9

* 🦉 Updates from OwlBot post-processor

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

* feat: Add custom instance config operations

PiperOrigin-RevId: 474535825

Source-Link: googleapis/googleapis@69c840e

Source-Link: googleapis/googleapis-gen@33e360e
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMzNlMzYwZTdkNGJmMjQ3OWZhNzllYWNlODUxNjY0NTNjZDc2MGIwZCJ9

* 🦉 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] committed Sep 16, 2022
1 parent 16db975 commit 74f9c3b
Show file tree
Hide file tree
Showing 64 changed files with 19,959 additions and 1,054 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,16 @@
* <p>For example, to set the total timeout of getDatabase to 30 seconds:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* DatabaseAdminSettings.Builder databaseAdminSettingsBuilder = DatabaseAdminSettings.newBuilder();
* databaseAdminSettingsBuilder
* .getDatabaseSettings()
* .setRetrySettings(
* databaseAdminSettingsBuilder
* .getDatabaseSettings()
* .getRetrySettings()
* .toBuilder()
* databaseAdminSettingsBuilder.getDatabaseSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* DatabaseAdminSettings databaseAdminSettings = databaseAdminSettingsBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@
* <p>Sample for DatabaseAdminClient:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.create()) {
* DatabaseName name = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]");
* Database response = databaseAdminClient.getDatabase(name);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,17 +115,17 @@
* <p>For example, to set the total timeout of getDatabase to 30 seconds:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* DatabaseAdminStubSettings.Builder databaseAdminSettingsBuilder =
* DatabaseAdminStubSettings.newBuilder();
* databaseAdminSettingsBuilder
* .getDatabaseSettings()
* .setRetrySettings(
* databaseAdminSettingsBuilder
* .getDatabaseSettings()
* .getRetrySettings()
* .toBuilder()
* databaseAdminSettingsBuilder.getDatabaseSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* DatabaseAdminStubSettings databaseAdminSettings = databaseAdminSettingsBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public class HttpJsonDatabaseAdminStub extends DatabaseAdminStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearParent().build()))
.toBody("*", request.toBuilder().clearParent().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -237,7 +237,7 @@ public class HttpJsonDatabaseAdminStub extends DatabaseAdminStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearDatabase().build()))
.toBody("*", request.toBuilder().clearDatabase().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -344,7 +344,7 @@ public class HttpJsonDatabaseAdminStub extends DatabaseAdminStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearResource().build()))
.toBody("*", request.toBuilder().clearResource().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Policy>newBuilder()
Expand Down Expand Up @@ -382,7 +382,7 @@ public class HttpJsonDatabaseAdminStub extends DatabaseAdminStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearResource().build()))
.toBody("*", request.toBuilder().clearResource().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Policy>newBuilder()
Expand Down Expand Up @@ -422,7 +422,7 @@ public class HttpJsonDatabaseAdminStub extends DatabaseAdminStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearResource().build()))
.toBody("*", request.toBuilder().clearResource().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<TestIamPermissionsResponse>newBuilder()
Expand Down Expand Up @@ -460,7 +460,8 @@ public class HttpJsonDatabaseAdminStub extends DatabaseAdminStub {
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create().toBody("backup", request.getBackup()))
ProtoRestSerializer.create()
.toBody("backup", request.getBackup(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -499,7 +500,7 @@ public class HttpJsonDatabaseAdminStub extends DatabaseAdminStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearParent().build()))
.toBody("*", request.toBuilder().clearParent().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -571,7 +572,8 @@ public class HttpJsonDatabaseAdminStub extends DatabaseAdminStub {
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create().toBody("backup", request.getBackup()))
ProtoRestSerializer.create()
.toBody("backup", request.getBackup(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Backup>newBuilder()
Expand Down Expand Up @@ -676,7 +678,7 @@ public class HttpJsonDatabaseAdminStub extends DatabaseAdminStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearParent().build()))
.toBody("*", request.toBuilder().clearParent().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down
Loading

0 comments on commit 74f9c3b

Please sign in to comment.