diff --git a/generation_config.yaml b/generation_config.yaml
index b3366de7f359..76a9c95606a8 100644
--- a/generation_config.yaml
+++ b/generation_config.yaml
@@ -1,5 +1,5 @@
gapic_generator_version: 2.65.1
-googleapis_commitish: e006e1c8b69c0594e6f872316a3543b3b37ad81b
+googleapis_commitish: 415914bd49d41beaae8a9adb348ee2587c93aa70
libraries_bom_version: 26.73.0
# the libraries are ordered with respect to library name, which is
diff --git a/java-cloudapiregistry/README.md b/java-cloudapiregistry/README.md
index d965c63c5aeb..68c106547f61 100644
--- a/java-cloudapiregistry/README.md
+++ b/java-cloudapiregistry/README.md
@@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies:
TestIamPermissions
Returns permissions that a caller has on the specified resource.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *testIamPermissions(TestIamPermissionsAutoscalerRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *testIamPermissions(String project, String zone, String resource, TestPermissionsRequest testPermissionsRequestResource) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *testIamPermissionsCallable() + *
Update
Updates an autoscaler in the specified project using the data included in the request.
Sample code: + * + *
{@code
+ * // 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 (AutoscalersClient autoscalersClient = AutoscalersClient.create()) {
+ * String project = "project-309310695";
+ * String zone = "zone3744684";
+ * String resource = "resource-341064690";
+ * TestPermissionsRequest testPermissionsRequestResource =
+ * TestPermissionsRequest.newBuilder().build();
+ * TestPermissionsResponse response =
+ * autoscalersClient.testIamPermissions(
+ * project, zone, resource, testPermissionsRequestResource);
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param zone The name of the zone for this request.
+ * @param resource Name or id of the resource for this request.
+ * @param testPermissionsRequestResource The body resource for this request
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TestPermissionsResponse testIamPermissions(
+ String project,
+ String zone,
+ String resource,
+ TestPermissionsRequest testPermissionsRequestResource) {
+ TestIamPermissionsAutoscalerRequest request =
+ TestIamPermissionsAutoscalerRequest.newBuilder()
+ .setProject(project)
+ .setZone(zone)
+ .setResource(resource)
+ .setTestPermissionsRequestResource(testPermissionsRequestResource)
+ .build();
+ return testIamPermissions(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns permissions that a caller has on the specified resource.
+ *
+ * Sample code: + * + *
{@code
+ * // 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 (AutoscalersClient autoscalersClient = AutoscalersClient.create()) {
+ * TestIamPermissionsAutoscalerRequest request =
+ * TestIamPermissionsAutoscalerRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setResource("resource-341064690")
+ * .setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build())
+ * .setZone("zone3744684")
+ * .build();
+ * TestPermissionsResponse response = autoscalersClient.testIamPermissions(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TestPermissionsResponse testIamPermissions(
+ TestIamPermissionsAutoscalerRequest request) {
+ return testIamPermissionsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns permissions that a caller has on the specified resource.
+ *
+ * Sample code: + * + *
{@code
+ * // 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 (AutoscalersClient autoscalersClient = AutoscalersClient.create()) {
+ * TestIamPermissionsAutoscalerRequest request =
+ * TestIamPermissionsAutoscalerRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setResource("resource-341064690")
+ * .setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build())
+ * .setZone("zone3744684")
+ * .build();
+ * ApiFuture future =
+ * autoscalersClient.testIamPermissionsCallable().futureCall(request);
+ * // Do something.
+ * TestPermissionsResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableTestIamPermissions
Returns permissions that a caller has on the specified resource.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *testIamPermissions(TestIamPermissionsHealthCheckRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *testIamPermissions(String project, String resource, TestPermissionsRequest testPermissionsRequestResource) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *testIamPermissionsCallable() + *
Update
Updates a HealthCheck resource in the specified project using the data included in the request.
Sample code: + * + *
{@code
+ * // 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 (HealthChecksClient healthChecksClient = HealthChecksClient.create()) {
+ * String project = "project-309310695";
+ * String resource = "resource-341064690";
+ * TestPermissionsRequest testPermissionsRequestResource =
+ * TestPermissionsRequest.newBuilder().build();
+ * TestPermissionsResponse response =
+ * healthChecksClient.testIamPermissions(project, resource, testPermissionsRequestResource);
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param resource Name or id of the resource for this request.
+ * @param testPermissionsRequestResource The body resource for this request
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TestPermissionsResponse testIamPermissions(
+ String project, String resource, TestPermissionsRequest testPermissionsRequestResource) {
+ TestIamPermissionsHealthCheckRequest request =
+ TestIamPermissionsHealthCheckRequest.newBuilder()
+ .setProject(project)
+ .setResource(resource)
+ .setTestPermissionsRequestResource(testPermissionsRequestResource)
+ .build();
+ return testIamPermissions(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns permissions that a caller has on the specified resource.
+ *
+ * Sample code: + * + *
{@code
+ * // 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 (HealthChecksClient healthChecksClient = HealthChecksClient.create()) {
+ * TestIamPermissionsHealthCheckRequest request =
+ * TestIamPermissionsHealthCheckRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setResource("resource-341064690")
+ * .setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build())
+ * .build();
+ * TestPermissionsResponse response = healthChecksClient.testIamPermissions(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TestPermissionsResponse testIamPermissions(
+ TestIamPermissionsHealthCheckRequest request) {
+ return testIamPermissionsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns permissions that a caller has on the specified resource.
+ *
+ * Sample code: + * + *
{@code
+ * // 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 (HealthChecksClient healthChecksClient = HealthChecksClient.create()) {
+ * TestIamPermissionsHealthCheckRequest request =
+ * TestIamPermissionsHealthCheckRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setResource("resource-341064690")
+ * .setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * healthChecksClient.testIamPermissionsCallable().futureCall(request);
+ * // Do something.
+ * TestPermissionsResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableTestIamPermissions
Returns permissions that a caller has on the specified resource.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *testIamPermissions(TestIamPermissionsRegionAutoscalerRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *testIamPermissions(String project, String region, String resource, TestPermissionsRequest testPermissionsRequestResource) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *testIamPermissionsCallable() + *
Update
Updates an autoscaler in the specified project using the data included in the request.
Sample code: + * + *
{@code
+ * // 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 (RegionAutoscalersClient regionAutoscalersClient = RegionAutoscalersClient.create()) {
+ * String project = "project-309310695";
+ * String region = "region-934795532";
+ * String resource = "resource-341064690";
+ * TestPermissionsRequest testPermissionsRequestResource =
+ * TestPermissionsRequest.newBuilder().build();
+ * TestPermissionsResponse response =
+ * regionAutoscalersClient.testIamPermissions(
+ * project, region, resource, testPermissionsRequestResource);
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param region The name of the region for this request.
+ * @param resource Name or id of the resource for this request.
+ * @param testPermissionsRequestResource The body resource for this request
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TestPermissionsResponse testIamPermissions(
+ String project,
+ String region,
+ String resource,
+ TestPermissionsRequest testPermissionsRequestResource) {
+ TestIamPermissionsRegionAutoscalerRequest request =
+ TestIamPermissionsRegionAutoscalerRequest.newBuilder()
+ .setProject(project)
+ .setRegion(region)
+ .setResource(resource)
+ .setTestPermissionsRequestResource(testPermissionsRequestResource)
+ .build();
+ return testIamPermissions(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns permissions that a caller has on the specified resource.
+ *
+ * Sample code: + * + *
{@code
+ * // 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 (RegionAutoscalersClient regionAutoscalersClient = RegionAutoscalersClient.create()) {
+ * TestIamPermissionsRegionAutoscalerRequest request =
+ * TestIamPermissionsRegionAutoscalerRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setRegion("region-934795532")
+ * .setResource("resource-341064690")
+ * .setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build())
+ * .build();
+ * TestPermissionsResponse response = regionAutoscalersClient.testIamPermissions(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TestPermissionsResponse testIamPermissions(
+ TestIamPermissionsRegionAutoscalerRequest request) {
+ return testIamPermissionsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns permissions that a caller has on the specified resource.
+ *
+ * Sample code: + * + *
{@code
+ * // 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 (RegionAutoscalersClient regionAutoscalersClient = RegionAutoscalersClient.create()) {
+ * TestIamPermissionsRegionAutoscalerRequest request =
+ * TestIamPermissionsRegionAutoscalerRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setRegion("region-934795532")
+ * .setResource("resource-341064690")
+ * .setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * regionAutoscalersClient.testIamPermissionsCallable().futureCall(request);
+ * // Do something.
+ * TestPermissionsResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableTestIamPermissions
Returns permissions that a caller has on the specified resource.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *testIamPermissions(TestIamPermissionsRegionHealthCheckRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *testIamPermissions(String project, String region, String resource, TestPermissionsRequest testPermissionsRequestResource) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *testIamPermissionsCallable() + *
Update
Updates a HealthCheck resource in the specified project using the data included in the request.
Sample code: + * + *
{@code
+ * // 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 (RegionHealthChecksClient regionHealthChecksClient = RegionHealthChecksClient.create()) {
+ * String project = "project-309310695";
+ * String region = "region-934795532";
+ * String resource = "resource-341064690";
+ * TestPermissionsRequest testPermissionsRequestResource =
+ * TestPermissionsRequest.newBuilder().build();
+ * TestPermissionsResponse response =
+ * regionHealthChecksClient.testIamPermissions(
+ * project, region, resource, testPermissionsRequestResource);
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param region The name of the region for this request.
+ * @param resource Name or id of the resource for this request.
+ * @param testPermissionsRequestResource The body resource for this request
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TestPermissionsResponse testIamPermissions(
+ String project,
+ String region,
+ String resource,
+ TestPermissionsRequest testPermissionsRequestResource) {
+ TestIamPermissionsRegionHealthCheckRequest request =
+ TestIamPermissionsRegionHealthCheckRequest.newBuilder()
+ .setProject(project)
+ .setRegion(region)
+ .setResource(resource)
+ .setTestPermissionsRequestResource(testPermissionsRequestResource)
+ .build();
+ return testIamPermissions(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns permissions that a caller has on the specified resource.
+ *
+ * Sample code: + * + *
{@code
+ * // 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 (RegionHealthChecksClient regionHealthChecksClient = RegionHealthChecksClient.create()) {
+ * TestIamPermissionsRegionHealthCheckRequest request =
+ * TestIamPermissionsRegionHealthCheckRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setRegion("region-934795532")
+ * .setResource("resource-341064690")
+ * .setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build())
+ * .build();
+ * TestPermissionsResponse response = regionHealthChecksClient.testIamPermissions(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TestPermissionsResponse testIamPermissions(
+ TestIamPermissionsRegionHealthCheckRequest request) {
+ return testIamPermissionsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns permissions that a caller has on the specified resource.
+ *
+ * Sample code: + * + *
{@code
+ * // 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 (RegionHealthChecksClient regionHealthChecksClient = RegionHealthChecksClient.create()) {
+ * TestIamPermissionsRegionHealthCheckRequest request =
+ * TestIamPermissionsRegionHealthCheckRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setRegion("region-934795532")
+ * .setResource("resource-341064690")
+ * .setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * regionHealthChecksClient.testIamPermissionsCallable().futureCall(request);
+ * // Do something.
+ * TestPermissionsResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableTestIamPermissions
Returns permissions that a caller has on the specified resource.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *testIamPermissions(TestIamPermissionsRegionNotificationEndpointRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *testIamPermissions(String project, String region, String resource, TestPermissionsRequest testPermissionsRequestResource) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *testIamPermissionsCallable() + *
See the individual methods for example code. @@ -777,6 +795,120 @@ public final ListPagedResponse list(ListRegionNotificationEndpointsRequest reque return stub.listCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. + * + *
Sample code: + * + *
{@code
+ * // 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 (RegionNotificationEndpointsClient regionNotificationEndpointsClient =
+ * RegionNotificationEndpointsClient.create()) {
+ * String project = "project-309310695";
+ * String region = "region-934795532";
+ * String resource = "resource-341064690";
+ * TestPermissionsRequest testPermissionsRequestResource =
+ * TestPermissionsRequest.newBuilder().build();
+ * TestPermissionsResponse response =
+ * regionNotificationEndpointsClient.testIamPermissions(
+ * project, region, resource, testPermissionsRequestResource);
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param region The name of the region for this request.
+ * @param resource Name or id of the resource for this request.
+ * @param testPermissionsRequestResource The body resource for this request
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TestPermissionsResponse testIamPermissions(
+ String project,
+ String region,
+ String resource,
+ TestPermissionsRequest testPermissionsRequestResource) {
+ TestIamPermissionsRegionNotificationEndpointRequest request =
+ TestIamPermissionsRegionNotificationEndpointRequest.newBuilder()
+ .setProject(project)
+ .setRegion(region)
+ .setResource(resource)
+ .setTestPermissionsRequestResource(testPermissionsRequestResource)
+ .build();
+ return testIamPermissions(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns permissions that a caller has on the specified resource.
+ *
+ * Sample code: + * + *
{@code
+ * // 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 (RegionNotificationEndpointsClient regionNotificationEndpointsClient =
+ * RegionNotificationEndpointsClient.create()) {
+ * TestIamPermissionsRegionNotificationEndpointRequest request =
+ * TestIamPermissionsRegionNotificationEndpointRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setRegion("region-934795532")
+ * .setResource("resource-341064690")
+ * .setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build())
+ * .build();
+ * TestPermissionsResponse response =
+ * regionNotificationEndpointsClient.testIamPermissions(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TestPermissionsResponse testIamPermissions(
+ TestIamPermissionsRegionNotificationEndpointRequest request) {
+ return testIamPermissionsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns permissions that a caller has on the specified resource.
+ *
+ * Sample code: + * + *
{@code
+ * // 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 (RegionNotificationEndpointsClient regionNotificationEndpointsClient =
+ * RegionNotificationEndpointsClient.create()) {
+ * TestIamPermissionsRegionNotificationEndpointRequest request =
+ * TestIamPermissionsRegionNotificationEndpointRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setRegion("region-934795532")
+ * .setResource("resource-341064690")
+ * .setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * regionNotificationEndpointsClient.testIamPermissionsCallable().futureCall(request);
+ * // Do something.
+ * TestPermissionsResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ TestIamPermissionsRegionNotificationEndpointRequest, TestPermissionsResponse>
+ testIamPermissionsCallable() {
+ return stub.testIamPermissionsCallable();
+ }
+
@Override
public final void close() {
stub.close();
diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionNotificationEndpointsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionNotificationEndpointsSettings.java
index 8fa206a75388..25caf4ea0514 100644
--- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionNotificationEndpointsSettings.java
+++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionNotificationEndpointsSettings.java
@@ -150,6 +150,14 @@ public UnaryCallSettingsTestIamPermissions
Returns permissions that a caller has on the specified resource.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *testIamPermissions(TestIamPermissionsRouteRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *testIamPermissions(String project, String resource, TestPermissionsRequest testPermissionsRequestResource) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *testIamPermissionsCallable() + *
See the individual methods for example code.
@@ -690,6 +708,105 @@ public final UnaryCallable Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * TestIamPermissions Returns permissions that a caller has on the specified resource. Request object method variants only take one parameter, a request object, which must be constructed before the call. testIamPermissions(TestIamPermissionsTargetSslProxyRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. testIamPermissions(String project, String resource, TestPermissionsRequest testPermissionsRequestResource)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. testIamPermissionsCallable()
+ * See the individual methods for example code.
@@ -1528,6 +1546,107 @@ public final UnaryCallable Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * TestIamPermissions Returns permissions that a caller has on the specified resource. Request object method variants only take one parameter, a request object, which must be constructed before the call. testIamPermissions(TestIamPermissionsTargetTcpProxyRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. testIamPermissions(String project, String resource, TestPermissionsRequest testPermissionsRequestResource)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. testIamPermissionsCallable()
+ * See the individual methods for example code.
@@ -1229,6 +1247,107 @@ public final OperationFuture Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * TestIamPermissions Returns permissions that a caller has on the specified resource. Request object method variants only take one parameter, a request object, which must be constructed before the call. testIamPermissions(TestIamPermissionsUrlMapRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. testIamPermissions(String project, String resource, TestPermissionsRequest testPermissionsRequestResource)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. testIamPermissionsCallable()
+ * Update Updates the specified UrlMap resource with the data included in the request. Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * {@code
+ * // 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 (RoutesClient routesClient = RoutesClient.create()) {
+ * String project = "project-309310695";
+ * String resource = "resource-341064690";
+ * TestPermissionsRequest testPermissionsRequestResource =
+ * TestPermissionsRequest.newBuilder().build();
+ * TestPermissionsResponse response =
+ * routesClient.testIamPermissions(project, resource, testPermissionsRequestResource);
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param resource Name or id of the resource for this request.
+ * @param testPermissionsRequestResource The body resource for this request
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TestPermissionsResponse testIamPermissions(
+ String project, String resource, TestPermissionsRequest testPermissionsRequestResource) {
+ TestIamPermissionsRouteRequest request =
+ TestIamPermissionsRouteRequest.newBuilder()
+ .setProject(project)
+ .setResource(resource)
+ .setTestPermissionsRequestResource(testPermissionsRequestResource)
+ .build();
+ return testIamPermissions(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns permissions that a caller has on the specified resource.
+ *
+ * {@code
+ * // 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 (RoutesClient routesClient = RoutesClient.create()) {
+ * TestIamPermissionsRouteRequest request =
+ * TestIamPermissionsRouteRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setResource("resource-341064690")
+ * .setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build())
+ * .build();
+ * TestPermissionsResponse response = routesClient.testIamPermissions(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TestPermissionsResponse testIamPermissions(TestIamPermissionsRouteRequest request) {
+ return testIamPermissionsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns permissions that a caller has on the specified resource.
+ *
+ * {@code
+ * // 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 (RoutesClient routesClient = RoutesClient.create()) {
+ * TestIamPermissionsRouteRequest request =
+ * TestIamPermissionsRouteRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setResource("resource-341064690")
+ * .setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable
+ *
*
*
*
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ * {@code
+ * // 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 (TargetSslProxiesClient targetSslProxiesClient = TargetSslProxiesClient.create()) {
+ * String project = "project-309310695";
+ * String resource = "resource-341064690";
+ * TestPermissionsRequest testPermissionsRequestResource =
+ * TestPermissionsRequest.newBuilder().build();
+ * TestPermissionsResponse response =
+ * targetSslProxiesClient.testIamPermissions(
+ * project, resource, testPermissionsRequestResource);
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param resource Name or id of the resource for this request.
+ * @param testPermissionsRequestResource The body resource for this request
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TestPermissionsResponse testIamPermissions(
+ String project, String resource, TestPermissionsRequest testPermissionsRequestResource) {
+ TestIamPermissionsTargetSslProxyRequest request =
+ TestIamPermissionsTargetSslProxyRequest.newBuilder()
+ .setProject(project)
+ .setResource(resource)
+ .setTestPermissionsRequestResource(testPermissionsRequestResource)
+ .build();
+ return testIamPermissions(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns permissions that a caller has on the specified resource.
+ *
+ * {@code
+ * // 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 (TargetSslProxiesClient targetSslProxiesClient = TargetSslProxiesClient.create()) {
+ * TestIamPermissionsTargetSslProxyRequest request =
+ * TestIamPermissionsTargetSslProxyRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setResource("resource-341064690")
+ * .setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build())
+ * .build();
+ * TestPermissionsResponse response = targetSslProxiesClient.testIamPermissions(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TestPermissionsResponse testIamPermissions(
+ TestIamPermissionsTargetSslProxyRequest request) {
+ return testIamPermissionsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns permissions that a caller has on the specified resource.
+ *
+ * {@code
+ * // 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 (TargetSslProxiesClient targetSslProxiesClient = TargetSslProxiesClient.create()) {
+ * TestIamPermissionsTargetSslProxyRequest request =
+ * TestIamPermissionsTargetSslProxyRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setResource("resource-341064690")
+ * .setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable
+ *
*
*
*
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ * {@code
+ * // 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 (TargetTcpProxiesClient targetTcpProxiesClient = TargetTcpProxiesClient.create()) {
+ * String project = "project-309310695";
+ * String resource = "resource-341064690";
+ * TestPermissionsRequest testPermissionsRequestResource =
+ * TestPermissionsRequest.newBuilder().build();
+ * TestPermissionsResponse response =
+ * targetTcpProxiesClient.testIamPermissions(
+ * project, resource, testPermissionsRequestResource);
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param resource Name or id of the resource for this request.
+ * @param testPermissionsRequestResource The body resource for this request
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TestPermissionsResponse testIamPermissions(
+ String project, String resource, TestPermissionsRequest testPermissionsRequestResource) {
+ TestIamPermissionsTargetTcpProxyRequest request =
+ TestIamPermissionsTargetTcpProxyRequest.newBuilder()
+ .setProject(project)
+ .setResource(resource)
+ .setTestPermissionsRequestResource(testPermissionsRequestResource)
+ .build();
+ return testIamPermissions(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns permissions that a caller has on the specified resource.
+ *
+ * {@code
+ * // 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 (TargetTcpProxiesClient targetTcpProxiesClient = TargetTcpProxiesClient.create()) {
+ * TestIamPermissionsTargetTcpProxyRequest request =
+ * TestIamPermissionsTargetTcpProxyRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setResource("resource-341064690")
+ * .setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build())
+ * .build();
+ * TestPermissionsResponse response = targetTcpProxiesClient.testIamPermissions(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TestPermissionsResponse testIamPermissions(
+ TestIamPermissionsTargetTcpProxyRequest request) {
+ return testIamPermissionsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns permissions that a caller has on the specified resource.
+ *
+ * {@code
+ * // 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 (TargetTcpProxiesClient targetTcpProxiesClient = TargetTcpProxiesClient.create()) {
+ * TestIamPermissionsTargetTcpProxyRequest request =
+ * TestIamPermissionsTargetTcpProxyRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setResource("resource-341064690")
+ * .setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
*
*
*
@@ -1237,6 +1255,105 @@ public final UnaryCallable {@code
+ * // 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 (UrlMapsClient urlMapsClient = UrlMapsClient.create()) {
+ * String project = "project-309310695";
+ * String resource = "resource-341064690";
+ * TestPermissionsRequest testPermissionsRequestResource =
+ * TestPermissionsRequest.newBuilder().build();
+ * TestPermissionsResponse response =
+ * urlMapsClient.testIamPermissions(project, resource, testPermissionsRequestResource);
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param resource Name or id of the resource for this request.
+ * @param testPermissionsRequestResource The body resource for this request
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TestPermissionsResponse testIamPermissions(
+ String project, String resource, TestPermissionsRequest testPermissionsRequestResource) {
+ TestIamPermissionsUrlMapRequest request =
+ TestIamPermissionsUrlMapRequest.newBuilder()
+ .setProject(project)
+ .setResource(resource)
+ .setTestPermissionsRequestResource(testPermissionsRequestResource)
+ .build();
+ return testIamPermissions(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns permissions that a caller has on the specified resource.
+ *
+ * {@code
+ * // 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 (UrlMapsClient urlMapsClient = UrlMapsClient.create()) {
+ * TestIamPermissionsUrlMapRequest request =
+ * TestIamPermissionsUrlMapRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setResource("resource-341064690")
+ * .setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build())
+ * .build();
+ * TestPermissionsResponse response = urlMapsClient.testIamPermissions(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TestPermissionsResponse testIamPermissions(TestIamPermissionsUrlMapRequest request) {
+ return testIamPermissionsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns permissions that a caller has on the specified resource.
+ *
+ * {@code
+ * // 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 (UrlMapsClient urlMapsClient = UrlMapsClient.create()) {
+ * TestIamPermissionsUrlMapRequest request =
+ * TestIamPermissionsUrlMapRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setResource("resource-341064690")
+ * .setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable