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 (#194)

- [ ] 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 bfcdace commit b2ecd3e
Show file tree
Hide file tree
Showing 94 changed files with 1,249 additions and 502 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,11 @@
* <p>For example, to set the total timeout of getAuthorizationPolicy 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
* NetworkSecuritySettings.Builder networkSecuritySettingsBuilder =
* NetworkSecuritySettings.newBuilder();
* networkSecuritySettingsBuilder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@
* <p>Sample for NetworkSecurityClient:
*
* <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 (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
* AuthorizationPolicyName name =
* AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,11 @@
* <p>For example, to set the total timeout of getAuthorizationPolicy 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
* NetworkSecurityStubSettings.Builder networkSecuritySettingsBuilder =
* NetworkSecurityStubSettings.newBuilder();
* networkSecuritySettingsBuilder
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,11 @@
* <p>For example, to set the total timeout of getAuthorizationPolicy 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
* NetworkSecuritySettings.Builder networkSecuritySettingsBuilder =
* NetworkSecuritySettings.newBuilder();
* networkSecuritySettingsBuilder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@
* <p>Sample for NetworkSecurityClient:
*
* <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 (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
* AuthorizationPolicyName name =
* AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,10 @@ public class HttpJsonNetworkSecurityStub extends NetworkSecurityStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("authorizationPolicy", request.getAuthorizationPolicy()))
.toBody(
"authorizationPolicy",
request.getAuthorizationPolicy(),
false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -244,7 +247,10 @@ public class HttpJsonNetworkSecurityStub extends NetworkSecurityStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("authorizationPolicy", request.getAuthorizationPolicy()))
.toBody(
"authorizationPolicy",
request.getAuthorizationPolicy(),
false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -395,7 +401,7 @@ public class HttpJsonNetworkSecurityStub extends NetworkSecurityStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("serverTlsPolicy", request.getServerTlsPolicy()))
.toBody("serverTlsPolicy", request.getServerTlsPolicy(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -439,7 +445,7 @@ public class HttpJsonNetworkSecurityStub extends NetworkSecurityStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("serverTlsPolicy", request.getServerTlsPolicy()))
.toBody("serverTlsPolicy", request.getServerTlsPolicy(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -590,7 +596,7 @@ public class HttpJsonNetworkSecurityStub extends NetworkSecurityStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("clientTlsPolicy", request.getClientTlsPolicy()))
.toBody("clientTlsPolicy", request.getClientTlsPolicy(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -634,7 +640,7 @@ public class HttpJsonNetworkSecurityStub extends NetworkSecurityStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("clientTlsPolicy", request.getClientTlsPolicy()))
.toBody("clientTlsPolicy", request.getClientTlsPolicy(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -779,7 +785,7 @@ public class HttpJsonNetworkSecurityStub extends NetworkSecurityStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearResource().build()))
.toBody("*", request.toBuilder().clearResource().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Policy>newBuilder()
Expand Down Expand Up @@ -854,7 +860,7 @@ public class HttpJsonNetworkSecurityStub extends NetworkSecurityStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearResource().build()))
.toBody("*", request.toBuilder().clearResource().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<TestIamPermissionsResponse>newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,11 @@
* <p>For example, to set the total timeout of getAuthorizationPolicy 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
* NetworkSecurityStubSettings.Builder networkSecuritySettingsBuilder =
* NetworkSecurityStubSettings.newBuilder();
* networkSecuritySettingsBuilder
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
NetworkSecuritySettings networkSecuritySettings =
NetworkSecuritySettings.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
NetworkSecuritySettings networkSecuritySettings =
NetworkSecuritySettings.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
NetworkSecuritySettings networkSecuritySettings =
NetworkSecuritySettings.newBuilder().setEndpoint(myEndpoint).build();
NetworkSecurityClient networkSecurityClient =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
}

public static void asyncCreateAuthorizationPolicy() 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 (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
CreateAuthorizationPolicyRequest request =
CreateAuthorizationPolicyRequest.newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
}

public static void asyncCreateAuthorizationPolicyLRO() 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 (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
CreateAuthorizationPolicyRequest request =
CreateAuthorizationPolicyRequest.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 syncCreateAuthorizationPolicy() 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 (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
CreateAuthorizationPolicyRequest request =
CreateAuthorizationPolicyRequest.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 syncCreateAuthorizationPolicyLocationnameAuthorizationpolicyString()
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 (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
AuthorizationPolicy authorizationPolicy = AuthorizationPolicy.newBuilder().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 syncCreateAuthorizationPolicyStringAuthorizationpolicyString()
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 (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
AuthorizationPolicy authorizationPolicy = AuthorizationPolicy.newBuilder().build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
}

public static void asyncCreateClientTlsPolicy() 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 (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
CreateClientTlsPolicyRequest request =
CreateClientTlsPolicyRequest.newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
}

public static void asyncCreateClientTlsPolicyLRO() 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 (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
CreateClientTlsPolicyRequest request =
CreateClientTlsPolicyRequest.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 syncCreateClientTlsPolicy() 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 (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
CreateClientTlsPolicyRequest request =
CreateClientTlsPolicyRequest.newBuilder()
Expand Down
Loading

0 comments on commit b2ecd3e

Please sign in to comment.