Skip to content

Commit

Permalink
chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, gener…
Browse files Browse the repository at this point in the history
…ator_java versions (#255)

- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 472750037

Source-Link: googleapis/googleapis@88f2ea3

Source-Link: https://github.com/googleapis/googleapis-gen/commit/230a5588306aae18fe8f2a57f14d4039ad72c901
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjMwYTU1ODgzMDZhYWUxOGZlOGYyYTU3ZjE0ZDQwMzlhZDcyYzkwMSJ9
  • Loading branch information
gcf-owl-bot[bot] authored Sep 9, 2022
1 parent f693bcc commit 59c0889
Show file tree
Hide file tree
Showing 13 changed files with 89 additions and 52 deletions.
6 changes: 3 additions & 3 deletions java-policy-troubleshooter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-policy-troubleshooter</artifactId>
<version>1.2.2</version>
<version>1.2.3</version>
</dependency>
```

If you are using Gradle without BOM, add this to your dependencies:

```Groovy
implementation 'com.google.cloud:google-cloud-policy-troubleshooter:1.2.2'
implementation 'com.google.cloud:google-cloud-policy-troubleshooter:1.2.3'
```

If you are using SBT, add this to your dependencies:

```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-policy-troubleshooter" % "1.2.2"
libraryDependencies += "com.google.cloud" % "google-cloud-policy-troubleshooter" % "1.2.3"
```

## Authentication
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@
* calls that map to API methods. Sample code to get started:
*
* <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 (IamCheckerClient iamCheckerClient = IamCheckerClient.create()) {
* TroubleshootIamPolicyRequest request =
* TroubleshootIamPolicyRequest.newBuilder()
Expand Down Expand Up @@ -74,8 +77,11 @@
* <p>To customize credentials:
*
* <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
* IamCheckerSettings iamCheckerSettings =
* IamCheckerSettings.newBuilder()
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
Expand All @@ -86,8 +92,11 @@
* <p>To customize the endpoint:
*
* <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
* IamCheckerSettings iamCheckerSettings =
* IamCheckerSettings.newBuilder().setEndpoint(myEndpoint).build();
* IamCheckerClient iamCheckerClient = IamCheckerClient.create(iamCheckerSettings);
Expand All @@ -97,8 +106,11 @@
* the wire:
*
* <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
* IamCheckerSettings iamCheckerSettings =
* IamCheckerSettings.newBuilder()
* .setTransportChannelProvider(
Expand Down Expand Up @@ -165,8 +177,11 @@ public IamCheckerStub getStub() {
* <p>Sample code:
*
* <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 (IamCheckerClient iamCheckerClient = IamCheckerClient.create()) {
* TroubleshootIamPolicyRequest request =
* TroubleshootIamPolicyRequest.newBuilder()
Expand All @@ -192,8 +207,11 @@ public final TroubleshootIamPolicyResponse troubleshootIamPolicy(
* <p>Sample code:
*
* <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 (IamCheckerClient iamCheckerClient = IamCheckerClient.create()) {
* TroubleshootIamPolicyRequest request =
* TroubleshootIamPolicyRequest.newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,16 @@
* <p>For example, to set the total timeout of troubleshootIamPolicy 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
* IamCheckerSettings.Builder iamCheckerSettingsBuilder = IamCheckerSettings.newBuilder();
* iamCheckerSettingsBuilder
* .troubleshootIamPolicySettings()
* .setRetrySettings(
* iamCheckerSettingsBuilder
* .troubleshootIamPolicySettings()
* .getRetrySettings()
* .toBuilder()
* iamCheckerSettingsBuilder.troubleshootIamPolicySettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* IamCheckerSettings iamCheckerSettings = iamCheckerSettingsBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@
* <p>Sample for IamCheckerClient:
*
* <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 (IamCheckerClient iamCheckerClient = IamCheckerClient.create()) {
* TroubleshootIamPolicyRequest request =
* TroubleshootIamPolicyRequest.newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ public class HttpJsonIamCheckerStub extends IamCheckerStub {
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create().toBody("*", request.toBuilder().build()))
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<TroubleshootIamPolicyResponse>newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,16 @@
* <p>For example, to set the total timeout of troubleshootIamPolicy 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
* IamCheckerStubSettings.Builder iamCheckerSettingsBuilder = IamCheckerStubSettings.newBuilder();
* iamCheckerSettingsBuilder
* .troubleshootIamPolicySettings()
* .setRetrySettings(
* iamCheckerSettingsBuilder
* .troubleshootIamPolicySettings()
* .getRetrySettings()
* .toBuilder()
* iamCheckerSettingsBuilder.troubleshootIamPolicySettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* IamCheckerStubSettings iamCheckerSettings = iamCheckerSettingsBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
}

public static void syncCreateSetCredentialsProvider() throws Exception {
// 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
IamCheckerSettings iamCheckerSettings =
IamCheckerSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
}

public static void syncCreateSetCredentialsProvider1() throws Exception {
// 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
IamCheckerSettings iamCheckerSettings =
IamCheckerSettings.newBuilder()
.setTransportChannelProvider(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}

public static void syncCreateSetEndpoint() throws Exception {
// 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
IamCheckerSettings iamCheckerSettings =
IamCheckerSettings.newBuilder().setEndpoint(myEndpoint).build();
IamCheckerClient iamCheckerClient = IamCheckerClient.create(iamCheckerSettings);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
}

public static void asyncTroubleshootIamPolicy() throws Exception {
// 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 (IamCheckerClient iamCheckerClient = IamCheckerClient.create()) {
TroubleshootIamPolicyRequest request =
TroubleshootIamPolicyRequest.newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
}

public static void syncTroubleshootIamPolicy() throws Exception {
// 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 (IamCheckerClient iamCheckerClient = IamCheckerClient.create()) {
TroubleshootIamPolicyRequest request =
TroubleshootIamPolicyRequest.newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception {
}

public static void syncTroubleshootIamPolicy() throws Exception {
// 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
IamCheckerSettings.Builder iamCheckerSettingsBuilder = IamCheckerSettings.newBuilder();
iamCheckerSettingsBuilder
.troubleshootIamPolicySettings()
.setRetrySettings(
iamCheckerSettingsBuilder
.troubleshootIamPolicySettings()
.getRetrySettings()
.toBuilder()
iamCheckerSettingsBuilder.troubleshootIamPolicySettings().getRetrySettings().toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
IamCheckerSettings iamCheckerSettings = iamCheckerSettingsBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception {
}

public static void syncTroubleshootIamPolicy() throws Exception {
// 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
IamCheckerStubSettings.Builder iamCheckerSettingsBuilder = IamCheckerStubSettings.newBuilder();
iamCheckerSettingsBuilder
.troubleshootIamPolicySettings()
.setRetrySettings(
iamCheckerSettingsBuilder
.troubleshootIamPolicySettings()
.getRetrySettings()
.toBuilder()
iamCheckerSettingsBuilder.troubleshootIamPolicySettings().getRetrySettings().toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
IamCheckerStubSettings iamCheckerSettings = iamCheckerSettingsBuilder.build();
Expand Down

0 comments on commit 59c0889

Please sign in to comment.